Compare commits

..

No commits in common. "68b98553094d02ae532495b96981e15325d95ee6" and "a081de93ce2bfbe621f82b4418f949522a71101d" have entirely different histories.

2 changed files with 4 additions and 3 deletions

View file

@ -7,7 +7,7 @@ fn f() i32 {
return 2;
}
fn f2() i32 {
fn f2() i64 {
return 1301;
}

View file

@ -31,10 +31,11 @@ pub const SymbolUnderlyingType = union(SymbolUnderlyingTypeEnum) {
Enum: []const u8,
};
pub const Environment = std.StringHashMap(SymbolUnderlyingType);
pub const ScopeList = std.ArrayList(*Scope);
pub const Scope = struct {
parent: ?*Scope,
env: UnderlyingTypeMap,
env: Environment,
/// Used for debug information.
children: ScopeList,
@ -47,7 +48,7 @@ pub const Scope = struct {
scope.* = Scope{
.parent = parent,
.env = UnderlyingTypeMap.init(allocator),
.env = Environment.init(allocator),
.children = ScopeList.init(allocator),
.allocator = allocator,
.id = id,