Exemplo n.º 1
0
        private static SyntaxNode Parenthesized(RParser.ParenthesizedContext parenth, Func <ParserRuleContext, Scope, SyntaxNode> transform, Scope scope)
        {
            var expr = transform(parenth.expr(), scope) as ExpressionSyntax;

            Debug.Assert(expr != null);

            return(CSharp.ParenthesizedExpression(expr));
        }
Exemplo n.º 2
0
 /// <summary>
 /// Exit a parse tree produced by <see cref="RParser.Parenthesized"/>.
 /// <para>The default implementation does nothing.</para>
 /// </summary>
 /// <param name="context">The parse tree.</param>
 public virtual void ExitParenthesized([NotNull] RParser.ParenthesizedContext context)
 {
 }