diff --git a/ssc/ast/nodes.keywords.cs b/ssc/ast/nodes.keywords.cs index fc85730..41698b1 100644 --- a/ssc/ast/nodes.keywords.cs +++ b/ssc/ast/nodes.keywords.cs @@ -1,11 +1,11 @@ namespace arookas { - class sunConstKeyword : sunNode { - public sunConstKeyword(sunSourceLocation location) + class sunConstModifier : sunNode { + public sunConstModifier(sunSourceLocation location) : base(location) { } } - class sunLocalKeyword : sunNode { - public sunLocalKeyword(sunSourceLocation location) + class sunLocalModifier : sunNode { + public sunLocalModifier(sunSourceLocation location) : base(location) { } } } diff --git a/ssc/parser.cs b/ssc/parser.cs index 0f85b01..b13f1cb 100644 --- a/ssc/parser.cs +++ b/ssc/parser.cs @@ -207,8 +207,8 @@ namespace arookas { // modifiers switch (id) { - case __sunConstants.LOCAL: return new sunLocalKeyword(location); - case __sunConstants.CONST: return new sunConstKeyword(location); + case __sunConstants.LOCAL: return new sunLocalModifier(location); + case __sunConstants.CONST: return new sunConstModifier(location); } // emergency fallback diff --git a/ssc/symbol.cs b/ssc/symbol.cs index a9de040..e1fb740 100644 --- a/ssc/symbol.cs +++ b/ssc/symbol.cs @@ -103,10 +103,10 @@ namespace arookas { return sunSymbolModifiers.None; } var modifiers = sunSymbolModifiers.None; - if (modifierlist.Any(i => i is sunConstKeyword)) { + if (modifierlist.Any(i => i is sunConstModifier)) { modifiers |= sunSymbolModifiers.Constant; } - if (modifierlist.Any(i => i is sunLocalKeyword)) { + if (modifierlist.Any(i => i is sunLocalModifier)) { modifiers |= sunSymbolModifiers.Local; } return modifiers;