public void SetUp() { _globalScope = new GlobalScope(); _blockScope = new ErrorScope(_globalScope); _internalBlockScope = new LocalScope(_blockScope); _someType = TypeSymbol.MakeScalarTypeSymbol("int", _globalScope).Type; }
public override void Visit(BlockStatement node) { Debug.Assert(CurrentScope is IVariableScope); var blockScope = new LocalScope((IVariableScope) CurrentScope); node.Scope = blockScope; EnterScope(blockScope); }