示例#1
0
 private void Add(BoundItemsBag <BoundStatement> stmtBag)
 {
     ConnectBoundItemsBagBlocksToCurrentBlock(stmtBag);
     _current.Add(stmtBag.BoundElement);
 }
示例#2
0
 private void Add(BoundStatement stmt)
 {
     _current.Add(stmt);
 }
示例#3
0
 private void Add(BoundItemsBag <BoundStatement> stmtBag)
 {
     AddPreBoundElements(stmtBag);
     _current.Add(stmtBag.BoundElement);
 }
示例#4
0
 private void Add(Statement stmt)
 {
     _current.Add(_binder.BindStatement(stmt));
 }
示例#5
0
        /// <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);
        }