From 41490ae52e3b1ff20980c5e0837d257043b3ca92 Mon Sep 17 00:00:00 2001 From: Mel Date: Tue, 26 Jul 2022 02:37:38 +0200 Subject: Store functions in locals and remove hoisting --- pkg/lang/compiler/scope/scopes.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'pkg/lang/compiler/scope/scopes.go') diff --git a/pkg/lang/compiler/scope/scopes.go b/pkg/lang/compiler/scope/scopes.go index 5cfcd5d..e34b45a 100644 --- a/pkg/lang/compiler/scope/scopes.go +++ b/pkg/lang/compiler/scope/scopes.go @@ -14,13 +14,11 @@ const ( type SymbolScope struct { variableSymbols []Symbol[SymbolVariable] - functionSymbols []Symbol[SymbolFunction] } func NewSymbolScope() SymbolScope { return SymbolScope{ variableSymbols: make([]Symbol[SymbolVariable], 0), - functionSymbols: make([]Symbol[SymbolFunction], 0), } } -- cgit 1.4.1