예제 #1
0
 public string VisitExpression([NotNull] PhpParser.ExpressionContext context)
 {
     return(VisitChildren(context));
 }
예제 #2
0
        private Expression CreateSpecialInvocation(ITerminalNode specialMethodTerminal, PhpParser.ExpressionContext expression, TextSpan contextTextSpan)
        {
            var expression0 = (Expression)VisitExpression(expression);
            var result      = new InvocationExpression(
                new IdToken(specialMethodTerminal.GetText(), specialMethodTerminal.GetTextSpan()),
                new ArgsUst(new List <Expression>()
            {
                expression0
            }, expression.GetTextSpan()),
                contextTextSpan);

            return(result);
        }