Veil.SuperSimple.SuperSimpleTemplateParserState.AssertInsideIterationBlock C# (CSharp) Method

AssertInsideIterationBlock() public method

public AssertInsideIterationBlock ( ) : void
return 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