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

AssertInsideConditionalBlock() 공개 메소드

public AssertInsideConditionalBlock ( ) : void
리턴 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

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