We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cdda6e6 commit c61815fCopy full SHA for c61815f
2 files changed
compiler/astoir_hir/src/lib.rs
@@ -4,4 +4,5 @@
4
pub mod ctx;
5
pub mod nodes;
6
pub mod resolve;
7
+pub mod scope;
8
pub mod structs;
compiler/astoir_hir/src/scope.rs
@@ -0,0 +1,13 @@
1
+//! HIR version of the global scope in order to store descriptors and implementations
2
+
3
+use compiler_typing::TypedGlobalScope;
+use crate::{ctx::HIRFunction, nodes::HIRNode};
+/// The HIR version of `GlobalScopeStorage`. Contains the descriptors and implementations.
+/// Every function to append, gather will automatically handle descriptors and implementations if needed
9
+pub struct HIRGlobalScopeStorage {
10
+ pub scope: TypedGlobalScope,
11
+ pub descriptors: Vec<HIRFunction>,
12
+ pub implementations: Vec<Box<HIRNode>>,
13
+}
0 commit comments