do not intern Structs, Enums and Unions

This commit is contained in:
Techatrix
2023-01-28 18:02:29 +01:00
parent 9131285db1
commit 55364f2e2b
5 changed files with 240 additions and 284 deletions

View File

@@ -772,7 +772,7 @@ pub fn resolveTypeOfNodeInternal(store: *DocumentStore, arena: *std.heap.ArenaAl
};
var interpreter: *ComptimeInterpreter = handle.interpreter.?;
const root_namespace = @intToEnum(ComptimeInterpreter.NamespaceIndex, 0);
const root_namespace = @intToEnum(ComptimeInterpreter.Namespace.Index, 0);
// TODO: Start from current/nearest-current scope
const result = interpreter.interpret(node, root_namespace, .{}) catch |err| {