Made a modifiers switch block
This commit is contained in:
parent
040091efca
commit
8db3326005
1 changed files with 4 additions and 11 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue