Removed DeclareParameter.

This commit is contained in:
arookas 2015-12-27 22:48:44 -05:00
parent e9ee07f15c
commit 402459d997
2 changed files with 1 additions and 2 deletions

View file

@ -263,7 +263,6 @@ namespace arookas
return symbol; return symbol;
} }
public sunVariableSymbol DeclareParameter(string name) { return Scopes.DeclareVariable(name); }
void WriteHeader() void WriteHeader()
{ {

View file

@ -141,7 +141,7 @@ namespace arookas
context.Scopes.Push(sunScopeType.Function); context.Scopes.Push(sunScopeType.Function);
foreach (var parameter in Parameters) foreach (var parameter in Parameters)
{ {
context.DeclareParameter(parameter); context.Scopes.DeclareVariable(parameter);
} }
context.Text.StoreDisplay(1); context.Text.StoreDisplay(1);
context.Text.DeclareLocal(Body.MaxLocalCount); context.Text.DeclareLocal(Body.MaxLocalCount);