diff options
| author | Mel <einebeere@gmail.com> | 2022-07-26 02:37:38 +0200 |
|---|---|---|
| committer | Mel <einebeere@gmail.com> | 2022-07-26 02:37:38 +0200 |
| commit | 41490ae52e3b1ff20980c5e0837d257043b3ca92 (patch) | |
| tree | 9d2574dbcdc6f82a9b89cfcf64f7e25634484a5a /pkg/lang/compiler/scope/scopes.go | |
| parent | b6fa4bc82398b09307f2e6b75e27422d1d1ecb33 (diff) | |
| download | jinx-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.go | 2 |
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), } } |
