From e59c54f8bc640c7dc8ccef96d538e728c47bc08e Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 11 Mar 2026 00:49:03 +0100 Subject: Track the symbol type --- oryxc/src/prelude.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'oryxc/src/prelude.rs') 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 { -- cgit v1.2.3