public void AssertInsideConditionalBlock() { var parent = this.GetParentBlock() as ConditionalNode; if (parent == null) { throw new VeilParserException("Found @EndIf; without a matching opening block"); } }
private static void HandleEndConditional(SuperSimpleTemplateParserState state) { state.AssertInsideConditionalBlock(); state.PopCurrentScope(); }