public ExpressionContext(JScriptBuilder builder, BlockStatement e)
     : this(builder)
 {
     _op = OperatorInfo.Block;
 }
Beispiel #2
0
 public Completion ExecuteBlockStatement(BlockStatement blockStatement)
 {
     return ExecuteStatementList(blockStatement.Body);
 }
        private void EmitBlockStatement(BlockStatement block)
        {
            EnterBlock();

            using (var ex = new ExpressionContext(this, block))
            {

                foreach (var s in block.Body)
                {
                    Emit(s);
                }
            }

            LeaveBlock();
        }