예제 #1
0
        public BlockExpression PopBlock()
        {
            LightList <Expression> statements = statementStacks.Pop();

            Expression[] array = statements.ToArray();
            LightList <Expression> .Release(ref statements);

            return(Expression.Block(typeof(void), array));
        }
예제 #2
0
        public void PopExceptionTest()
        {
            //Arrange
            var stack = new LightStack <string>();

            //Act
            Assert.Throws <InvalidOperationException>(() => stack.Pop());
        }
예제 #3
0
 public void PopScope()
 {
     currentDepth--;
     hierarchyStack.Pop();
 }