aboutsummaryrefslogtreecommitdiff
path: root/gcc/rust/rust-session-manager.h
diff options
context:
space:
mode:
Diffstat (limited to 'gcc/rust/rust-session-manager.h')
-rw-r--r--gcc/rust/rust-session-manager.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/gcc/rust/rust-session-manager.h b/gcc/rust/rust-session-manager.h
index 2bb1dfb..4836cc8 100644
--- a/gcc/rust/rust-session-manager.h
+++ b/gcc/rust/rust-session-manager.h
@@ -37,6 +37,10 @@ class Lexer;
namespace AST {
struct Crate;
}
+// crate forward decl
+namespace HIR {
+struct Crate;
+}
/* Data related to target, most useful for conditional compilation and
* whatever. */
@@ -240,6 +244,11 @@ private:
* Performs name resolution and type resolution, maybe complete gated
* feature checking, maybe create buffered lints in future. */
void resolution (AST::Crate &crate);
+ /* This lowers the AST down to HIR and assigns all mappings from AST
+ * NodeIds back to HirIds */
+ HIR::Crate lower_ast (AST::Crate &crate);
+ /* This adds the type resolution process */
+ void type_resolution (HIR::Crate &crate);
};
} // namespace Rust