System\Data\Common\EntitySql\CqlParser.cs (483)
1970yyval = val_peek(yym-1);
1983yyval = _parsedTree = (Node)val_peek(0);
1989yyval = new Command(ToNodeList<NamespaceImport>(val_peek(1)),(Statement)val_peek(0));
1990SetErrCtx(AstNode(yyval), (val_peek(1) != null) ? AstNodePos(val_peek(1)) : AstNodePos(val_peek(0)), EntityRes.CtxCommandExpression);
2002yyval = val_peek(0);
2008yyval = new NodeList<NamespaceImport>((NamespaceImport)val_peek(0));
2009SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), EntityRes.CtxNamespaceImportList);
2015yyval = ToNodeList<NamespaceImport>(val_peek(1)).Add((NamespaceImport)val_peek(0));
2021yyval = new NamespaceImport((Identifier)val_peek(1));
2022SetErrCtx(AstNode(yyval), Terminal(val_peek(2)), EntityRes.CtxNamespaceImport);
2028yyval = new NamespaceImport((DotExpr)val_peek(1));
2029SetErrCtx(AstNode(yyval), Terminal(val_peek(2)), EntityRes.CtxNamespaceImport);
2035yyval = new NamespaceImport((BuiltInExpr)val_peek(1));
2036SetErrCtx(AstNode(yyval), Terminal(val_peek(2)), EntityRes.CtxAliasedNamespaceImport);
2042yyval = new QueryStatement(ToNodeList<AST.FunctionDefinition>(val_peek(2)),(Node)val_peek(1));
2043SetErrCtx(AstNode(yyval), (val_peek(2) != null) ? AstNodePos(val_peek(2)) : AstNodePos(val_peek(1)), EntityRes.CtxQueryStatement);
2055yyval = val_peek(0);
2061yyval = new NodeList<AST.FunctionDefinition>((AST.FunctionDefinition)val_peek(0));
2062SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), AstNode(val_peek(0)).ErrCtx.ErrorContextInfo);
2068yyval = ToNodeList<AST.FunctionDefinition>(val_peek(1)).Add((AST.FunctionDefinition)val_peek(0));
2069SetErrCtx(AstNode(yyval), AstNodePos(yyval), AstNode(val_peek(0)).ErrCtx.ErrorContextInfo);
2075yyval = new AST.FunctionDefinition((Identifier)val_peek(5), ToNodeList<PropDefinition>(val_peek(4)), (Node)val_peek(1), Terminal(val_peek(6)).IPos, Terminal(val_peek(0)).IPos);
2076SetErrCtx(AstNode(yyval), Terminal(val_peek(6)), EntityRes.CtxFunctionDefinition);
2088yyval = val_peek(1);
2094yyval = new NodeList<PropDefinition>((PropDefinition)val_peek(0));
2095SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), AstNode(val_peek(0)).ErrCtx.ErrorContextInfo);
2101yyval = ToNodeList<PropDefinition>(val_peek(2)).Add((PropDefinition)val_peek(0));
2102SetErrCtx(AstNode(yyval), AstNodePos(yyval), AstNode(val_peek(0)).ErrCtx.ErrorContextInfo);
2108yyval = new PropDefinition((Identifier)val_peek(1), (Node)val_peek(0));
2109SetErrCtx(AstNode(yyval), AstNodePos(val_peek(1)), EntityRes.CtxFunctionDefinition);
2115yyval = val_peek(0);
2121yyval = val_peek(0);
2139yyval = new QueryExpr( (SelectClause)val_peek(5) ,
2140(FromClause)val_peek(4) ,
2141(Node)val_peek(3) ,
2142(GroupByClause)val_peek(2) ,
2143(HavingClause)val_peek(1) ,
2144(OrderByClause)val_peek(0) );
2146SetErrCtx(AstNode(yyval), AstNodePos(val_peek(5)), EntityRes.CtxQueryExpression);
2158yyval = new SelectClause(ToNodeList<AliasedExpr>(val_peek(0)), SelectKind.Row, (DistinctKind)val_peek(2), (Node)val_peek(1), EndMethodExprCounting());
2159SetErrCtx(AstNode(yyval), Terminal(val_peek(4)), EntityRes.CtxSelectRowClause);
2171yyval = new SelectClause(ToNodeList<AliasedExpr>(val_peek(0)), SelectKind.Value, (DistinctKind)val_peek(2), (Node)val_peek(1), EndMethodExprCounting());
2172SetErrCtx(AstNode(yyval), Terminal(val_peek(5)), EntityRes.CtxSelectValueClause);
2202yyval = val_peek(1);
2203SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxTopSubClause);
2209yyval = new FromClause(ToNodeList<FromClauseItem>(val_peek(0)));
2210SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxFromClause);
2216yyval = new NodeList<FromClauseItem>((FromClauseItem)val_peek(0));
2217SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), AstNode(val_peek(0)).ErrCtx.ErrorContextInfo);
2223yyval = ToNodeList<FromClauseItem>(val_peek(2)).Add((FromClauseItem)val_peek(0));
2224SetErrCtx(AstNode(yyval), AstNodePos(val_peek(2)), EntityRes.CtxFromClauseList);
2230yyval = new FromClauseItem((AliasedExpr)val_peek(0));
2231SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), EntityRes.CtxFromClauseItem);
2237yyval = new FromClauseItem((JoinClauseItem)val_peek(1));
2238SetErrCtx(AstNode(yyval), AstNodePos(val_peek(1)), EntityRes.CtxFromJoinClause);
2244yyval = new FromClauseItem((JoinClauseItem)val_peek(0));
2245SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), EntityRes.CtxFromJoinClause);
2251yyval = new FromClauseItem((ApplyClauseItem)val_peek(1));
2252SetErrCtx(AstNode(yyval), AstNodePos(val_peek(1)), EntityRes.CtxFromApplyClause);
2258yyval = new FromClauseItem((ApplyClauseItem)val_peek(0));
2259SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), EntityRes.CtxFromApplyClause);
2265yyval = new JoinClauseItem((FromClauseItem)val_peek(2), (FromClauseItem)val_peek(0), (JoinKind)val_peek(1));
2266SetErrCtx(AstNode(yyval), AstNodePos(val_peek(2)), EntityRes.CtxJoinClause);
2272yyval = new JoinClauseItem((FromClauseItem)val_peek(4), (FromClauseItem)val_peek(2), (JoinKind)val_peek(3), (Node)val_peek(0));
2273SetErrCtx(AstNode(yyval), AstNodePos(val_peek(4)), EntityRes.CtxJoinOnClause);
2279yyval = new ApplyClauseItem((FromClauseItem)val_peek(2), (FromClauseItem)val_peek(0), (ApplyKind)val_peek(1));
2280SetErrCtx(AstNode(yyval), AstNodePos(val_peek(2)), EntityRes.CtxApplyClause);
2364yyval = val_peek(0);
2370yyval = (Node)val_peek(0);
2371SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), EntityRes.CtxWhereClause);
2383yyval = val_peek(0);
2389yyval = new GroupByClause(ToNodeList<AliasedExpr>(val_peek(0)));
2390SetErrCtx(AstNode(yyval), Terminal(val_peek(2)), EntityRes.CtxGroupByClause);
2402yyval = val_peek(0);
2414yyval = new HavingClause((Node)val_peek(0), EndMethodExprCounting());
2415SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), EntityRes.CtxHavingClause);
2427yyval = val_peek(0);
2439yyval = new OrderByClause(ToNodeList<OrderByClauseItem>(val_peek(2)), (Node)val_peek(1), (Node)val_peek(0), EndMethodExprCounting());
2440SetErrCtx(AstNode(yyval), Terminal(val_peek(5)), EntityRes.CtxOrderByClauseItem);
2452yyval = val_peek(0);
2453SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxSkipSubClause);
2465yyval = val_peek(0);
2466SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxLimitSubClause);
2472yyval = new NodeList<OrderByClauseItem>((OrderByClauseItem)val_peek(0));
2473SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), AstNode(val_peek(0)).ErrCtx.ErrorContextInfo);
2479yyval = ToNodeList<OrderByClauseItem>(val_peek(2)).Add((OrderByClauseItem)val_peek(0));
2480SetErrCtx(AstNode(yyval), AstNodePos(val_peek(2)), EntityRes.CtxOrderByClause);
2486yyval = new OrderByClauseItem((Node)val_peek(1), (OrderKind)val_peek(0));
2487SetErrCtx(AstNode(yyval), AstNodePos(val_peek(1)), EntityRes.CtxOrderByClauseItem);
2493yyval = new OrderByClauseItem((Node)val_peek(3), (OrderKind)val_peek(0), (Identifier)val_peek(1));
2494SetErrCtx(AstNode(yyval), AstNodePos(val_peek(3)), EntityRes.CtxCollatedOrderByClauseItem);
2518yyval = new NodeList<Node>((Node)val_peek(0));
2519SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), AstNode(val_peek(0)).ErrCtx.ErrorContextInfo);
2525yyval = ToNodeList<Node>(val_peek(2)).Add((Node)val_peek(0));
2526SetErrCtx(AstNode(yyval), AstNodePos(val_peek(2)), EntityRes.CtxExpressionList);
2532yyval = val_peek(0);
2538yyval = (QueryParameter)val_peek(0);
2544yyval = (Identifier)val_peek(0);
2550yyval = val_peek(0);
2556yyval = val_peek(0);
2562yyval = val_peek(0);
2568yyval = val_peek(0);
2574yyval = val_peek(0);
2580yyval = val_peek(0);
2587yyval = val_peek(0);
2594yyval = val_peek(0);
2600yyval = val_peek(0);
2606yyval = val_peek(0);
2612yyval = val_peek(0);
2618yyval = new ParenExpr((Node)val_peek(1));
2619SetErrCtx(AstNode(yyval), Terminal(val_peek(2)), EntityRes.CtxParen);
2625yyval = new NodeList<Node>((Node)val_peek(2)).Add((Node)val_peek(0));
2631yyval = new NodeList<Node>((Node)val_peek(3)).Add((Node)val_peek(0));
2637yyval = new BuiltInExpr(BuiltInKind.Plus, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
2638SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxPlus);
2644yyval = new BuiltInExpr(BuiltInKind.Minus, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
2645SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxMinus);
2651yyval = new BuiltInExpr(BuiltInKind.Multiply, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
2652SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxMultiply);
2658yyval = new BuiltInExpr(BuiltInKind.Divide, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
2659SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxDivide);
2665yyval = new BuiltInExpr(BuiltInKind.Modulus, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
2666SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxModulus);
2672Literal literal = val_peek(0) as Literal;
2675literal.PrefixSign(Terminal(val_peek(1)).Token);
2676yyval = val_peek(0);
2680yyval = new BuiltInExpr(BuiltInKind.UnaryMinus, Terminal(val_peek(1)).Token, (Node)val_peek(0));
2681SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxUnaryMinus);
2689Literal literal = val_peek(0) as Literal;
2692literal.PrefixSign(Terminal(val_peek(1)).Token);
2693yyval = val_peek(0);
2697yyval = new BuiltInExpr(BuiltInKind.UnaryPlus, Terminal(val_peek(1)).Token, (Node)val_peek(0));
2698SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxUnaryPlus);
2705yyval = new BuiltInExpr(BuiltInKind.NotEqual, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
2706SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxNotEqual);
2712yyval = new BuiltInExpr(BuiltInKind.GreaterThan, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
2713SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxGreaterThan);
2719yyval = new BuiltInExpr(BuiltInKind.GreaterEqual, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
2720SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxGreaterThanEqual);
2726yyval = new BuiltInExpr(BuiltInKind.LessThan, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
2727SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxLessThan);
2733yyval = new BuiltInExpr(BuiltInKind.LessEqual, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
2734SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxLessThanEqual);
2740yyval = new BuiltInExpr(BuiltInKind.Intersect, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
2741SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxIntersect);
2747yyval = new BuiltInExpr(BuiltInKind.Union, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
2748SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxUnion);
2754yyval = new BuiltInExpr(BuiltInKind.UnionAll, Terminal(val_peek(2)).Token, (Node)val_peek(3), (Node)val_peek(0));
2755SetErrCtx(AstNode(yyval), Terminal(val_peek(2)), EntityRes.CtxUnionAll);
2761yyval = new BuiltInExpr(BuiltInKind.Except, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
2762SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxExcept);
2768yyval = new BuiltInExpr(BuiltInKind.Overlaps, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
2769SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxOverlaps);
2775yyval = new BuiltInExpr(BuiltInKind.In, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
2776SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxIn);
2782yyval = new BuiltInExpr(BuiltInKind.NotIn, Terminal(val_peek(2)).Token, (Node)val_peek(3), (Node)val_peek(0));
2783SetErrCtx(AstNode(yyval), Terminal(val_peek(2)), EntityRes.CtxNotIn);
2789yyval = new BuiltInExpr(BuiltInKind.Exists, Terminal(val_peek(3)).Token, (Node)val_peek(1));
2790SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxExists);
2796yyval = new BuiltInExpr(BuiltInKind.AnyElement, Terminal(val_peek(3)).Token, (Node)val_peek(1));
2797SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxAnyElement);
2803yyval = new BuiltInExpr(BuiltInKind.Element, Terminal(val_peek(3)).Token, (Node)val_peek(1));
2804SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxElement);
2810yyval = new BuiltInExpr(BuiltInKind.Flatten, Terminal(val_peek(3)).Token, (Node)val_peek(1));
2811SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxFlatten);
2817yyval = new BuiltInExpr(BuiltInKind.Distinct, Terminal(val_peek(3)).Token, (Node)val_peek(1));
2818SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxSet);
2824yyval = new BuiltInExpr(BuiltInKind.IsNull, "IsNull", (Node)val_peek(2));
2825SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxIsNull);
2831yyval = new BuiltInExpr(BuiltInKind.IsNotNull, "IsNotNull", (Node)val_peek(3));
2832SetErrCtx(AstNode(yyval), Terminal(val_peek(2)), EntityRes.CtxIsNotNull);
2838yyval = (CaseExpr)val_peek(0);
2844yyval = new BuiltInExpr(BuiltInKind.Treat, Terminal(val_peek(5)).Token, (Node)val_peek(3), (Node)val_peek(1));
2845SetErrCtx(AstNode(yyval), Terminal(val_peek(5)), EntityRes.CtxTreat);
2851yyval = new BuiltInExpr(BuiltInKind.Cast, Terminal(val_peek(5)).Token, (Node)val_peek(3), (Node)val_peek(1));
2852SetErrCtx(AstNode(yyval), Terminal(val_peek(5)), EntityRes.CtxCast);
2859Terminal(val_peek(5)).Token,
2860(Node)val_peek(3),
2861(Node)val_peek(1),
2864SetErrCtx(AstNode(yyval), Terminal(val_peek(5)), EntityRes.CtxOfType);
2872(Node)val_peek(4),
2873(Node)val_peek(1),
2876SetErrCtx(AstNode(yyval), Terminal(val_peek(6)), EntityRes.CtxOfTypeOnly);
2884(Node)val_peek(5),
2885(Node)val_peek(1),
2890SetErrCtx(AstNode(yyval), Terminal(val_peek(4)), EntityRes.CtxIsOf);
2898(Node)val_peek(6), /* instance */
2899(Node)val_peek(1), /* type */
2904SetErrCtx(AstNode(yyval), Terminal(val_peek(5)), EntityRes.CtxIsNotOf);
2912(Node)val_peek(6), /* instance */
2913(Node)val_peek(1), /* type */
2918SetErrCtx(AstNode(yyval), Terminal(val_peek(5)), EntityRes.CtxIsOf);
2926(Node)val_peek(7), /* instance */
2927(Node)val_peek(1), /* type */
2932SetErrCtx(AstNode(yyval), Terminal(val_peek(6)), EntityRes.CtxIsNotOf);
2938yyval = new BuiltInExpr(BuiltInKind.Like, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
2939SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxLike);
2946Terminal(val_peek(2)).Token,
2947new BuiltInExpr(BuiltInKind.Like, Terminal(val_peek(1)).Token, (Node)val_peek(3), (Node)val_peek(0)));
2948SetErrCtx(AstNode(yyval), Terminal(val_peek(2)), EntityRes.CtxNotLike);
2954yyval = new BuiltInExpr(BuiltInKind.Like, Terminal(val_peek(3)).Token, (Node)val_peek(4), (Node)val_peek(2), (Node)val_peek(0));
2955SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxLike);
2962Terminal(val_peek(4)).Token,
2963new BuiltInExpr(BuiltInKind.Like, Terminal(val_peek(3)).Token, (Node)val_peek(5), (Node)val_peek(2), (Node)val_peek(0)));
2964SetErrCtx(AstNode(yyval), Terminal(val_peek(4)), EntityRes.CtxNotLike);
2970NodeList<Node> elist = (NodeList<Node>)val_peek(2);
2972yyval = new BuiltInExpr(BuiltInKind.Between, "between", elist[0], elist[1], (Node)val_peek(0) );
2973SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxBetween);
2979NodeList<Node> elist = (NodeList<Node>)val_peek(2);
2981yyval = new BuiltInExpr(BuiltInKind.NotBetween, "notbetween", elist[0], elist[1], (Node)val_peek(0) );
2982SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxNotBetween);
2988yyval = new BuiltInExpr(BuiltInKind.Or, "or", (Node)val_peek(2), (Node)val_peek(0));
2989SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxOr);
2995yyval = new BuiltInExpr(BuiltInKind.Not, "not", (Node)val_peek(0));
2996SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxNot);
3002yyval = new BuiltInExpr(BuiltInKind.And, "and", (Node)val_peek(2), (Node)val_peek(0));
3003SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxAnd);
3009yyval = val_peek(0);
3015yyval = val_peek(0);
3021yyval = val_peek(0);
3027yyval = new BuiltInExpr(BuiltInKind.Equal, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
3028SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxEquals);
3034yyval = new BuiltInExpr(BuiltInKind.Equal, Terminal(val_peek(1)).Token, (Node)val_peek(2), (Node)val_peek(0));
3035SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxEquals);
3041yyval = new AliasedExpr((Node)val_peek(2), (Identifier)val_peek(0));
3042SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxAlias);
3048yyval = new AliasedExpr((Node)val_peek(0));
3049SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), AstNode(val_peek(0)).ErrCtx.ErrorContextInfo);
3055yyval = new NodeList<AliasedExpr>((AliasedExpr)val_peek(0));
3056SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), AstNode(val_peek(0)).ErrCtx.ErrorContextInfo);
3062yyval = ToNodeList<AliasedExpr>(val_peek(2)).Add((AliasedExpr)val_peek(0));
3069yyval = new CaseExpr(ToNodeList<WhenThenExpr>(val_peek(1)));
3070SetErrCtx(AstNode(yyval), Terminal(val_peek(2)), EntityRes.CtxCase);
3076yyval = new CaseExpr(ToNodeList<WhenThenExpr>(val_peek(2)), (Node)val_peek(1));
3077SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxCase);
3083yyval = new NodeList<WhenThenExpr>(new WhenThenExpr((Node)val_peek(2), (Node)val_peek(0)));
3084SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxCaseWhenThen);
3090yyval = ToNodeList<WhenThenExpr>(val_peek(4)).Add(new WhenThenExpr((Node)val_peek(2), (Node)val_peek(0)));
3096yyval = (Node)val_peek(0);
3097SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxCaseElse);
3103yyval = new RowConstructorExpr(ToNodeList<AliasedExpr>(val_peek(1)));
3104SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxRowCtor);
3110yyval = new MultisetConstructorExpr(ToNodeList<Node>(val_peek(1)));
3111SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxMultisetCtor);
3117yyval = new MultisetConstructorExpr(ToNodeList<Node>(val_peek(1)));
3118SetErrCtx(AstNode(yyval), Terminal(val_peek(2)), EntityRes.CtxMultisetCtor);
3124yyval = new DotExpr((Node)val_peek(2), (Identifier)val_peek(0));
3125SetErrCtx(AstNode(yyval), Terminal(val_peek(1)), EntityRes.CtxMemberAccess);
3131yyval = new RefExpr((Node)val_peek(1));
3132SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxRef);
3138yyval = new DerefExpr((Node)val_peek(1));
3139SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxDeref);
3145yyval = new CreateRefExpr((Node)val_peek(3), (Node)val_peek(1));
3146SetErrCtx(AstNode(yyval), Terminal(val_peek(5)), EntityRes.CtxCreateRef);
3152yyval = new CreateRefExpr((Node)val_peek(5), (Node)val_peek(3), (Node)val_peek(1));
3153SetErrCtx(AstNode(yyval), Terminal(val_peek(7)), EntityRes.CtxCreateRef);
3159yyval = new KeyExpr((Node)val_peek(1));
3160SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxKey);
3166yyval = new GroupPartitionExpr((DistinctKind)val_peek(2), (Node)val_peek(1));
3167SetErrCtx(AstNode(yyval), Terminal(val_peek(4)), EntityRes.CtxGroupPartition);
3173yyval = new MethodExpr((Node)val_peek(2), DistinctKind.None, null);
3174SetErrCtx(AstNode(yyval), AstNodePos(((DotExpr)val_peek(2)).Identifier), EntityRes.CtxMethod);
3180yyval = new MethodExpr((Node)val_peek(5), (DistinctKind)val_peek(3), ToNodeList<Node>(val_peek(2)), ToNodeList<RelshipNavigationExpr>(val_peek(0)));
3181SetErrCtx(AstNode(yyval), AstNodePos(((DotExpr)val_peek(5)).Identifier), EntityRes.CtxMethod);
3187yyval = new MethodExpr((Node)val_peek(5), (DistinctKind)val_peek(3), new NodeList<Node>((Node)val_peek(2)), ToNodeList<RelshipNavigationExpr>(val_peek(0)));
3188SetErrCtx(AstNode(yyval), AstNodePos(((DotExpr)val_peek(5)).Identifier), EntityRes.CtxMethod);
3194yyval = new MethodExpr((Identifier)val_peek(2), DistinctKind.None, null);
3195SetErrCtx(AstNode(yyval), AstNodePos(val_peek(2)), EntityRes.CtxMethod);
3201yyval = new MethodExpr((Identifier)val_peek(5), (DistinctKind)val_peek(3), ToNodeList<Node>(val_peek(2)), ToNodeList<RelshipNavigationExpr>(val_peek(0)));
3202SetErrCtx(AstNode(yyval), AstNodePos(val_peek(5)), EntityRes.CtxMethod);
3208yyval = new MethodExpr((Identifier)val_peek(5),(DistinctKind)val_peek(3), new NodeList<Node>((Node)val_peek(2)), ToNodeList<RelshipNavigationExpr>(val_peek(0)));
3209SetErrCtx(AstNode(yyval), AstNodePos(val_peek(5)), EntityRes.CtxMethod);
3215yyval = new RelshipNavigationExpr((Node)val_peek(3), (Node)val_peek(1), null, null);
3216SetErrCtx(AstNode(yyval), Terminal(val_peek(5)), EntityRes.CtxNavigate);
3222yyval = new RelshipNavigationExpr((Node)val_peek(5), (Node)val_peek(3), (Identifier)val_peek(1), null);
3223SetErrCtx(AstNode(yyval), Terminal(val_peek(7)), EntityRes.CtxNavigate);
3229yyval = new RelshipNavigationExpr((Node)val_peek(7), (Node)val_peek(5), (Identifier)val_peek(3), (Identifier)val_peek(1));
3230SetErrCtx(AstNode(yyval), Terminal(val_peek(9)), EntityRes.CtxNavigate);
3242yyval = val_peek(0);
3248yyval = new NodeList<RelshipNavigationExpr>((RelshipNavigationExpr)val_peek(0));
3249SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), EntityRes.CtxRelationshipList);
3255yyval = ToNodeList<RelshipNavigationExpr>(val_peek(1)).Add((RelshipNavigationExpr)val_peek(0));
3256SetErrCtx(AstNode(yyval), AstNodePos(val_peek(1)), EntityRes.CtxRelationshipList);
3262yyval = new RelshipNavigationExpr((Node)val_peek(3), (Node)val_peek(1), null, null);
3263SetErrCtx(AstNode(yyval), Terminal(val_peek(5)), EntityRes.CtxRelationship);
3269yyval = new RelshipNavigationExpr((Node)val_peek(5), (Node)val_peek(3), null, (Identifier)val_peek(1));
3270SetErrCtx(AstNode(yyval), Terminal(val_peek(7)), EntityRes.CtxRelationship);
3276yyval = new RelshipNavigationExpr((Node)val_peek(7), (Node)val_peek(5), (Identifier)val_peek(1), (Identifier)val_peek(3));
3277SetErrCtx(AstNode(yyval), Terminal(val_peek(9)), EntityRes.CtxRelationship);
3283yyval = val_peek(0);
3284SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), EntityRes.CtxTypeName);
3290yyval = val_peek(0);
3291SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), EntityRes.CtxTypeName);
3297Identifier identifier = (Identifier)val_peek(1);
3298Identifier escapedIdentifier = (Identifier)val_peek(0);
3303yyval = new Identifier(identifier.Name + "[]", /*isEscaped*/false, _query, AstNodePos(val_peek(1)));
3304SetErrCtx(AstNode(yyval), AstNodePos(val_peek(1)), EntityRes.CtxTypeName);
3310DotExpr dotExpr = (DotExpr)val_peek(1);
3312Identifier escapedIdentifier = (Identifier)val_peek(0);
3317yyval = new DotExpr(dotExpr.Left, new Identifier(identifier.Name + "[]", /*isEscaped*/false, _query, AstNodePos(val_peek(1))));
3318SetErrCtx(AstNode(yyval), AstNodePos(val_peek(1)), EntityRes.CtxTypeName);
3324yyval = (MethodExpr)val_peek(0);
3325SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), EntityRes.CtxTypeName);
3331yyval = new DotExpr((Node)val_peek(2), (Identifier)val_peek(0));
3332SetErrCtx(AstNode(yyval), AstNodePos(val_peek(2)), EntityRes.CtxTypeName);
3338yyval = new MethodExpr((Node)val_peek(2), DistinctKind.None, null);
3339SetErrCtx(AstNode(yyval), AstNodePos(((DotExpr)val_peek(2)).Identifier), EntityRes.CtxTypeNameWithTypeSpec);
3345yyval = new MethodExpr((Node)val_peek(3), DistinctKind.None, ToNodeList<Node>(val_peek(1)));
3346SetErrCtx(AstNode(yyval), AstNodePos(((DotExpr)val_peek(3)).Identifier), EntityRes.CtxTypeNameWithTypeSpec);
3352yyval = new MethodExpr((Identifier)val_peek(2), DistinctKind.None, null);
3353SetErrCtx(AstNode(yyval), AstNodePos(val_peek(2)), EntityRes.CtxTypeNameWithTypeSpec);
3359yyval = new MethodExpr((Identifier)val_peek(3), DistinctKind.None, ToNodeList<Node>(val_peek(1)));
3360SetErrCtx(AstNode(yyval), AstNodePos(val_peek(3)), EntityRes.CtxTypeNameWithTypeSpec);
3366yyval = (Identifier)val_peek(0);
3367SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), EntityRes.CtxEscapedIdentifier);
3373yyval = (Identifier)val_peek(0);
3374SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), EntityRes.CtxSimpleIdentifier);
3380yyval = (Identifier)val_peek(0);
3386yyval = val_peek(0);
3387SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), EntityRes.CtxLiteral);
3393yyval = new Literal(null, LiteralKind.Null, _query, TerminalPos(val_peek(0)));
3394SetErrCtx(AstNode(yyval), Terminal(val_peek(0)), EntityRes.CtxNullLiteral);
3400yyval = val_peek(0);
3406yyval = val_peek(0);
3412yyval = val_peek(0);
3418yyval = val_peek(0);
3424yyval = new CollectionTypeDefinition((Node)val_peek(1));
3425SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxCollectionTypeDefinition);
3431yyval = new RefTypeDefinition((Node)val_peek(1));
3432SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxRefTypeDefinition);
3438yyval = new RowTypeDefinition(ToNodeList<PropDefinition>(val_peek(1)));
3439SetErrCtx(AstNode(yyval), Terminal(val_peek(3)), EntityRes.CtxRowTypeDefinition);
3445yyval = new NodeList<PropDefinition>((PropDefinition)val_peek(0));
3446SetErrCtx(AstNode(yyval), AstNodePos(val_peek(0)), AstNode(val_peek(0)).ErrCtx.ErrorContextInfo);
3452yyval = ToNodeList<PropDefinition>(val_peek(2)).Add((PropDefinition)val_peek(0));
3453SetErrCtx(AstNode(yyval), AstNodePos(yyval), AstNode(val_peek(0)).ErrCtx.ErrorContextInfo);
3459yyval = new PropDefinition((Identifier)val_peek(1), (Node)val_peek(0));
3460SetErrCtx(AstNode(yyval), AstNodePos(val_peek(1)), EntityRes.CtxRowTypeDefinition);