WIP
parent
0bf4a7f658
commit
c8490bfe36
|
@ -526,6 +526,26 @@ public final class Parser
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private InitScope getInitScope(Token token)
|
||||||
|
{
|
||||||
|
if(getSymbolType(token) == SymbolType.STATIC)
|
||||||
|
{
|
||||||
|
return InitScope.STATIC;
|
||||||
|
}
|
||||||
|
else if(getSymbolType(token) == SymbolType.PROTECTED)
|
||||||
|
{
|
||||||
|
return AccessorType.PROTECTED;
|
||||||
|
}
|
||||||
|
else if(getSymbolType(token) == SymbolType.PRIVATE)
|
||||||
|
{
|
||||||
|
return AccessorType.PRIVATE;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
return InitScope.UNKNOWN;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/* STATUS: Not being used yet */
|
/* STATUS: Not being used yet */
|
||||||
/**
|
/**
|
||||||
|
@ -536,8 +556,8 @@ public final class Parser
|
||||||
{
|
{
|
||||||
Entity entity;
|
Entity entity;
|
||||||
|
|
||||||
/* Save and consume the accessor */
|
/* Save and consume the init-scope */
|
||||||
AccessorType accessorType = getAccessorType(getCurrentToken());
|
InitScope initScope = getInitScope(getCurrentToken());
|
||||||
nextToken();
|
nextToken();
|
||||||
|
|
||||||
/* TODO: Implement me and fix the above */
|
/* TODO: Implement me and fix the above */
|
||||||
|
|
Loading…
Reference in New Issue