diff options
| author | Thomas Voss <mail@thomasvoss.com> | 2026-03-11 00:49:03 +0100 |
|---|---|---|
| committer | Thomas Voss <mail@thomasvoss.com> | 2026-03-11 00:49:03 +0100 |
| commit | e59c54f8bc640c7dc8ccef96d538e728c47bc08e (patch) | |
| tree | 2ed49bc04895a0983ef6b5828170eabcadeefc77 /oryxc/src/compiler.rs | |
| parent | 9042ca21cdd5a6fd39f6382df906fda3560384e7 (diff) | |
Track the symbol type
Diffstat (limited to 'oryxc/src/compiler.rs')
| -rw-r--r-- | oryxc/src/compiler.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/oryxc/src/compiler.rs b/oryxc/src/compiler.rs index 50a641e..3bfe6c1 100644 --- a/oryxc/src/compiler.rs +++ b/oryxc/src/compiler.rs @@ -381,7 +381,10 @@ fn worker_loop( }; let symid = c_state.interner.intern(view); - let sym = Symbol::default(); + let sym = Symbol { + state: ResolutionState::Unresolved, + kind: SymbolType::Constant, + }; if let Some(mut sym) = scope.symtab.insert(symid, sym, &arena) |