Cleanup.
This commit is contained in:
parent
4d947f5b6f
commit
c8056ac960
1 changed files with 2 additions and 5 deletions
|
@ -187,8 +187,7 @@ namespace arookas
|
||||||
{
|
{
|
||||||
throw new sunRedeclaredVariableException(node);
|
throw new sunRedeclaredVariableException(node);
|
||||||
}
|
}
|
||||||
var variableInfo = Scopes.DeclareVariable(node.Value);
|
return Scopes.DeclareVariable(node.Value);
|
||||||
return variableInfo;
|
|
||||||
}
|
}
|
||||||
public sunConstantSymbol DeclareConstant(sunIdentifier node, sunExpression expression)
|
public sunConstantSymbol DeclareConstant(sunIdentifier node, sunExpression expression)
|
||||||
{
|
{
|
||||||
|
@ -196,8 +195,7 @@ namespace arookas
|
||||||
{
|
{
|
||||||
throw new sunRedeclaredVariableException(node);
|
throw new sunRedeclaredVariableException(node);
|
||||||
}
|
}
|
||||||
var constInfo = Scopes.Top.DeclareConstant(node.Value, expression);
|
return Scopes.Top.DeclareConstant(node.Value, expression);
|
||||||
return constInfo;
|
|
||||||
}
|
}
|
||||||
public sunStorableSymbol ResolveStorable(sunIdentifier node)
|
public sunStorableSymbol ResolveStorable(sunIdentifier node)
|
||||||
{
|
{
|
||||||
|
@ -263,7 +261,6 @@ namespace arookas
|
||||||
return symbol;
|
return symbol;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void WriteHeader()
|
void WriteHeader()
|
||||||
{
|
{
|
||||||
mWriter.WriteString("SPCB");
|
mWriter.WriteString("SPCB");
|
||||||
|
|
Loading…
Reference in a new issue