From 86f31acf6789be116dcc54ed85b069a37c0f7aa8 Mon Sep 17 00:00:00 2001 From: Mel Date: Thu, 11 Aug 2022 01:25:47 +0000 Subject: Actual modules and core --- pkg/lang/compiler/scope/scopes.go | 2 ++ 1 file changed, 2 insertions(+) (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 2a9453a..e1a7a9f 100644 --- a/pkg/lang/compiler/scope/scopes.go +++ b/pkg/lang/compiler/scope/scopes.go @@ -14,11 +14,13 @@ const ( type SymbolScope struct { variableSymbols []Symbol[SymbolVariable] + globalSymbols []Symbol[SymbolGlobal] } func NewSymbolScope() SymbolScope { return SymbolScope{ variableSymbols: make([]Symbol[SymbolVariable], 0), + globalSymbols: make([]Symbol[SymbolGlobal], 0), } } -- cgit 1.4.1