private static SyntaxNode RepeatStatement(RParser.RepeatStatementContext repeatStatement, Func <ParserRuleContext, Scope, SyntaxNode> transform, Scope scope) { if (!topLevel(repeatStatement)) { throw new NotImplementedException(); } BlockSyntax body = parseBlock(repeatStatement.expr(), transform, scope); return(repeat .WithStatement(body)); }
/// <summary> /// Exit a parse tree produced by <see cref="RParser.RepeatStatement"/>. /// <para>The default implementation does nothing.</para> /// </summary> /// <param name="context">The parse tree.</param> public virtual void ExitRepeatStatement([NotNull] RParser.RepeatStatementContext context) { }