Пример #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);
        }