From 402459d9970467b82a76bc06fa0bb963337262af Mon Sep 17 00:00:00 2001 From: arookas Date: Sun, 27 Dec 2015 22:48:44 -0500 Subject: [PATCH] Removed DeclareParameter. --- ssc/context.cs | 1 - ssc/symbol table.cs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) 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);