diff --git a/ssc/context.cs b/ssc/context.cs index 79e876b..80c7969 100644 --- a/ssc/context.cs +++ b/ssc/context.cs @@ -263,7 +263,6 @@ namespace arookas return symbol; } - public sunVariableSymbol DeclareParameter(string name) { return Scopes.DeclareVariable(name); } void WriteHeader() { diff --git a/ssc/symbol table.cs b/ssc/symbol table.cs index bdd7ddc..30a518b 100644 --- a/ssc/symbol table.cs +++ b/ssc/symbol table.cs @@ -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);