aboutsummaryrefslogtreecommitdiff
path: root/include/cps/SourceUnit.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/cps/SourceUnit.h')
-rw-r--r--include/cps/SourceUnit.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/cps/SourceUnit.h b/include/cps/SourceUnit.h
new file mode 100644
index 0000000..db9ad30
--- /dev/null
+++ b/include/cps/SourceUnit.h
@@ -0,0 +1,13 @@
+#pragma once
+#include "cps/AST.h"
+#include <string>
+#include <vector>
+
+namespace cps {
+// The caller owns the parsed statements for the duration of compilation.
+struct SourceUnit {
+ std::string Path;
+ const std::vector<std::unique_ptr<StmtAST>> &Statements;
+ std::vector<bool> Visible;
+};
+}