about summary refs log tree commit diff
path: root/pkg/lang/compiler/scope/scopes.go
diff options
context:
space:
mode:
authorMel <einebeere@gmail.com>2022-07-26 02:37:38 +0200
committerMel <einebeere@gmail.com>2022-07-26 02:37:38 +0200
commit41490ae52e3b1ff20980c5e0837d257043b3ca92 (patch)
tree9d2574dbcdc6f82a9b89cfcf64f7e25634484a5a /pkg/lang/compiler/scope/scopes.go
parentb6fa4bc82398b09307f2e6b75e27422d1d1ecb33 (diff)
downloadjinx-41490ae52e3b1ff20980c5e0837d257043b3ca92.tar.zst
jinx-41490ae52e3b1ff20980c5e0837d257043b3ca92.zip
Store functions in locals and remove hoisting
Diffstat (limited to 'pkg/lang/compiler/scope/scopes.go')
-rw-r--r--pkg/lang/compiler/scope/scopes.go2
1 files changed, 0 insertions, 2 deletions
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),
 	}
 }