Made a modifiers switch block

This commit is contained in:
arookas 2016-02-22 20:26:41 -05:00
parent 040091efca
commit 8db3326005

View file

@ -205,17 +205,10 @@ namespace arookas {
case __sunConstants.CONTINUE_STATEMENT: return new sunContinue(location); case __sunConstants.CONTINUE_STATEMENT: return new sunContinue(location);
} }
// keywords // modifiers
if (id == __sunConstants.CONST) { switch (id) {
switch (parent) { case __sunConstants.LOCAL: return new sunLocalKeyword(location);
case __sunConstants.FUNCTION_MODIFIERS: case __sunConstants.CONST: return new sunConstKeyword(location);
case __sunConstants.BUILTIN_MODIFIERS: {
return new sunConstKeyword(location);
}
}
}
if (id == __sunConstants.LOCAL) {
return new sunLocalKeyword(location);
} }
// emergency fallback // emergency fallback