From e69d97478d240a597c919fc63eea3e06187b503b Mon Sep 17 00:00:00 2001 From: arookas Date: Mon, 22 Feb 2016 20:27:30 -0500 Subject: [PATCH] Renamed keyword nodes to modifier nodes --- ssc/ast/nodes.keywords.cs | 8 ++++---- ssc/parser.cs | 4 ++-- ssc/symbol.cs | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) 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;