private void Add(BoundItemsBag <BoundStatement> stmtBag) { ConnectBoundItemsBagBlocksToCurrentBlock(stmtBag); _current.Add(stmtBag.BoundElement); }
private void Add(BoundStatement stmt) { _current.Add(stmt); }
private void Add(BoundItemsBag <BoundStatement> stmtBag) { AddPreBoundElements(stmtBag); _current.Add(stmtBag.BoundElement); }
private void Add(Statement stmt) { _current.Add(_binder.BindStatement(stmt)); }
/// <summary> /// Enqueues the standalone expression for analysis. /// </summary> void EnqueueExpression(BoundExpression expression, TypeRefContext/*!*/ctx, NamingContext naming) { Contract.ThrowIfNull(expression); Contract.ThrowIfNull(ctx); var dummy = new BoundBlock() { FlowState = new FlowState(new FlowContext(ctx, null)), Naming = naming }; dummy.Add(new BoundExpressionStatement(expression)); _worklist.Enqueue(dummy); }