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

AssertInsideConditionalBlock() public method

public AssertInsideConditionalBlock ( ) : void
return void
        public void AssertInsideConditionalBlock()
        {
            var parent = this.GetParentBlock() as ConditionalNode;
            if (parent == null)
            {
                throw new VeilParserException("Found @EndIf; without a matching opening block");
            }
        }

Usage Example

Exemplo n.º 1
0
 private static void HandleEndConditional(SuperSimpleTemplateParserState state)
 {
     state.AssertInsideConditionalBlock();
     state.PopCurrentScope();
 }
All Usage Examples Of Veil.SuperSimple.SuperSimpleTemplateParserState::AssertInsideConditionalBlock