public override Node VisitMultiplicativeExpression(ECMAScriptParser.MultiplicativeExpressionContext context)
 {
     return(new BinaryExpression(
                context,
                OperatorsUtils.BinaryOperatorFromString(context.children[1].GetText()),
                (Expression)Visit(context.singleExpression()[0]),
                (Expression)Visit(context.singleExpression()[1])
                ));
 }
示例#2
0
 public UstNode VisitMultiplicativeExpression([NotNull] ECMAScriptParser.MultiplicativeExpressionContext context)
 {
     return(CreateBinaryOperatorExpression(
                context.singleExpression(0), context.GetChild <ITerminalNode>(0), context.singleExpression(1)));
 }