public void AssertInsideIterationBlock() { var parent = this.GetParentBlock() as IterateNode; if (parent == null) { throw new VeilParserException("Found @EndEach; without a matching @each"); } }
private static void HandleEndEach(SuperSimpleTemplateParserState state) { state.AssertInsideIterationBlock(); state.PopCurrentScope(); }