Veil.SuperSimple.SuperSimpleTemplateParserState.AssertInsideIterationBlock C# (CSharp) Méthode

AssertInsideIterationBlock() public méthode

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

Usage Example

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