public void AddSymbol(LocalSymbol symbol) { Debug.Assert(symbol != null); Debug.Assert(String.IsNullOrEmpty(symbol.Name) == false); Debug.Assert(_localTable.ContainsKey(symbol.Name) == false); _locals.Add(symbol); _localTable[symbol.Name] = symbol; }
public BoundLocalExpression(SyntaxNode syntax, LocalSymbol symbol) : base(BoundNodeKind.LocalExpression, syntax) { Type = symbol.ValueType; Symbol = symbol; }
void ILocalSymbolTable.AddSymbol(LocalSymbol symbol) { Debug.Assert(_currentScope != null); _currentScope.AddSymbol(symbol); }