Veil.SuperSimple.SuperSimpleTemplateParserState.AssertInsideIterationBlock C# (CSharp) 메소드

AssertInsideIterationBlock() 공개 메소드

public AssertInsideIterationBlock ( ) : void
리턴 void
        public void AssertInsideIterationBlock()
        {
            var parent = this.GetParentBlock() as IterateNode;
            if (parent == null)
            {
                throw new VeilParserException("Found @EndEach; without a matching @each");
            }
        }

Usage Example

예제 #1
0
 private static void HandleEndEach(SuperSimpleTemplateParserState state)
 {
     state.AssertInsideIterationBlock();
     state.PopCurrentScope();
 }
All Usage Examples Of Veil.SuperSimple.SuperSimpleTemplateParserState::AssertInsideIterationBlock