summaryrefslogtreecommitdiff
path: root/oryxc/src/prelude.rs
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2026-03-11 00:49:03 +0100
committerThomas Voss <mail@thomasvoss.com> 2026-03-11 00:49:03 +0100
commite59c54f8bc640c7dc8ccef96d538e728c47bc08e (patch)
tree2ed49bc04895a0983ef6b5828170eabcadeefc77 /oryxc/src/prelude.rs
parent9042ca21cdd5a6fd39f6382df906fda3560384e7 (diff)
Track the symbol type
Diffstat (limited to 'oryxc/src/prelude.rs')
-rw-r--r--oryxc/src/prelude.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/oryxc/src/prelude.rs b/oryxc/src/prelude.rs
index c118c0d..4e36f33 100644
--- a/oryxc/src/prelude.rs
+++ b/oryxc/src/prelude.rs
@@ -47,17 +47,17 @@ pub enum ResolutionState {
Poisoned,
}
-#[derive(Debug, Default)]
+#[derive(Debug)]
pub struct Symbol {
pub state: ResolutionState,
- pub kind: u32,
+ pub kind: SymbolType,
}
#[repr(u8)]
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
-pub enum DeclKind {
- ConstDef = 0,
- Param = 1,
+pub enum SymbolType {
+ Constant,
+ FuncParam,
}
pub enum OryxType {