Removed DeclareParameter.
This commit is contained in:
parent
e9ee07f15c
commit
402459d997
2 changed files with 1 additions and 2 deletions
|
@ -263,7 +263,6 @@ namespace arookas
|
|||
return symbol;
|
||||
}
|
||||
|
||||
public sunVariableSymbol DeclareParameter(string name) { return Scopes.DeclareVariable(name); }
|
||||
|
||||
void WriteHeader()
|
||||
{
|
||||
|
|
|
@ -141,7 +141,7 @@ namespace arookas
|
|||
context.Scopes.Push(sunScopeType.Function);
|
||||
foreach (var parameter in Parameters)
|
||||
{
|
||||
context.DeclareParameter(parameter);
|
||||
context.Scopes.DeclareVariable(parameter);
|
||||
}
|
||||
context.Text.StoreDisplay(1);
|
||||
context.Text.DeclareLocal(Body.MaxLocalCount);
|
||||
|
|
Loading…
Reference in a new issue