public void AddChildScope(SymbolScope scope) { if (childScopes == null) { childScopes = new List <SymbolScope>(); } childScopes.Add(scope); }
public ICollection <Symbol> TransformSymbolImplementation(SymbolImplementation implementation) { List <Symbol> transformedSymbols = new List <Symbol>(); SymbolScope scope = implementation.Scope; TransformScope(scope, transformedSymbols); return(transformedSymbols); }
public SymbolScope(SymbolScope parentScope) : this((ISymbolTable)parentScope) { Parent = parentScope; }
public SymbolImplementation(ICollection <Statement> statements, SymbolScope scope, string thisIdentifier) { Scope = scope; Statements = statements ?? System.Array.Empty <Statement>(); ThisIdentifier = thisIdentifier; }
public SymbolImplementation(ICollection <Statement> statements, SymbolScope scope, string thisIdentifier) { Scope = scope; Statements = statements; ThisIdentifier = thisIdentifier; }