We will rather return Variable and modify in `parseAccessor`. And if not then we set to default
parent
bc2f92a9f0
commit
855be6f8f0
|
@ -337,12 +337,12 @@ public final class Parser
|
||||||
/* If class */
|
/* If class */
|
||||||
if(symbolType == SymbolType.CLASS)
|
if(symbolType == SymbolType.CLASS)
|
||||||
{
|
{
|
||||||
parseClass(accessorType);
|
parseClass();
|
||||||
}
|
}
|
||||||
/* If typed-definition (function or variable) */
|
/* If typed-definition (function or variable) */
|
||||||
else if(symbolType == SymbolType.TYPE)
|
else if(symbolType == SymbolType.TYPE)
|
||||||
{
|
{
|
||||||
parseTypedDeclaration(accessorType);
|
parseTypedDeclaration();
|
||||||
}
|
}
|
||||||
/* Error out */
|
/* Error out */
|
||||||
else
|
else
|
||||||
|
@ -529,7 +529,7 @@ public final class Parser
|
||||||
gprintln("parseExpression(): Leave", DebugType.WARNING);
|
gprintln("parseExpression(): Leave", DebugType.WARNING);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void parseTypedDeclaration(AccessorType accessorType = AccessorType.PUBLIC)
|
private void parseTypedDeclaration()
|
||||||
{
|
{
|
||||||
gprintln("parseTypedDeclaration(): Enter", DebugType.WARNING);
|
gprintln("parseTypedDeclaration(): Enter", DebugType.WARNING);
|
||||||
|
|
||||||
|
@ -595,7 +595,7 @@ public final class Parser
|
||||||
* This is called when there is an occurrence of
|
* This is called when there is an occurrence of
|
||||||
* a token `class`
|
* a token `class`
|
||||||
*/
|
*/
|
||||||
private void parseClass(AccessorType accessorType = AccessorType.PUBLIC)
|
private void parseClass()
|
||||||
{
|
{
|
||||||
gprintln("parseClass(): Enter", DebugType.WARNING);
|
gprintln("parseClass(): Enter", DebugType.WARNING);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue