From 45464654c6ebad2d532c07b2b529f80609ba9a68 Mon Sep 17 00:00:00 2001 From: Vadym Slizov Date: Mon, 3 Aug 2020 23:21:12 +0200 Subject: [PATCH] [refactoring] store halt_compiler tokens --- internal/php5/php5.go | 1032 +++++++++++++++++----------------- internal/php5/php5.y | 14 +- internal/php7/php7.go | 814 +++++++++++++-------------- internal/php7/php7.y | 12 +- pkg/printer/printer.go | 12 +- pkg/token/position.go | 1 - pkg/token/position_string.go | 93 ++- 7 files changed, 971 insertions(+), 1007 deletions(-) diff --git a/internal/php5/php5.go b/internal/php5/php5.go index 6feebfc..397fb9d 100644 --- a/internal/php5/php5.go +++ b/internal/php5/php5.go @@ -347,7 +347,7 @@ const yyEofCode = 1 const yyErrCode = 2 const yyInitialStackSize = 16 -// line internal/php5/php5.y:7109 +// line internal/php5/php5.y:7103 type simpleIndirectReference struct { all []*ast.ExprVariable @@ -2423,16 +2423,13 @@ yydefault: // save comments yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.Tokens) - yylex.(*Parser).setFreeFloating(yyVAL.node, token.HaltCompiller, yyDollar[2].token.Tokens) - yylex.(*Parser).setFreeFloating(yyVAL.node, token.OpenParenthesisToken, yyDollar[3].token.Tokens) - yylex.(*Parser).setFreeFloating(yyVAL.node, token.CloseParenthesisToken, yyDollar[4].token.Tokens) - yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[4].token.Tokens) + yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, append(yyDollar[2].token.Tokens, append(yyDollar[3].token.Tokens, yyDollar[4].token.Tokens...)...)) yylex.(*Parser).returnTokenToPool(yyDollar, &yyVAL) } case 11: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:382 + // line internal/php5/php5.y:379 { name := &ast.NameName{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtNamespace{ast.Node{}, name, nil} @@ -2450,7 +2447,7 @@ yydefault: } case 12: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:398 + // line internal/php5/php5.y:395 { name := &ast.NameName{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtNamespace{ast.Node{}, name, yyDollar[4].list} @@ -2468,7 +2465,7 @@ yydefault: } case 13: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:414 + // line internal/php5/php5.y:411 { yyVAL.node = &ast.StmtNamespace{ast.Node{}, nil, yyDollar[3].list} @@ -2484,7 +2481,7 @@ yydefault: } case 14: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:428 + // line internal/php5/php5.y:425 { useList := &ast.StmtUseList{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtUse{ast.Node{}, useList} @@ -2501,7 +2498,7 @@ yydefault: } case 15: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:443 + // line internal/php5/php5.y:440 { identifier := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} useList := &ast.StmtUseList{ast.Node{}, yyDollar[3].list} @@ -2523,7 +2520,7 @@ yydefault: } case 16: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:463 + // line internal/php5/php5.y:460 { identifier := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} useList := &ast.StmtUseList{ast.Node{}, yyDollar[3].list} @@ -2545,7 +2542,7 @@ yydefault: } case 17: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:483 + // line internal/php5/php5.y:480 { yyVAL.node = yyDollar[1].node @@ -2560,7 +2557,7 @@ yydefault: } case 18: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:499 + // line internal/php5/php5.y:496 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -2571,7 +2568,7 @@ yydefault: } case 19: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:508 + // line internal/php5/php5.y:505 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -2579,7 +2576,7 @@ yydefault: } case 20: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:517 + // line internal/php5/php5.y:514 { name := &ast.NameName{ast.Node{}, yyDollar[1].list} yyVAL.node = &ast.StmtUseDeclaration{ast.Node{}, name, nil} @@ -2592,7 +2589,7 @@ yydefault: } case 21: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:528 + // line internal/php5/php5.y:525 { name := &ast.NameName{ast.Node{}, yyDollar[1].list} alias := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} @@ -2611,7 +2608,7 @@ yydefault: } case 22: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:545 + // line internal/php5/php5.y:542 { name := &ast.NameName{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtUseDeclaration{ast.Node{}, name, nil} @@ -2627,7 +2624,7 @@ yydefault: } case 23: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:559 + // line internal/php5/php5.y:556 { name := &ast.NameName{ast.Node{}, yyDollar[2].list} alias := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value} @@ -2647,7 +2644,7 @@ yydefault: } case 24: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:580 + // line internal/php5/php5.y:577 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -2658,7 +2655,7 @@ yydefault: } case 25: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:589 + // line internal/php5/php5.y:586 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -2666,7 +2663,7 @@ yydefault: } case 26: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:598 + // line internal/php5/php5.y:595 { name := &ast.NameName{ast.Node{}, yyDollar[1].list} yyVAL.node = &ast.StmtUseDeclaration{ast.Node{}, name, nil} @@ -2679,7 +2676,7 @@ yydefault: } case 27: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:609 + // line internal/php5/php5.y:606 { name := &ast.NameName{ast.Node{}, yyDollar[1].list} alias := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} @@ -2698,7 +2695,7 @@ yydefault: } case 28: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:626 + // line internal/php5/php5.y:623 { name := &ast.NameName{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtUseDeclaration{ast.Node{}, name, nil} @@ -2714,7 +2711,7 @@ yydefault: } case 29: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:640 + // line internal/php5/php5.y:637 { name := &ast.NameName{ast.Node{}, yyDollar[2].list} alias := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value} @@ -2734,7 +2731,7 @@ yydefault: } case 30: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:661 + // line internal/php5/php5.y:658 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -2745,7 +2742,7 @@ yydefault: } case 31: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:670 + // line internal/php5/php5.y:667 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -2753,7 +2750,7 @@ yydefault: } case 32: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:679 + // line internal/php5/php5.y:676 { name := &ast.NameName{ast.Node{}, yyDollar[1].list} yyVAL.node = &ast.StmtUseDeclaration{ast.Node{}, name, nil} @@ -2766,7 +2763,7 @@ yydefault: } case 33: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:690 + // line internal/php5/php5.y:687 { name := &ast.NameName{ast.Node{}, yyDollar[1].list} alias := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} @@ -2785,7 +2782,7 @@ yydefault: } case 34: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:707 + // line internal/php5/php5.y:704 { name := &ast.NameName{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtUseDeclaration{ast.Node{}, name, nil} @@ -2801,7 +2798,7 @@ yydefault: } case 35: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:721 + // line internal/php5/php5.y:718 { name := &ast.NameName{ast.Node{}, yyDollar[2].list} alias := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value} @@ -2821,7 +2818,7 @@ yydefault: } case 36: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:742 + // line internal/php5/php5.y:739 { name := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} constant := &ast.StmtConstant{ast.Node{}, name, yyDollar[5].node} @@ -2844,7 +2841,7 @@ yydefault: } case 37: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:763 + // line internal/php5/php5.y:760 { name := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} constant := &ast.StmtConstant{ast.Node{}, name, yyDollar[4].node} @@ -2865,7 +2862,7 @@ yydefault: } case 38: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:785 + // line internal/php5/php5.y:782 { if inlineHtmlNode, ok := yyDollar[2].node.(*ast.StmtInlineHtml); ok && len(yyDollar[1].list) > 0 { prevNode := lastNode(yyDollar[1].list) @@ -2880,7 +2877,7 @@ yydefault: } case 39: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:798 + // line internal/php5/php5.y:795 { yyVAL.list = []ast.Vertex{} @@ -2888,7 +2885,7 @@ yydefault: } case 40: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:808 + // line internal/php5/php5.y:805 { // error yyVAL.node = nil @@ -2897,7 +2894,7 @@ yydefault: } case 41: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:815 + // line internal/php5/php5.y:812 { yyVAL.node = yyDollar[1].node @@ -2905,7 +2902,7 @@ yydefault: } case 42: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:821 + // line internal/php5/php5.y:818 { yyVAL.node = yyDollar[1].node @@ -2913,7 +2910,7 @@ yydefault: } case 43: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:827 + // line internal/php5/php5.y:824 { yyVAL.node = yyDollar[1].node @@ -2921,7 +2918,7 @@ yydefault: } case 44: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:833 + // line internal/php5/php5.y:830 { yyVAL.node = &ast.StmtHaltCompiler{ast.Node{}} @@ -2930,16 +2927,13 @@ yydefault: // save comments yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.Tokens) - yylex.(*Parser).setFreeFloating(yyVAL.node, token.HaltCompiller, yyDollar[2].token.Tokens) - yylex.(*Parser).setFreeFloating(yyVAL.node, token.OpenParenthesisToken, yyDollar[3].token.Tokens) - yylex.(*Parser).setFreeFloating(yyVAL.node, token.CloseParenthesisToken, yyDollar[4].token.Tokens) - yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[4].token.Tokens) + yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, append(yyDollar[2].token.Tokens, append(yyDollar[3].token.Tokens, yyDollar[4].token.Tokens...)...)) yylex.(*Parser).returnTokenToPool(yyDollar, &yyVAL) } case 45: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:853 + // line internal/php5/php5.y:847 { yyVAL.node = yyDollar[1].node @@ -2947,7 +2941,7 @@ yydefault: } case 46: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:859 + // line internal/php5/php5.y:853 { label := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.StmtLabel{ast.Node{}, label} @@ -2964,7 +2958,7 @@ yydefault: } case 47: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:877 + // line internal/php5/php5.y:871 { yyVAL.node = &ast.StmtStmtList{ast.Node{}, yyDollar[2].list} @@ -2979,7 +2973,7 @@ yydefault: } case 48: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:890 + // line internal/php5/php5.y:884 { yyVAL.node = &ast.StmtIf{ast.Node{}, yyDollar[2].node, yyDollar[3].node, yyDollar[4].list, yyDollar[5].node} @@ -3007,7 +3001,7 @@ yydefault: } case 49: yyDollar = yyS[yypt-8 : yypt+1] - // line internal/php5/php5.y:914 + // line internal/php5/php5.y:908 { stmts := &ast.StmtStmtList{ast.Node{}, yyDollar[4].list} yyVAL.node = &ast.StmtAltIf{ast.Node{}, yyDollar[2].node, stmts, yyDollar[5].list, yyDollar[6].node} @@ -3035,7 +3029,7 @@ yydefault: } case 50: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:938 + // line internal/php5/php5.y:932 { switch n := yyDollar[3].node.(type) { case *ast.StmtWhile: @@ -3064,7 +3058,7 @@ yydefault: } case 51: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:963 + // line internal/php5/php5.y:957 { yyVAL.node = &ast.StmtDo{ast.Node{}, yyDollar[2].node, yyDollar[4].node} @@ -3089,7 +3083,7 @@ yydefault: } case 52: yyDollar = yyS[yypt-9 : yypt+1] - // line internal/php5/php5.y:984 + // line internal/php5/php5.y:978 { switch n := yyDollar[9].node.(type) { case *ast.StmtFor: @@ -3118,7 +3112,7 @@ yydefault: } case 53: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:1011 + // line internal/php5/php5.y:1005 { switch n := yyDollar[3].node.(type) { case *ast.StmtSwitch: @@ -3149,7 +3143,7 @@ yydefault: } case 54: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:1038 + // line internal/php5/php5.y:1032 { yyVAL.node = &ast.StmtBreak{ast.Node{}, nil} @@ -3165,7 +3159,7 @@ yydefault: } case 55: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:1052 + // line internal/php5/php5.y:1046 { yyVAL.node = &ast.StmtBreak{ast.Node{}, yyDollar[2].node} @@ -3181,7 +3175,7 @@ yydefault: } case 56: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:1066 + // line internal/php5/php5.y:1060 { yyVAL.node = &ast.StmtContinue{ast.Node{}, nil} @@ -3197,7 +3191,7 @@ yydefault: } case 57: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:1080 + // line internal/php5/php5.y:1074 { yyVAL.node = &ast.StmtContinue{ast.Node{}, yyDollar[2].node} @@ -3213,7 +3207,7 @@ yydefault: } case 58: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:1094 + // line internal/php5/php5.y:1088 { yyVAL.node = &ast.StmtReturn{ast.Node{}, nil} @@ -3229,7 +3223,7 @@ yydefault: } case 59: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:1108 + // line internal/php5/php5.y:1102 { yyVAL.node = &ast.StmtReturn{ast.Node{}, yyDollar[2].node} @@ -3245,7 +3239,7 @@ yydefault: } case 60: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:1122 + // line internal/php5/php5.y:1116 { yyVAL.node = &ast.StmtReturn{ast.Node{}, yyDollar[2].node} @@ -3261,7 +3255,7 @@ yydefault: } case 61: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:1136 + // line internal/php5/php5.y:1130 { yyVAL.node = &ast.StmtExpression{ast.Node{}, yyDollar[1].node} @@ -3277,7 +3271,7 @@ yydefault: } case 62: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:1150 + // line internal/php5/php5.y:1144 { yyVAL.node = &ast.StmtGlobal{ast.Node{}, yyDollar[2].list} @@ -3293,7 +3287,7 @@ yydefault: } case 63: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:1164 + // line internal/php5/php5.y:1158 { yyVAL.node = &ast.StmtStatic{ast.Node{}, yyDollar[2].list} @@ -3309,7 +3303,7 @@ yydefault: } case 64: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:1178 + // line internal/php5/php5.y:1172 { yyVAL.node = &ast.StmtEcho{ast.Node{}, yyDollar[2].list} @@ -3326,7 +3320,7 @@ yydefault: } case 65: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1193 + // line internal/php5/php5.y:1187 { yyVAL.node = &ast.StmtInlineHtml{ast.Node{}, yyDollar[1].token.Value} @@ -3340,7 +3334,7 @@ yydefault: } case 66: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:1205 + // line internal/php5/php5.y:1199 { yyVAL.node = &ast.StmtExpression{ast.Node{}, yyDollar[1].node} @@ -3356,7 +3350,7 @@ yydefault: } case 67: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:1219 + // line internal/php5/php5.y:1213 { yyVAL.node = &ast.StmtUnset{ast.Node{}, yyDollar[3].list} @@ -3374,7 +3368,7 @@ yydefault: } case 68: yyDollar = yyS[yypt-8 : yypt+1] - // line internal/php5/php5.y:1235 + // line internal/php5/php5.y:1229 { if yyDollar[6].node == nil { switch n := yyDollar[8].node.(type) { @@ -3417,7 +3411,7 @@ yydefault: } case 69: yyDollar = yyS[yypt-8 : yypt+1] - // line internal/php5/php5.y:1275 + // line internal/php5/php5.y:1269 { if yyDollar[6].node == nil { switch n := yyDollar[8].node.(type) { @@ -3460,7 +3454,7 @@ yydefault: } case 70: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:1315 + // line internal/php5/php5.y:1309 { yyVAL.node = yyDollar[5].node yyVAL.node.(*ast.StmtDeclare).Consts = yyDollar[3].list @@ -3477,7 +3471,7 @@ yydefault: } case 71: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1330 + // line internal/php5/php5.y:1324 { yyVAL.node = &ast.StmtNop{ast.Node{}} @@ -3492,7 +3486,7 @@ yydefault: } case 72: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php5/php5.y:1343 + // line internal/php5/php5.y:1337 { yyVAL.node = &ast.StmtTry{ast.Node{}, yyDollar[3].list, yyDollar[5].list, yyDollar[6].node} @@ -3512,7 +3506,7 @@ yydefault: } case 73: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:1361 + // line internal/php5/php5.y:1355 { yyVAL.node = &ast.StmtThrow{ast.Node{}, yyDollar[2].node} @@ -3528,7 +3522,7 @@ yydefault: } case 74: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:1375 + // line internal/php5/php5.y:1369 { label := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} yyVAL.node = &ast.StmtGoto{ast.Node{}, label} @@ -3547,7 +3541,7 @@ yydefault: } case 75: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:1395 + // line internal/php5/php5.y:1389 { yyVAL.list = []ast.Vertex{} @@ -3555,7 +3549,7 @@ yydefault: } case 76: yyDollar = yyS[yypt-9 : yypt+1] - // line internal/php5/php5.y:1401 + // line internal/php5/php5.y:1395 { identifier := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -3579,7 +3573,7 @@ yydefault: } case 77: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:1426 + // line internal/php5/php5.y:1420 { yyVAL.node = nil @@ -3587,7 +3581,7 @@ yydefault: } case 78: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:1432 + // line internal/php5/php5.y:1426 { yyVAL.node = &ast.StmtFinally{ast.Node{}, yyDollar[3].list} @@ -3603,7 +3597,7 @@ yydefault: } case 79: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1449 + // line internal/php5/php5.y:1443 { yyVAL.list = yyDollar[1].list @@ -3611,7 +3605,7 @@ yydefault: } case 80: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:1455 + // line internal/php5/php5.y:1449 { yyVAL.list = []ast.Vertex{} @@ -3619,7 +3613,7 @@ yydefault: } case 81: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1464 + // line internal/php5/php5.y:1458 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -3627,7 +3621,7 @@ yydefault: } case 82: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:1470 + // line internal/php5/php5.y:1464 { yyVAL.list = append(yyDollar[1].list, yyDollar[2].node) @@ -3635,7 +3629,7 @@ yydefault: } case 83: yyDollar = yyS[yypt-8 : yypt+1] - // line internal/php5/php5.y:1479 + // line internal/php5/php5.y:1473 { identifier := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -3658,7 +3652,7 @@ yydefault: } case 84: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1503 + // line internal/php5/php5.y:1497 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -3666,7 +3660,7 @@ yydefault: } case 85: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:1509 + // line internal/php5/php5.y:1503 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -3677,7 +3671,7 @@ yydefault: } case 86: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1521 + // line internal/php5/php5.y:1515 { yyVAL.node = yyDollar[1].node @@ -3685,7 +3679,7 @@ yydefault: } case 87: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1530 + // line internal/php5/php5.y:1524 { yyVAL.node = yyDollar[1].node @@ -3693,7 +3687,7 @@ yydefault: } case 88: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1539 + // line internal/php5/php5.y:1533 { yyVAL.node = yyDollar[1].node @@ -3701,31 +3695,31 @@ yydefault: } case 89: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:1548 + // line internal/php5/php5.y:1542 { yyVAL.token = nil } case 90: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1552 + // line internal/php5/php5.y:1546 { yyVAL.token = yyDollar[1].token } case 91: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:1559 + // line internal/php5/php5.y:1553 { yyVAL.token = nil } case 92: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1563 + // line internal/php5/php5.y:1557 { yyVAL.token = yyDollar[1].token } case 93: yyDollar = yyS[yypt-9 : yypt+1] - // line internal/php5/php5.y:1570 + // line internal/php5/php5.y:1564 { name := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} yyVAL.node = &ast.StmtFunction{ast.Node{}, yyDollar[2].token != nil, name, yyDollar[5].list, nil, yyDollar[8].list} @@ -3751,7 +3745,7 @@ yydefault: } case 94: yyDollar = yyS[yypt-7 : yypt+1] - // line internal/php5/php5.y:1597 + // line internal/php5/php5.y:1591 { name := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} switch n := yyDollar[1].node.(type) { @@ -3781,7 +3775,7 @@ yydefault: } case 95: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php5/php5.y:1625 + // line internal/php5/php5.y:1619 { name := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} yyVAL.node = &ast.StmtInterface{ast.Node{}, name, yyDollar[3].InterfaceExtends, yyDollar[5].list} @@ -3800,7 +3794,7 @@ yydefault: } case 96: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1646 + // line internal/php5/php5.y:1640 { yyVAL.node = &ast.StmtClass{ast.Node{}, nil, nil, nil, nil, nil, nil} @@ -3814,7 +3808,7 @@ yydefault: } case 97: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:1658 + // line internal/php5/php5.y:1652 { classModifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.StmtClass{ast.Node{}, nil, []ast.Vertex{classModifier}, nil, nil, nil, nil} @@ -3831,7 +3825,7 @@ yydefault: } case 98: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1673 + // line internal/php5/php5.y:1667 { yyVAL.node = &ast.StmtTrait{ast.Node{}, nil, nil} @@ -3845,7 +3839,7 @@ yydefault: } case 99: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:1685 + // line internal/php5/php5.y:1679 { classModifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.StmtClass{ast.Node{}, nil, []ast.Vertex{classModifier}, nil, nil, nil, nil} @@ -3862,7 +3856,7 @@ yydefault: } case 100: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:1703 + // line internal/php5/php5.y:1697 { yyVAL.ClassExtends = nil @@ -3870,7 +3864,7 @@ yydefault: } case 101: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:1709 + // line internal/php5/php5.y:1703 { yyVAL.ClassExtends = &ast.StmtClassExtends{ast.Node{}, yyDollar[2].node} @@ -3884,13 +3878,13 @@ yydefault: } case 102: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1724 + // line internal/php5/php5.y:1718 { yyVAL.token = yyDollar[1].token } case 103: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:1731 + // line internal/php5/php5.y:1725 { yyVAL.InterfaceExtends = nil @@ -3898,7 +3892,7 @@ yydefault: } case 104: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:1737 + // line internal/php5/php5.y:1731 { yyVAL.InterfaceExtends = &ast.StmtInterfaceExtends{ast.Node{}, yyDollar[2].list} @@ -3912,7 +3906,7 @@ yydefault: } case 105: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:1752 + // line internal/php5/php5.y:1746 { yyVAL.ClassImplements = nil @@ -3920,7 +3914,7 @@ yydefault: } case 106: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:1758 + // line internal/php5/php5.y:1752 { yyVAL.ClassImplements = &ast.StmtClassImplements{ast.Node{}, yyDollar[2].list} @@ -3934,7 +3928,7 @@ yydefault: } case 107: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1773 + // line internal/php5/php5.y:1767 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -3942,7 +3936,7 @@ yydefault: } case 108: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:1779 + // line internal/php5/php5.y:1773 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -3953,7 +3947,7 @@ yydefault: } case 109: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:1791 + // line internal/php5/php5.y:1785 { yyVAL.node = nil @@ -3961,7 +3955,7 @@ yydefault: } case 110: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:1797 + // line internal/php5/php5.y:1791 { yyVAL.node = yyDollar[2].node @@ -3972,7 +3966,7 @@ yydefault: } case 111: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1809 + // line internal/php5/php5.y:1803 { yyVAL.node = yyDollar[1].node @@ -3980,7 +3974,7 @@ yydefault: } case 112: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:1815 + // line internal/php5/php5.y:1809 { yyVAL.node = &ast.ExprReference{ast.Node{}, yyDollar[2].node} @@ -3994,7 +3988,7 @@ yydefault: } case 113: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:1827 + // line internal/php5/php5.y:1821 { yyVAL.node = &ast.ExprList{ast.Node{}, yyDollar[3].list} @@ -4010,7 +4004,7 @@ yydefault: } case 114: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1844 + // line internal/php5/php5.y:1838 { yyVAL.node = &ast.StmtFor{ast.Node{}, nil, nil, nil, yyDollar[1].node} @@ -4021,7 +4015,7 @@ yydefault: } case 115: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:1853 + // line internal/php5/php5.y:1847 { stmtList := &ast.StmtStmtList{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtAltFor{ast.Node{}, nil, nil, nil, stmtList} @@ -4040,7 +4034,7 @@ yydefault: } case 116: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1873 + // line internal/php5/php5.y:1867 { yyVAL.node = &ast.StmtForeach{ast.Node{}, nil, nil, nil, yyDollar[1].node} @@ -4051,7 +4045,7 @@ yydefault: } case 117: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:1882 + // line internal/php5/php5.y:1876 { stmtList := &ast.StmtStmtList{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtAltForeach{ast.Node{}, nil, nil, nil, stmtList} @@ -4070,7 +4064,7 @@ yydefault: } case 118: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:1903 + // line internal/php5/php5.y:1897 { yyVAL.node = &ast.StmtDeclare{ast.Node{}, false, nil, yyDollar[1].node} @@ -4081,7 +4075,7 @@ yydefault: } case 119: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:1912 + // line internal/php5/php5.y:1906 { stmtList := &ast.StmtStmtList{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtDeclare{ast.Node{}, true, nil, stmtList} @@ -4100,7 +4094,7 @@ yydefault: } case 120: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:1933 + // line internal/php5/php5.y:1927 { name := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} constant := &ast.StmtConstant{ast.Node{}, name, yyDollar[3].node} @@ -4118,7 +4112,7 @@ yydefault: } case 121: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:1949 + // line internal/php5/php5.y:1943 { name := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} constant := &ast.StmtConstant{ast.Node{}, name, yyDollar[5].node} @@ -4137,7 +4131,7 @@ yydefault: } case 122: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:1970 + // line internal/php5/php5.y:1964 { caseList := &ast.StmtCaseList{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtSwitch{ast.Node{}, nil, caseList} @@ -4154,7 +4148,7 @@ yydefault: } case 123: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:1985 + // line internal/php5/php5.y:1979 { caseList := &ast.StmtCaseList{ast.Node{}, yyDollar[3].list} yyVAL.node = &ast.StmtSwitch{ast.Node{}, nil, caseList} @@ -4172,7 +4166,7 @@ yydefault: } case 124: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:2001 + // line internal/php5/php5.y:1995 { caseList := &ast.StmtCaseList{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtAltSwitch{ast.Node{}, nil, caseList} @@ -4191,7 +4185,7 @@ yydefault: } case 125: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:2018 + // line internal/php5/php5.y:2012 { caseList := &ast.StmtCaseList{ast.Node{}, yyDollar[3].list} @@ -4212,7 +4206,7 @@ yydefault: } case 126: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:2041 + // line internal/php5/php5.y:2035 { yyVAL.list = []ast.Vertex{} @@ -4220,7 +4214,7 @@ yydefault: } case 127: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:2047 + // line internal/php5/php5.y:2041 { _case := &ast.StmtCase{ast.Node{}, yyDollar[3].node, yyDollar[5].list} yyVAL.list = append(yyDollar[1].list, _case) @@ -4237,7 +4231,7 @@ yydefault: } case 128: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:2062 + // line internal/php5/php5.y:2056 { _default := &ast.StmtDefault{ast.Node{}, yyDollar[4].list} yyVAL.list = append(yyDollar[1].list, _default) @@ -4254,19 +4248,19 @@ yydefault: } case 129: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2081 + // line internal/php5/php5.y:2075 { yyVAL.token = yyDollar[1].token } case 130: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2085 + // line internal/php5/php5.y:2079 { yyVAL.token = yyDollar[1].token } case 131: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2093 + // line internal/php5/php5.y:2087 { yyVAL.node = &ast.StmtWhile{ast.Node{}, nil, yyDollar[1].node} @@ -4277,7 +4271,7 @@ yydefault: } case 132: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:2102 + // line internal/php5/php5.y:2096 { stmtList := &ast.StmtStmtList{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtAltWhile{ast.Node{}, nil, stmtList} @@ -4296,7 +4290,7 @@ yydefault: } case 133: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:2124 + // line internal/php5/php5.y:2118 { yyVAL.list = nil @@ -4304,7 +4298,7 @@ yydefault: } case 134: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:2130 + // line internal/php5/php5.y:2124 { _elseIf := &ast.StmtElseIf{ast.Node{}, yyDollar[3].node, yyDollar[4].node} yyVAL.list = append(yyDollar[1].list, _elseIf) @@ -4327,7 +4321,7 @@ yydefault: } case 135: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:2153 + // line internal/php5/php5.y:2147 { yyVAL.list = nil @@ -4335,7 +4329,7 @@ yydefault: } case 136: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:2159 + // line internal/php5/php5.y:2153 { stmts := &ast.StmtStmtList{ast.Node{}, yyDollar[5].list} _elseIf := &ast.StmtAltElseIf{ast.Node{}, yyDollar[3].node, stmts} @@ -4361,7 +4355,7 @@ yydefault: } case 137: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:2185 + // line internal/php5/php5.y:2179 { yyVAL.node = nil @@ -4369,7 +4363,7 @@ yydefault: } case 138: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:2191 + // line internal/php5/php5.y:2185 { yyVAL.node = &ast.StmtElse{ast.Node{}, yyDollar[2].node} @@ -4383,7 +4377,7 @@ yydefault: } case 139: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:2207 + // line internal/php5/php5.y:2201 { yyVAL.node = nil @@ -4391,7 +4385,7 @@ yydefault: } case 140: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2213 + // line internal/php5/php5.y:2207 { stmts := &ast.StmtStmtList{ast.Node{}, yyDollar[3].list} yyVAL.node = &ast.StmtAltElse{ast.Node{}, stmts} @@ -4408,7 +4402,7 @@ yydefault: } case 141: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2232 + // line internal/php5/php5.y:2226 { yyVAL.list = yyDollar[1].list @@ -4416,7 +4410,7 @@ yydefault: } case 142: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:2238 + // line internal/php5/php5.y:2232 { yyVAL.list = nil @@ -4424,7 +4418,7 @@ yydefault: } case 143: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2247 + // line internal/php5/php5.y:2241 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -4432,7 +4426,7 @@ yydefault: } case 144: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2253 + // line internal/php5/php5.y:2247 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -4443,7 +4437,7 @@ yydefault: } case 145: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:2265 + // line internal/php5/php5.y:2259 { identifier := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value} identifier.GetNode().Position = position.NewTokenPosition(yyDollar[4].token) @@ -4481,7 +4475,7 @@ yydefault: } case 146: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php5/php5.y:2301 + // line internal/php5/php5.y:2295 { identifier := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value} identifier.GetNode().Position = position.NewTokenPosition(yyDollar[4].token) @@ -4520,7 +4514,7 @@ yydefault: } case 147: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:2342 + // line internal/php5/php5.y:2336 { yyVAL.node = nil @@ -4528,7 +4522,7 @@ yydefault: } case 148: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2348 + // line internal/php5/php5.y:2342 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -4542,7 +4536,7 @@ yydefault: } case 149: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2360 + // line internal/php5/php5.y:2354 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -4556,7 +4550,7 @@ yydefault: } case 150: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2372 + // line internal/php5/php5.y:2366 { yyVAL.node = yyDollar[1].node @@ -4564,7 +4558,7 @@ yydefault: } case 151: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:2382 + // line internal/php5/php5.y:2376 { yyVAL.node = &ast.ArgumentList{ast.Node{}, nil} @@ -4579,7 +4573,7 @@ yydefault: } case 152: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2395 + // line internal/php5/php5.y:2389 { yyVAL.node = &ast.ArgumentList{ast.Node{}, yyDollar[2].list} @@ -4594,7 +4588,7 @@ yydefault: } case 153: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2408 + // line internal/php5/php5.y:2402 { arg := &ast.Argument{ast.Node{}, false, false, yyDollar[2].node} yyVAL.node = &ast.ArgumentList{ast.Node{}, []ast.Vertex{arg}} @@ -4611,7 +4605,7 @@ yydefault: } case 154: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2427 + // line internal/php5/php5.y:2421 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -4619,7 +4613,7 @@ yydefault: } case 155: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2433 + // line internal/php5/php5.y:2427 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -4630,7 +4624,7 @@ yydefault: } case 156: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2445 + // line internal/php5/php5.y:2439 { yyVAL.node = &ast.Argument{ast.Node{}, false, false, yyDollar[1].node} @@ -4644,7 +4638,7 @@ yydefault: } case 157: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2457 + // line internal/php5/php5.y:2451 { yyVAL.node = &ast.Argument{ast.Node{}, false, false, yyDollar[1].node} @@ -4658,7 +4652,7 @@ yydefault: } case 158: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:2469 + // line internal/php5/php5.y:2463 { yyVAL.node = &ast.Argument{ast.Node{}, false, true, yyDollar[2].node} @@ -4672,7 +4666,7 @@ yydefault: } case 159: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:2481 + // line internal/php5/php5.y:2475 { yyVAL.node = &ast.Argument{ast.Node{}, true, false, yyDollar[2].node} @@ -4686,7 +4680,7 @@ yydefault: } case 160: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2496 + // line internal/php5/php5.y:2490 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -4697,7 +4691,7 @@ yydefault: } case 161: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2505 + // line internal/php5/php5.y:2499 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -4705,7 +4699,7 @@ yydefault: } case 162: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2515 + // line internal/php5/php5.y:2509 { name := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.ExprVariable{ast.Node{}, name} @@ -4721,7 +4715,7 @@ yydefault: } case 163: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:2529 + // line internal/php5/php5.y:2523 { yyVAL.node = &ast.ExprVariable{ast.Node{}, yyDollar[2].node} @@ -4735,7 +4729,7 @@ yydefault: } case 164: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:2541 + // line internal/php5/php5.y:2535 { yyVAL.node = &ast.ExprVariable{ast.Node{}, yyDollar[3].node} @@ -4751,7 +4745,7 @@ yydefault: } case 165: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2559 + // line internal/php5/php5.y:2553 { identifier := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -4771,7 +4765,7 @@ yydefault: } case 166: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:2577 + // line internal/php5/php5.y:2571 { identifier := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -4792,7 +4786,7 @@ yydefault: } case 167: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2596 + // line internal/php5/php5.y:2590 { identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -4811,7 +4805,7 @@ yydefault: } case 168: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2613 + // line internal/php5/php5.y:2607 { identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -4831,7 +4825,7 @@ yydefault: } case 169: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:2635 + // line internal/php5/php5.y:2629 { yyVAL.list = append(yyDollar[1].list, yyDollar[2].node) @@ -4839,7 +4833,7 @@ yydefault: } case 170: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:2641 + // line internal/php5/php5.y:2635 { yyVAL.list = []ast.Vertex{} @@ -4847,7 +4841,7 @@ yydefault: } case 171: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2651 + // line internal/php5/php5.y:2645 { yyVAL.node = &ast.StmtPropertyList{ast.Node{}, yyDollar[1].list, nil, yyDollar[2].list} @@ -4863,7 +4857,7 @@ yydefault: } case 172: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:2665 + // line internal/php5/php5.y:2659 { yyVAL.node = yyDollar[1].node @@ -4878,7 +4872,7 @@ yydefault: } case 173: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2678 + // line internal/php5/php5.y:2672 { yyVAL.node = yyDollar[1].node @@ -4886,7 +4880,7 @@ yydefault: } case 174: yyDollar = yyS[yypt-8 : yypt+1] - // line internal/php5/php5.y:2684 + // line internal/php5/php5.y:2678 { name := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value} yyVAL.node = &ast.StmtClassMethod{ast.Node{}, yyDollar[3].token != nil, name, yyDollar[1].list, yyDollar[6].list, nil, yyDollar[8].node} @@ -4919,7 +4913,7 @@ yydefault: } case 175: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2718 + // line internal/php5/php5.y:2712 { yyVAL.node = &ast.StmtTraitUse{ast.Node{}, yyDollar[2].list, yyDollar[3].node} @@ -4933,7 +4927,7 @@ yydefault: } case 176: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2733 + // line internal/php5/php5.y:2727 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -4941,7 +4935,7 @@ yydefault: } case 177: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2739 + // line internal/php5/php5.y:2733 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -4952,7 +4946,7 @@ yydefault: } case 178: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2751 + // line internal/php5/php5.y:2745 { yyVAL.node = &ast.StmtNop{ast.Node{}} @@ -4966,7 +4960,7 @@ yydefault: } case 179: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2763 + // line internal/php5/php5.y:2757 { yyVAL.node = &ast.StmtTraitAdaptationList{ast.Node{}, yyDollar[2].list} @@ -4980,7 +4974,7 @@ yydefault: } case 180: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:2778 + // line internal/php5/php5.y:2772 { yyVAL.list = nil @@ -4988,7 +4982,7 @@ yydefault: } case 181: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2784 + // line internal/php5/php5.y:2778 { yyVAL.list = yyDollar[1].list @@ -4996,7 +4990,7 @@ yydefault: } case 182: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2793 + // line internal/php5/php5.y:2787 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -5004,7 +4998,7 @@ yydefault: } case 183: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:2799 + // line internal/php5/php5.y:2793 { yyVAL.list = append(yyDollar[1].list, yyDollar[2].node) @@ -5012,7 +5006,7 @@ yydefault: } case 184: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:2808 + // line internal/php5/php5.y:2802 { yyVAL.node = yyDollar[1].node @@ -5024,7 +5018,7 @@ yydefault: } case 185: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:2818 + // line internal/php5/php5.y:2812 { yyVAL.node = yyDollar[1].node @@ -5036,7 +5030,7 @@ yydefault: } case 186: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2831 + // line internal/php5/php5.y:2825 { yyVAL.node = &ast.StmtTraitUsePrecedence{ast.Node{}, yyDollar[1].node, yyDollar[3].list} @@ -5051,7 +5045,7 @@ yydefault: } case 187: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2847 + // line internal/php5/php5.y:2841 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -5059,7 +5053,7 @@ yydefault: } case 188: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2853 + // line internal/php5/php5.y:2847 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -5070,7 +5064,7 @@ yydefault: } case 189: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2865 + // line internal/php5/php5.y:2859 { name := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.StmtTraitMethodRef{ast.Node{}, nil, name} @@ -5086,7 +5080,7 @@ yydefault: } case 190: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2879 + // line internal/php5/php5.y:2873 { yyVAL.node = yyDollar[1].node @@ -5094,7 +5088,7 @@ yydefault: } case 191: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2888 + // line internal/php5/php5.y:2882 { target := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} yyVAL.node = &ast.StmtTraitMethodRef{ast.Node{}, yyDollar[1].node, target} @@ -5112,7 +5106,7 @@ yydefault: } case 192: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:2907 + // line internal/php5/php5.y:2901 { alias := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value} yyVAL.node = &ast.StmtTraitUseAlias{ast.Node{}, yyDollar[1].node, yyDollar[3].node, alias} @@ -5130,7 +5124,7 @@ yydefault: } case 193: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2923 + // line internal/php5/php5.y:2917 { yyVAL.node = &ast.StmtTraitUseAlias{ast.Node{}, yyDollar[1].node, yyDollar[3].node, nil} @@ -5145,7 +5139,7 @@ yydefault: } case 194: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:2939 + // line internal/php5/php5.y:2933 { yyVAL.node = nil @@ -5153,7 +5147,7 @@ yydefault: } case 195: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2945 + // line internal/php5/php5.y:2939 { yyVAL.node = yyDollar[1].node @@ -5161,7 +5155,7 @@ yydefault: } case 196: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2954 + // line internal/php5/php5.y:2948 { yyVAL.node = &ast.StmtNop{ast.Node{}} @@ -5176,7 +5170,7 @@ yydefault: } case 197: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:2967 + // line internal/php5/php5.y:2961 { yyVAL.node = &ast.StmtStmtList{ast.Node{}, yyDollar[2].list} @@ -5191,7 +5185,7 @@ yydefault: } case 198: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2983 + // line internal/php5/php5.y:2977 { yyVAL.list = yyDollar[1].list @@ -5199,7 +5193,7 @@ yydefault: } case 199: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:2989 + // line internal/php5/php5.y:2983 { modifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.list = []ast.Vertex{modifier} @@ -5214,7 +5208,7 @@ yydefault: } case 200: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:3005 + // line internal/php5/php5.y:2999 { yyVAL.list = nil @@ -5222,7 +5216,7 @@ yydefault: } case 201: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:3011 + // line internal/php5/php5.y:3005 { yyVAL.list = yyDollar[1].list @@ -5230,7 +5224,7 @@ yydefault: } case 202: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:3020 + // line internal/php5/php5.y:3014 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -5238,7 +5232,7 @@ yydefault: } case 203: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:3026 + // line internal/php5/php5.y:3020 { yyVAL.list = append(yyDollar[1].list, yyDollar[2].node) @@ -5246,7 +5240,7 @@ yydefault: } case 204: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:3035 + // line internal/php5/php5.y:3029 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -5260,7 +5254,7 @@ yydefault: } case 205: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:3047 + // line internal/php5/php5.y:3041 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -5274,7 +5268,7 @@ yydefault: } case 206: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:3059 + // line internal/php5/php5.y:3053 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -5288,7 +5282,7 @@ yydefault: } case 207: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:3071 + // line internal/php5/php5.y:3065 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -5302,7 +5296,7 @@ yydefault: } case 208: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:3083 + // line internal/php5/php5.y:3077 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -5316,7 +5310,7 @@ yydefault: } case 209: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:3095 + // line internal/php5/php5.y:3089 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -5330,7 +5324,7 @@ yydefault: } case 210: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3110 + // line internal/php5/php5.y:3104 { identifier := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -5350,7 +5344,7 @@ yydefault: } case 211: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:3128 + // line internal/php5/php5.y:3122 { identifier := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -5371,7 +5365,7 @@ yydefault: } case 212: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:3147 + // line internal/php5/php5.y:3141 { identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -5390,7 +5384,7 @@ yydefault: } case 213: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3164 + // line internal/php5/php5.y:3158 { identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -5410,7 +5404,7 @@ yydefault: } case 214: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:3185 + // line internal/php5/php5.y:3179 { name := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} constant := &ast.StmtConstant{ast.Node{}, name, yyDollar[5].node} @@ -5433,7 +5427,7 @@ yydefault: } case 215: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:3206 + // line internal/php5/php5.y:3200 { name := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} constant := &ast.StmtConstant{ast.Node{}, name, yyDollar[4].node} @@ -5453,7 +5447,7 @@ yydefault: } case 216: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3227 + // line internal/php5/php5.y:3221 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -5464,7 +5458,7 @@ yydefault: } case 217: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:3236 + // line internal/php5/php5.y:3230 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -5472,7 +5466,7 @@ yydefault: } case 218: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:3246 + // line internal/php5/php5.y:3240 { yyVAL.list = nil @@ -5480,7 +5474,7 @@ yydefault: } case 219: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:3252 + // line internal/php5/php5.y:3246 { yyVAL.list = yyDollar[1].list @@ -5488,7 +5482,7 @@ yydefault: } case 220: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3261 + // line internal/php5/php5.y:3255 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -5499,7 +5493,7 @@ yydefault: } case 221: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:3270 + // line internal/php5/php5.y:3264 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -5507,7 +5501,7 @@ yydefault: } case 222: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:3279 + // line internal/php5/php5.y:3273 { yyVAL.list = append(yyDollar[1].list, yyDollar[2].list...) @@ -5515,7 +5509,7 @@ yydefault: } case 223: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:3285 + // line internal/php5/php5.y:3279 { yyVAL.list = yyDollar[1].list @@ -5523,7 +5517,7 @@ yydefault: } case 224: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:3294 + // line internal/php5/php5.y:3288 { fetch := &ast.ExprArrayDimFetch{ast.Node{}, nil, yyDollar[3].node} yyVAL.list = append(yyDollar[1].list, fetch) @@ -5539,7 +5533,7 @@ yydefault: } case 225: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3308 + // line internal/php5/php5.y:3302 { fetch := &ast.ExprArrayDimFetch{ast.Node{}, nil, yyDollar[2].node} yyVAL.list = []ast.Vertex{fetch} @@ -5555,7 +5549,7 @@ yydefault: } case 226: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:3325 + // line internal/php5/php5.y:3319 { yyVAL.list = append(yyDollar[1].list, yyDollar[2].list...) @@ -5563,7 +5557,7 @@ yydefault: } case 227: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:3331 + // line internal/php5/php5.y:3325 { yyVAL.list = yyDollar[1].list @@ -5571,7 +5565,7 @@ yydefault: } case 228: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:3337 + // line internal/php5/php5.y:3331 { yyVAL.list = yyDollar[1].list @@ -5579,7 +5573,7 @@ yydefault: } case 229: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:3346 + // line internal/php5/php5.y:3340 { yyVAL.list = nil @@ -5587,7 +5581,7 @@ yydefault: } case 230: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:3352 + // line internal/php5/php5.y:3346 { yyVAL.list = yyDollar[1].list @@ -5595,7 +5589,7 @@ yydefault: } case 231: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3361 + // line internal/php5/php5.y:3355 { if yyDollar[3].node != nil { @@ -5613,7 +5607,7 @@ yydefault: } case 232: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php5/php5.y:3380 + // line internal/php5/php5.y:3374 { listNode := &ast.ExprList{ast.Node{}, yyDollar[3].list} yyVAL.node = &ast.ExprAssign{ast.Node{}, listNode, yyDollar[6].node} @@ -5632,7 +5626,7 @@ yydefault: } case 233: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3397 + // line internal/php5/php5.y:3391 { yyVAL.node = &ast.ExprAssign{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5647,7 +5641,7 @@ yydefault: } case 234: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:3410 + // line internal/php5/php5.y:3404 { yyVAL.node = &ast.ExprAssignReference{ast.Node{}, yyDollar[1].node, yyDollar[4].node} @@ -5663,7 +5657,7 @@ yydefault: } case 235: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php5/php5.y:3424 + // line internal/php5/php5.y:3418 { var _new *ast.ExprNew @@ -5692,7 +5686,7 @@ yydefault: } case 236: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:3451 + // line internal/php5/php5.y:3445 { yyVAL.node = &ast.ExprClone{ast.Node{}, yyDollar[2].node} @@ -5706,7 +5700,7 @@ yydefault: } case 237: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3463 + // line internal/php5/php5.y:3457 { yyVAL.node = &ast.ExprAssignPlus{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5720,7 +5714,7 @@ yydefault: } case 238: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3475 + // line internal/php5/php5.y:3469 { yyVAL.node = &ast.ExprAssignMinus{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5735,7 +5729,7 @@ yydefault: } case 239: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3488 + // line internal/php5/php5.y:3482 { yyVAL.node = &ast.ExprAssignMul{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5750,7 +5744,7 @@ yydefault: } case 240: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3501 + // line internal/php5/php5.y:3495 { yyVAL.node = &ast.ExprAssignPow{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5765,7 +5759,7 @@ yydefault: } case 241: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3514 + // line internal/php5/php5.y:3508 { yyVAL.node = &ast.ExprAssignDiv{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5780,7 +5774,7 @@ yydefault: } case 242: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3527 + // line internal/php5/php5.y:3521 { yyVAL.node = &ast.ExprAssignConcat{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5795,7 +5789,7 @@ yydefault: } case 243: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3540 + // line internal/php5/php5.y:3534 { yyVAL.node = &ast.ExprAssignMod{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5810,7 +5804,7 @@ yydefault: } case 244: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3553 + // line internal/php5/php5.y:3547 { yyVAL.node = &ast.ExprAssignBitwiseAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5825,7 +5819,7 @@ yydefault: } case 245: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3566 + // line internal/php5/php5.y:3560 { yyVAL.node = &ast.ExprAssignBitwiseOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5840,7 +5834,7 @@ yydefault: } case 246: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3579 + // line internal/php5/php5.y:3573 { yyVAL.node = &ast.ExprAssignBitwiseXor{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5855,7 +5849,7 @@ yydefault: } case 247: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3592 + // line internal/php5/php5.y:3586 { yyVAL.node = &ast.ExprAssignShiftLeft{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5870,7 +5864,7 @@ yydefault: } case 248: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3605 + // line internal/php5/php5.y:3599 { yyVAL.node = &ast.ExprAssignShiftRight{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5885,7 +5879,7 @@ yydefault: } case 249: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:3618 + // line internal/php5/php5.y:3612 { yyVAL.node = &ast.ExprPostInc{ast.Node{}, yyDollar[1].node} @@ -5900,7 +5894,7 @@ yydefault: } case 250: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:3631 + // line internal/php5/php5.y:3625 { yyVAL.node = &ast.ExprPreInc{ast.Node{}, yyDollar[2].node} @@ -5914,7 +5908,7 @@ yydefault: } case 251: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:3643 + // line internal/php5/php5.y:3637 { yyVAL.node = &ast.ExprPostDec{ast.Node{}, yyDollar[1].node} @@ -5929,7 +5923,7 @@ yydefault: } case 252: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:3656 + // line internal/php5/php5.y:3650 { yyVAL.node = &ast.ExprPreDec{ast.Node{}, yyDollar[2].node} @@ -5943,7 +5937,7 @@ yydefault: } case 253: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3668 + // line internal/php5/php5.y:3662 { yyVAL.node = &ast.ExprBinaryBooleanOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5958,7 +5952,7 @@ yydefault: } case 254: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3681 + // line internal/php5/php5.y:3675 { yyVAL.node = &ast.ExprBinaryBooleanAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5973,7 +5967,7 @@ yydefault: } case 255: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3694 + // line internal/php5/php5.y:3688 { yyVAL.node = &ast.ExprBinaryLogicalOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5988,7 +5982,7 @@ yydefault: } case 256: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3707 + // line internal/php5/php5.y:3701 { yyVAL.node = &ast.ExprBinaryLogicalAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6003,7 +5997,7 @@ yydefault: } case 257: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3720 + // line internal/php5/php5.y:3714 { yyVAL.node = &ast.ExprBinaryLogicalXor{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6018,7 +6012,7 @@ yydefault: } case 258: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3733 + // line internal/php5/php5.y:3727 { yyVAL.node = &ast.ExprBinaryBitwiseOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6033,7 +6027,7 @@ yydefault: } case 259: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3746 + // line internal/php5/php5.y:3740 { yyVAL.node = &ast.ExprBinaryBitwiseAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6048,7 +6042,7 @@ yydefault: } case 260: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3759 + // line internal/php5/php5.y:3753 { yyVAL.node = &ast.ExprBinaryBitwiseXor{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6063,7 +6057,7 @@ yydefault: } case 261: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3772 + // line internal/php5/php5.y:3766 { yyVAL.node = &ast.ExprBinaryConcat{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6078,7 +6072,7 @@ yydefault: } case 262: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3785 + // line internal/php5/php5.y:3779 { yyVAL.node = &ast.ExprBinaryPlus{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6093,7 +6087,7 @@ yydefault: } case 263: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3798 + // line internal/php5/php5.y:3792 { yyVAL.node = &ast.ExprBinaryMinus{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6108,7 +6102,7 @@ yydefault: } case 264: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3811 + // line internal/php5/php5.y:3805 { yyVAL.node = &ast.ExprBinaryMul{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6123,7 +6117,7 @@ yydefault: } case 265: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3824 + // line internal/php5/php5.y:3818 { yyVAL.node = &ast.ExprBinaryPow{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6138,7 +6132,7 @@ yydefault: } case 266: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3837 + // line internal/php5/php5.y:3831 { yyVAL.node = &ast.ExprBinaryDiv{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6153,7 +6147,7 @@ yydefault: } case 267: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3850 + // line internal/php5/php5.y:3844 { yyVAL.node = &ast.ExprBinaryMod{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6168,7 +6162,7 @@ yydefault: } case 268: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3863 + // line internal/php5/php5.y:3857 { yyVAL.node = &ast.ExprBinaryShiftLeft{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6183,7 +6177,7 @@ yydefault: } case 269: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3876 + // line internal/php5/php5.y:3870 { yyVAL.node = &ast.ExprBinaryShiftRight{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6198,7 +6192,7 @@ yydefault: } case 270: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:3889 + // line internal/php5/php5.y:3883 { yyVAL.node = &ast.ExprUnaryPlus{ast.Node{}, yyDollar[2].node} @@ -6212,7 +6206,7 @@ yydefault: } case 271: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:3901 + // line internal/php5/php5.y:3895 { yyVAL.node = &ast.ExprUnaryMinus{ast.Node{}, yyDollar[2].node} @@ -6226,7 +6220,7 @@ yydefault: } case 272: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:3913 + // line internal/php5/php5.y:3907 { yyVAL.node = &ast.ExprBooleanNot{ast.Node{}, yyDollar[2].node} @@ -6240,7 +6234,7 @@ yydefault: } case 273: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:3925 + // line internal/php5/php5.y:3919 { yyVAL.node = &ast.ExprBitwiseNot{ast.Node{}, yyDollar[2].node} @@ -6254,7 +6248,7 @@ yydefault: } case 274: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3937 + // line internal/php5/php5.y:3931 { yyVAL.node = &ast.ExprBinaryIdentical{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6269,7 +6263,7 @@ yydefault: } case 275: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3950 + // line internal/php5/php5.y:3944 { yyVAL.node = &ast.ExprBinaryNotIdentical{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6284,7 +6278,7 @@ yydefault: } case 276: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3963 + // line internal/php5/php5.y:3957 { yyVAL.node = &ast.ExprBinaryEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6299,7 +6293,7 @@ yydefault: } case 277: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3976 + // line internal/php5/php5.y:3970 { yyVAL.node = &ast.ExprBinaryNotEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6315,7 +6309,7 @@ yydefault: } case 278: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:3990 + // line internal/php5/php5.y:3984 { yyVAL.node = &ast.ExprBinarySmaller{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6330,7 +6324,7 @@ yydefault: } case 279: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:4003 + // line internal/php5/php5.y:3997 { yyVAL.node = &ast.ExprBinarySmallerOrEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6345,7 +6339,7 @@ yydefault: } case 280: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:4016 + // line internal/php5/php5.y:4010 { yyVAL.node = &ast.ExprBinaryGreater{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6360,7 +6354,7 @@ yydefault: } case 281: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:4029 + // line internal/php5/php5.y:4023 { yyVAL.node = &ast.ExprBinaryGreaterOrEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6375,7 +6369,7 @@ yydefault: } case 282: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:4042 + // line internal/php5/php5.y:4036 { yyVAL.node = &ast.ExprInstanceOf{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6390,7 +6384,7 @@ yydefault: } case 283: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4055 + // line internal/php5/php5.y:4049 { yyVAL.node = yyDollar[1].node @@ -6403,7 +6397,7 @@ yydefault: } case 284: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4064 + // line internal/php5/php5.y:4058 { yyVAL.node = yyDollar[1].node @@ -6411,7 +6405,7 @@ yydefault: } case 285: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4070 + // line internal/php5/php5.y:4064 { yyVAL.node = yyDollar[2].node @@ -6445,7 +6439,7 @@ yydefault: } case 286: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:4102 + // line internal/php5/php5.y:4096 { yyVAL.node = &ast.ExprTernary{ast.Node{}, yyDollar[1].node, yyDollar[3].node, yyDollar[5].node} @@ -6461,7 +6455,7 @@ yydefault: } case 287: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4116 + // line internal/php5/php5.y:4110 { yyVAL.node = &ast.ExprTernary{ast.Node{}, yyDollar[1].node, nil, yyDollar[4].node} @@ -6477,7 +6471,7 @@ yydefault: } case 288: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4130 + // line internal/php5/php5.y:4124 { yyVAL.node = yyDollar[1].node @@ -6485,7 +6479,7 @@ yydefault: } case 289: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4136 + // line internal/php5/php5.y:4130 { yyVAL.node = &ast.ExprCastInt{ast.Node{}, yyDollar[2].node} @@ -6500,7 +6494,7 @@ yydefault: } case 290: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4149 + // line internal/php5/php5.y:4143 { yyVAL.node = &ast.ExprCastDouble{ast.Node{}, yyDollar[2].node} @@ -6515,7 +6509,7 @@ yydefault: } case 291: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4162 + // line internal/php5/php5.y:4156 { yyVAL.node = &ast.ExprCastString{ast.Node{}, yyDollar[2].node} @@ -6530,7 +6524,7 @@ yydefault: } case 292: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4175 + // line internal/php5/php5.y:4169 { yyVAL.node = &ast.ExprCastArray{ast.Node{}, yyDollar[2].node} @@ -6545,7 +6539,7 @@ yydefault: } case 293: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4188 + // line internal/php5/php5.y:4182 { yyVAL.node = &ast.ExprCastObject{ast.Node{}, yyDollar[2].node} @@ -6560,7 +6554,7 @@ yydefault: } case 294: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4201 + // line internal/php5/php5.y:4195 { yyVAL.node = &ast.ExprCastBool{ast.Node{}, yyDollar[2].node} @@ -6575,7 +6569,7 @@ yydefault: } case 295: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4214 + // line internal/php5/php5.y:4208 { yyVAL.node = &ast.ExprCastUnset{ast.Node{}, yyDollar[2].node} @@ -6590,7 +6584,7 @@ yydefault: } case 296: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4227 + // line internal/php5/php5.y:4221 { e := yyDollar[2].node.(*ast.ExprExit) yyVAL.node = yyDollar[2].node @@ -6613,7 +6607,7 @@ yydefault: } case 297: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4248 + // line internal/php5/php5.y:4242 { yyVAL.node = &ast.ExprErrorSuppress{ast.Node{}, yyDollar[2].node} @@ -6627,7 +6621,7 @@ yydefault: } case 298: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4260 + // line internal/php5/php5.y:4254 { yyVAL.node = yyDollar[1].node @@ -6635,7 +6629,7 @@ yydefault: } case 299: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4266 + // line internal/php5/php5.y:4260 { yyVAL.node = yyDollar[1].node @@ -6643,7 +6637,7 @@ yydefault: } case 300: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4272 + // line internal/php5/php5.y:4266 { yyVAL.node = yyDollar[1].node @@ -6651,7 +6645,7 @@ yydefault: } case 301: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:4278 + // line internal/php5/php5.y:4272 { yyVAL.node = &ast.ExprShellExec{ast.Node{}, yyDollar[2].list} @@ -6665,7 +6659,7 @@ yydefault: } case 302: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4290 + // line internal/php5/php5.y:4284 { yyVAL.node = &ast.ExprPrint{ast.Node{}, yyDollar[2].node} @@ -6679,7 +6673,7 @@ yydefault: } case 303: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4302 + // line internal/php5/php5.y:4296 { yyVAL.node = &ast.ExprYield{ast.Node{}, nil, nil} @@ -6693,7 +6687,7 @@ yydefault: } case 304: yyDollar = yyS[yypt-9 : yypt+1] - // line internal/php5/php5.y:4314 + // line internal/php5/php5.y:4308 { yyVAL.node = &ast.ExprClosure{ast.Node{}, yyDollar[2].token != nil, false, yyDollar[4].list, yyDollar[6].ClosureUse, nil, yyDollar[8].list} @@ -6722,7 +6716,7 @@ yydefault: } case 305: yyDollar = yyS[yypt-10 : yypt+1] - // line internal/php5/php5.y:4340 + // line internal/php5/php5.y:4334 { yyVAL.node = &ast.ExprClosure{ast.Node{}, yyDollar[3].token != nil, true, yyDollar[5].list, yyDollar[7].ClosureUse, nil, yyDollar[9].list} @@ -6752,7 +6746,7 @@ yydefault: } case 306: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4370 + // line internal/php5/php5.y:4364 { yyVAL.node = &ast.ExprYield{ast.Node{}, nil, yyDollar[2].node} @@ -6766,7 +6760,7 @@ yydefault: } case 307: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4382 + // line internal/php5/php5.y:4376 { yyVAL.node = &ast.ExprYield{ast.Node{}, nil, yyDollar[2].node} @@ -6780,7 +6774,7 @@ yydefault: } case 308: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4394 + // line internal/php5/php5.y:4388 { yyVAL.node = &ast.ExprYield{ast.Node{}, yyDollar[2].node, yyDollar[4].node} @@ -6795,7 +6789,7 @@ yydefault: } case 309: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4407 + // line internal/php5/php5.y:4401 { yyVAL.node = &ast.ExprYield{ast.Node{}, yyDollar[2].node, yyDollar[4].node} @@ -6810,7 +6804,7 @@ yydefault: } case 310: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4423 + // line internal/php5/php5.y:4417 { yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6825,7 +6819,7 @@ yydefault: } case 311: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4436 + // line internal/php5/php5.y:4430 { yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6840,7 +6834,7 @@ yydefault: } case 312: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4449 + // line internal/php5/php5.y:4443 { str := &ast.ScalarString{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, str, yyDollar[3].node} @@ -6858,7 +6852,7 @@ yydefault: } case 313: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4465 + // line internal/php5/php5.y:4459 { yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6873,7 +6867,7 @@ yydefault: } case 314: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4481 + // line internal/php5/php5.y:4475 { yyVAL.node = &ast.ExprArray{ast.Node{}, yyDollar[3].list} @@ -6889,7 +6883,7 @@ yydefault: } case 315: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:4495 + // line internal/php5/php5.y:4489 { yyVAL.node = &ast.ExprShortArray{ast.Node{}, yyDollar[2].list} @@ -6904,13 +6898,13 @@ yydefault: } case 316: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4511 + // line internal/php5/php5.y:4505 { yyVAL.token = yyDollar[1].token } case 317: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:4518 + // line internal/php5/php5.y:4512 { yyVAL.ClosureUse = nil @@ -6918,7 +6912,7 @@ yydefault: } case 318: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4524 + // line internal/php5/php5.y:4518 { yyVAL.ClosureUse = &ast.ExprClosureUse{ast.Node{}, yyDollar[3].list} @@ -6934,7 +6928,7 @@ yydefault: } case 319: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:4541 + // line internal/php5/php5.y:4535 { identifier := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -6952,7 +6946,7 @@ yydefault: } case 320: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4557 + // line internal/php5/php5.y:4551 { identifier := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -6973,7 +6967,7 @@ yydefault: } case 321: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4576 + // line internal/php5/php5.y:4570 { identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -6990,7 +6984,7 @@ yydefault: } case 322: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4591 + // line internal/php5/php5.y:4585 { identifier := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -7010,7 +7004,7 @@ yydefault: } case 323: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4612 + // line internal/php5/php5.y:4606 { name := &ast.NameName{ast.Node{}, yyDollar[1].list} yyVAL.node = &ast.ExprFunctionCall{ast.Node{}, name, yyDollar[2].node.(*ast.ArgumentList)} @@ -7023,7 +7017,7 @@ yydefault: } case 324: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4623 + // line internal/php5/php5.y:4617 { funcName := &ast.NameRelative{ast.Node{}, yyDollar[3].list} yyVAL.node = &ast.ExprFunctionCall{ast.Node{}, funcName, yyDollar[4].node.(*ast.ArgumentList)} @@ -7040,7 +7034,7 @@ yydefault: } case 325: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:4638 + // line internal/php5/php5.y:4632 { funcName := &ast.NameFullyQualified{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.ExprFunctionCall{ast.Node{}, funcName, yyDollar[3].node.(*ast.ArgumentList)} @@ -7056,7 +7050,7 @@ yydefault: } case 326: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4652 + // line internal/php5/php5.y:4646 { yyVAL.node = &ast.ExprStaticCall{ast.Node{}, yyDollar[1].node, yyDollar[3].node, yyDollar[4].node.(*ast.ArgumentList)} @@ -7071,7 +7065,7 @@ yydefault: } case 327: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4665 + // line internal/php5/php5.y:4659 { yyVAL.node = &ast.ExprStaticCall{ast.Node{}, yyDollar[1].node, yyDollar[3].node, yyDollar[4].node.(*ast.ArgumentList)} @@ -7086,7 +7080,7 @@ yydefault: } case 328: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4678 + // line internal/php5/php5.y:4672 { yyVAL.node = &ast.ExprStaticCall{ast.Node{}, yyDollar[1].node, yyDollar[3].node, yyDollar[4].node.(*ast.ArgumentList)} @@ -7101,7 +7095,7 @@ yydefault: } case 329: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4691 + // line internal/php5/php5.y:4685 { yyVAL.node = &ast.ExprStaticCall{ast.Node{}, yyDollar[1].node, yyDollar[3].node, yyDollar[4].node.(*ast.ArgumentList)} @@ -7116,7 +7110,7 @@ yydefault: } case 330: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4704 + // line internal/php5/php5.y:4698 { yyVAL.node = &ast.ExprFunctionCall{ast.Node{}, yyDollar[1].node, yyDollar[2].node.(*ast.ArgumentList)} @@ -7130,7 +7124,7 @@ yydefault: } case 331: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4719 + // line internal/php5/php5.y:4713 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -7144,7 +7138,7 @@ yydefault: } case 332: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4731 + // line internal/php5/php5.y:4725 { yyVAL.node = &ast.NameName{ast.Node{}, yyDollar[1].list} @@ -7155,7 +7149,7 @@ yydefault: } case 333: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:4740 + // line internal/php5/php5.y:4734 { yyVAL.node = &ast.NameRelative{ast.Node{}, yyDollar[3].list} @@ -7170,7 +7164,7 @@ yydefault: } case 334: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4753 + // line internal/php5/php5.y:4747 { yyVAL.node = &ast.NameFullyQualified{ast.Node{}, yyDollar[2].list} @@ -7184,7 +7178,7 @@ yydefault: } case 335: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4768 + // line internal/php5/php5.y:4762 { yyVAL.node = &ast.NameName{ast.Node{}, yyDollar[1].list} @@ -7195,7 +7189,7 @@ yydefault: } case 336: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:4777 + // line internal/php5/php5.y:4771 { yyVAL.node = &ast.NameRelative{ast.Node{}, yyDollar[3].list} @@ -7210,7 +7204,7 @@ yydefault: } case 337: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4790 + // line internal/php5/php5.y:4784 { yyVAL.node = &ast.NameFullyQualified{ast.Node{}, yyDollar[2].list} @@ -7224,7 +7218,7 @@ yydefault: } case 338: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4805 + // line internal/php5/php5.y:4799 { yyVAL.node = yyDollar[1].node @@ -7232,7 +7226,7 @@ yydefault: } case 339: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4811 + // line internal/php5/php5.y:4805 { yyVAL.node = yyDollar[1].node @@ -7240,7 +7234,7 @@ yydefault: } case 340: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:4820 + // line internal/php5/php5.y:4814 { yyVAL.node = yyDollar[1].node @@ -7283,7 +7277,7 @@ yydefault: } case 341: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4861 + // line internal/php5/php5.y:4855 { yyVAL.node = yyDollar[1].node @@ -7291,7 +7285,7 @@ yydefault: } case 342: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4871 + // line internal/php5/php5.y:4865 { yyVAL.list = append(yyDollar[1].list, yyDollar[2].list...) @@ -7299,7 +7293,7 @@ yydefault: } case 343: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:4877 + // line internal/php5/php5.y:4871 { yyVAL.list = []ast.Vertex{} @@ -7307,7 +7301,7 @@ yydefault: } case 344: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4887 + // line internal/php5/php5.y:4881 { yyVAL.list = yyDollar[2].list @@ -7318,7 +7312,7 @@ yydefault: } case 345: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:4899 + // line internal/php5/php5.y:4893 { yyVAL.node = &ast.ExprExit{ast.Node{}, false, nil} @@ -7326,7 +7320,7 @@ yydefault: } case 346: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:4905 + // line internal/php5/php5.y:4899 { yyVAL.node = &ast.ExprExit{ast.Node{}, false, nil} @@ -7341,7 +7335,7 @@ yydefault: } case 347: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4918 + // line internal/php5/php5.y:4912 { yyVAL.node = &ast.ExprExit{ast.Node{}, false, yyDollar[1].node} @@ -7362,7 +7356,7 @@ yydefault: } case 348: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:4938 + // line internal/php5/php5.y:4932 { yyVAL.list = []ast.Vertex{} @@ -7370,7 +7364,7 @@ yydefault: } case 349: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4944 + // line internal/php5/php5.y:4938 { part := &ast.ScalarEncapsedStringPart{ast.Node{}, yyDollar[1].token.Value} yyVAL.list = []ast.Vertex{part} @@ -7382,7 +7376,7 @@ yydefault: } case 350: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4954 + // line internal/php5/php5.y:4948 { yyVAL.list = yyDollar[1].list @@ -7390,7 +7384,7 @@ yydefault: } case 351: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:4963 + // line internal/php5/php5.y:4957 { yyVAL.node = nil @@ -7398,7 +7392,7 @@ yydefault: } case 352: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4969 + // line internal/php5/php5.y:4963 { yyVAL.node = yyDollar[1].node @@ -7406,7 +7400,7 @@ yydefault: } case 353: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4978 + // line internal/php5/php5.y:4972 { yyVAL.node = &ast.ScalarLnumber{ast.Node{}, yyDollar[1].token.Value} @@ -7420,7 +7414,7 @@ yydefault: } case 354: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:4990 + // line internal/php5/php5.y:4984 { yyVAL.node = &ast.ScalarDnumber{ast.Node{}, yyDollar[1].token.Value} @@ -7434,7 +7428,7 @@ yydefault: } case 355: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5002 + // line internal/php5/php5.y:4996 { yyVAL.node = &ast.ScalarString{ast.Node{}, yyDollar[1].token.Value} @@ -7448,7 +7442,7 @@ yydefault: } case 356: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5014 + // line internal/php5/php5.y:5008 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -7462,7 +7456,7 @@ yydefault: } case 357: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5026 + // line internal/php5/php5.y:5020 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -7476,7 +7470,7 @@ yydefault: } case 358: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5038 + // line internal/php5/php5.y:5032 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -7490,7 +7484,7 @@ yydefault: } case 359: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5050 + // line internal/php5/php5.y:5044 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -7504,7 +7498,7 @@ yydefault: } case 360: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5062 + // line internal/php5/php5.y:5056 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -7518,7 +7512,7 @@ yydefault: } case 361: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5074 + // line internal/php5/php5.y:5068 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -7532,7 +7526,7 @@ yydefault: } case 362: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5086 + // line internal/php5/php5.y:5080 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -7546,7 +7540,7 @@ yydefault: } case 363: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5098 + // line internal/php5/php5.y:5092 { encapsed := &ast.ScalarEncapsedStringPart{ast.Node{}, yyDollar[2].token.Value} yyVAL.node = &ast.ScalarHeredoc{ast.Node{}, yyDollar[1].token.Value, []ast.Vertex{encapsed}} @@ -7562,7 +7556,7 @@ yydefault: } case 364: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:5112 + // line internal/php5/php5.y:5106 { yyVAL.node = &ast.ScalarHeredoc{ast.Node{}, yyDollar[1].token.Value, nil} @@ -7576,7 +7570,7 @@ yydefault: } case 365: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5127 + // line internal/php5/php5.y:5121 { target := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} yyVAL.node = &ast.ExprClassConstFetch{ast.Node{}, yyDollar[1].node, target} @@ -7594,7 +7588,7 @@ yydefault: } case 366: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5146 + // line internal/php5/php5.y:5140 { yyVAL.node = yyDollar[1].node @@ -7602,7 +7596,7 @@ yydefault: } case 367: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5155 + // line internal/php5/php5.y:5149 { yyVAL.node = yyDollar[1].node @@ -7610,7 +7604,7 @@ yydefault: } case 368: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5161 + // line internal/php5/php5.y:5155 { yyVAL.node = yyDollar[1].node @@ -7618,7 +7612,7 @@ yydefault: } case 369: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5167 + // line internal/php5/php5.y:5161 { name := &ast.NameName{ast.Node{}, yyDollar[1].list} yyVAL.node = &ast.ExprConstFetch{ast.Node{}, name} @@ -7631,7 +7625,7 @@ yydefault: } case 370: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5178 + // line internal/php5/php5.y:5172 { name := &ast.NameRelative{ast.Node{}, yyDollar[3].list} yyVAL.node = &ast.ExprConstFetch{ast.Node{}, name} @@ -7648,7 +7642,7 @@ yydefault: } case 371: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:5193 + // line internal/php5/php5.y:5187 { name := &ast.NameFullyQualified{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.ExprConstFetch{ast.Node{}, name} @@ -7664,7 +7658,7 @@ yydefault: } case 372: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:5207 + // line internal/php5/php5.y:5201 { yyVAL.node = &ast.ExprArray{ast.Node{}, yyDollar[3].list} @@ -7680,7 +7674,7 @@ yydefault: } case 373: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5221 + // line internal/php5/php5.y:5215 { yyVAL.node = &ast.ExprShortArray{ast.Node{}, yyDollar[2].list} @@ -7695,7 +7689,7 @@ yydefault: } case 374: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5234 + // line internal/php5/php5.y:5228 { yyVAL.node = yyDollar[1].node @@ -7703,7 +7697,7 @@ yydefault: } case 375: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5240 + // line internal/php5/php5.y:5234 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -7717,7 +7711,7 @@ yydefault: } case 376: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5252 + // line internal/php5/php5.y:5246 { yyVAL.node = yyDollar[1].node @@ -7725,7 +7719,7 @@ yydefault: } case 377: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:5261 + // line internal/php5/php5.y:5255 { yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7740,7 +7734,7 @@ yydefault: } case 378: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5274 + // line internal/php5/php5.y:5268 { yyVAL.node = &ast.ExprBinaryPlus{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7755,7 +7749,7 @@ yydefault: } case 379: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5287 + // line internal/php5/php5.y:5281 { yyVAL.node = &ast.ExprBinaryMinus{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7770,7 +7764,7 @@ yydefault: } case 380: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5300 + // line internal/php5/php5.y:5294 { yyVAL.node = &ast.ExprBinaryMul{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7785,7 +7779,7 @@ yydefault: } case 381: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5313 + // line internal/php5/php5.y:5307 { yyVAL.node = &ast.ExprBinaryPow{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7800,7 +7794,7 @@ yydefault: } case 382: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5326 + // line internal/php5/php5.y:5320 { yyVAL.node = &ast.ExprBinaryDiv{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7815,7 +7809,7 @@ yydefault: } case 383: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5339 + // line internal/php5/php5.y:5333 { yyVAL.node = &ast.ExprBinaryMod{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7830,7 +7824,7 @@ yydefault: } case 384: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:5352 + // line internal/php5/php5.y:5346 { yyVAL.node = &ast.ExprBooleanNot{ast.Node{}, yyDollar[2].node} @@ -7844,7 +7838,7 @@ yydefault: } case 385: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:5364 + // line internal/php5/php5.y:5358 { yyVAL.node = &ast.ExprBitwiseNot{ast.Node{}, yyDollar[2].node} @@ -7858,7 +7852,7 @@ yydefault: } case 386: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5376 + // line internal/php5/php5.y:5370 { yyVAL.node = &ast.ExprBinaryBitwiseOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7873,7 +7867,7 @@ yydefault: } case 387: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5389 + // line internal/php5/php5.y:5383 { yyVAL.node = &ast.ExprBinaryBitwiseAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7888,7 +7882,7 @@ yydefault: } case 388: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5402 + // line internal/php5/php5.y:5396 { yyVAL.node = &ast.ExprBinaryBitwiseXor{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7903,7 +7897,7 @@ yydefault: } case 389: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5415 + // line internal/php5/php5.y:5409 { yyVAL.node = &ast.ExprBinaryShiftLeft{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7918,7 +7912,7 @@ yydefault: } case 390: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5428 + // line internal/php5/php5.y:5422 { yyVAL.node = &ast.ExprBinaryShiftRight{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7933,7 +7927,7 @@ yydefault: } case 391: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5441 + // line internal/php5/php5.y:5435 { yyVAL.node = &ast.ExprBinaryConcat{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7948,7 +7942,7 @@ yydefault: } case 392: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5454 + // line internal/php5/php5.y:5448 { yyVAL.node = &ast.ExprBinaryLogicalXor{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7963,7 +7957,7 @@ yydefault: } case 393: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5467 + // line internal/php5/php5.y:5461 { yyVAL.node = &ast.ExprBinaryLogicalAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7978,7 +7972,7 @@ yydefault: } case 394: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5480 + // line internal/php5/php5.y:5474 { yyVAL.node = &ast.ExprBinaryLogicalOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7993,7 +7987,7 @@ yydefault: } case 395: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5493 + // line internal/php5/php5.y:5487 { yyVAL.node = &ast.ExprBinaryBooleanAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -8008,7 +8002,7 @@ yydefault: } case 396: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5506 + // line internal/php5/php5.y:5500 { yyVAL.node = &ast.ExprBinaryBooleanOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -8023,7 +8017,7 @@ yydefault: } case 397: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5519 + // line internal/php5/php5.y:5513 { yyVAL.node = &ast.ExprBinaryIdentical{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -8038,7 +8032,7 @@ yydefault: } case 398: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5532 + // line internal/php5/php5.y:5526 { yyVAL.node = &ast.ExprBinaryNotIdentical{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -8053,7 +8047,7 @@ yydefault: } case 399: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5545 + // line internal/php5/php5.y:5539 { yyVAL.node = &ast.ExprBinaryEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -8068,7 +8062,7 @@ yydefault: } case 400: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5558 + // line internal/php5/php5.y:5552 { yyVAL.node = &ast.ExprBinaryNotEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -8084,7 +8078,7 @@ yydefault: } case 401: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5572 + // line internal/php5/php5.y:5566 { yyVAL.node = &ast.ExprBinarySmaller{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -8099,7 +8093,7 @@ yydefault: } case 402: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5585 + // line internal/php5/php5.y:5579 { yyVAL.node = &ast.ExprBinaryGreater{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -8114,7 +8108,7 @@ yydefault: } case 403: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5598 + // line internal/php5/php5.y:5592 { yyVAL.node = &ast.ExprBinarySmallerOrEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -8129,7 +8123,7 @@ yydefault: } case 404: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5611 + // line internal/php5/php5.y:5605 { yyVAL.node = &ast.ExprBinaryGreaterOrEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -8144,7 +8138,7 @@ yydefault: } case 405: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:5624 + // line internal/php5/php5.y:5618 { yyVAL.node = &ast.ExprTernary{ast.Node{}, yyDollar[1].node, nil, yyDollar[4].node} @@ -8160,7 +8154,7 @@ yydefault: } case 406: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:5638 + // line internal/php5/php5.y:5632 { yyVAL.node = &ast.ExprTernary{ast.Node{}, yyDollar[1].node, yyDollar[3].node, yyDollar[5].node} @@ -8176,7 +8170,7 @@ yydefault: } case 407: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:5652 + // line internal/php5/php5.y:5646 { yyVAL.node = &ast.ExprUnaryPlus{ast.Node{}, yyDollar[2].node} @@ -8190,7 +8184,7 @@ yydefault: } case 408: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:5664 + // line internal/php5/php5.y:5658 { yyVAL.node = &ast.ExprUnaryMinus{ast.Node{}, yyDollar[2].node} @@ -8204,7 +8198,7 @@ yydefault: } case 409: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5676 + // line internal/php5/php5.y:5670 { yyVAL.node = yyDollar[2].node @@ -8216,7 +8210,7 @@ yydefault: } case 410: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5689 + // line internal/php5/php5.y:5683 { yyVAL.node = yyDollar[1].node @@ -8224,7 +8218,7 @@ yydefault: } case 411: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5695 + // line internal/php5/php5.y:5689 { name := &ast.NameName{ast.Node{}, yyDollar[1].list} yyVAL.node = &ast.ExprConstFetch{ast.Node{}, name} @@ -8237,7 +8231,7 @@ yydefault: } case 412: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5706 + // line internal/php5/php5.y:5700 { name := &ast.NameRelative{ast.Node{}, yyDollar[3].list} yyVAL.node = &ast.ExprConstFetch{ast.Node{}, name} @@ -8254,7 +8248,7 @@ yydefault: } case 413: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:5721 + // line internal/php5/php5.y:5715 { name := &ast.NameFullyQualified{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.ExprConstFetch{ast.Node{}, name} @@ -8270,7 +8264,7 @@ yydefault: } case 414: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5738 + // line internal/php5/php5.y:5732 { name := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.ExprVariable{ast.Node{}, name} @@ -8286,7 +8280,7 @@ yydefault: } case 415: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5752 + // line internal/php5/php5.y:5746 { yyVAL.node = yyDollar[1].node @@ -8294,7 +8288,7 @@ yydefault: } case 416: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5758 + // line internal/php5/php5.y:5752 { yyVAL.node = yyDollar[1].node @@ -8302,7 +8296,7 @@ yydefault: } case 417: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5764 + // line internal/php5/php5.y:5758 { yyVAL.node = yyDollar[1].node @@ -8310,7 +8304,7 @@ yydefault: } case 418: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5770 + // line internal/php5/php5.y:5764 { yyVAL.node = &ast.ScalarEncapsed{ast.Node{}, yyDollar[2].list} @@ -8324,7 +8318,7 @@ yydefault: } case 419: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5782 + // line internal/php5/php5.y:5776 { yyVAL.node = &ast.ScalarHeredoc{ast.Node{}, yyDollar[1].token.Value, yyDollar[2].list} @@ -8338,7 +8332,7 @@ yydefault: } case 420: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5794 + // line internal/php5/php5.y:5788 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -8352,7 +8346,7 @@ yydefault: } case 421: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:5809 + // line internal/php5/php5.y:5803 { yyVAL.list = nil @@ -8360,7 +8354,7 @@ yydefault: } case 422: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:5815 + // line internal/php5/php5.y:5809 { yyVAL.list = yyDollar[1].list @@ -8373,19 +8367,19 @@ yydefault: } case 423: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:5829 + // line internal/php5/php5.y:5823 { yyVAL.token = nil } case 424: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5833 + // line internal/php5/php5.y:5827 { yyVAL.token = yyDollar[1].token } case 425: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:5840 + // line internal/php5/php5.y:5834 { arrayItem := &ast.ExprArrayItem{ast.Node{}, false, yyDollar[3].node, yyDollar[5].node} yyVAL.list = append(yyDollar[1].list, arrayItem) @@ -8402,7 +8396,7 @@ yydefault: } case 426: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5855 + // line internal/php5/php5.y:5849 { arrayItem := &ast.ExprArrayItem{ast.Node{}, false, nil, yyDollar[3].node} yyVAL.list = append(yyDollar[1].list, arrayItem) @@ -8418,7 +8412,7 @@ yydefault: } case 427: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5869 + // line internal/php5/php5.y:5863 { arrayItem := &ast.ExprArrayItem{ast.Node{}, false, yyDollar[1].node, yyDollar[3].node} yyVAL.list = []ast.Vertex{arrayItem} @@ -8434,7 +8428,7 @@ yydefault: } case 428: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5883 + // line internal/php5/php5.y:5877 { arrayItem := &ast.ExprArrayItem{ast.Node{}, false, nil, yyDollar[1].node} yyVAL.list = []ast.Vertex{arrayItem} @@ -8449,7 +8443,7 @@ yydefault: } case 429: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5899 + // line internal/php5/php5.y:5893 { yyVAL.node = yyDollar[1].node @@ -8457,7 +8451,7 @@ yydefault: } case 430: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5905 + // line internal/php5/php5.y:5899 { yyVAL.node = yyDollar[1].node @@ -8465,7 +8459,7 @@ yydefault: } case 431: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5914 + // line internal/php5/php5.y:5908 { yyVAL.node = yyDollar[2].node @@ -8483,7 +8477,7 @@ yydefault: } case 432: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:5930 + // line internal/php5/php5.y:5924 { yyVAL.node = yyDollar[2].node @@ -8501,7 +8495,7 @@ yydefault: } case 433: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5950 + // line internal/php5/php5.y:5944 { yyVAL.node = yyDollar[1].node @@ -8509,7 +8503,7 @@ yydefault: } case 434: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5960 + // line internal/php5/php5.y:5954 { yyVAL.node = yyDollar[1].node @@ -8517,7 +8511,7 @@ yydefault: } case 435: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:5969 + // line internal/php5/php5.y:5963 { yyVAL.node = yyDollar[1].node @@ -8525,7 +8519,7 @@ yydefault: } case 436: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:5978 + // line internal/php5/php5.y:5972 { yyVAL.node = yyDollar[1].node @@ -8585,7 +8579,7 @@ yydefault: } case 437: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6036 + // line internal/php5/php5.y:6030 { yyVAL.node = yyDollar[1].node @@ -8593,7 +8587,7 @@ yydefault: } case 438: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:6045 + // line internal/php5/php5.y:6039 { yyVAL.list = append(yyDollar[1].list, yyDollar[2].list...) @@ -8601,7 +8595,7 @@ yydefault: } case 439: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:6051 + // line internal/php5/php5.y:6045 { yyVAL.list = []ast.Vertex{} @@ -8609,7 +8603,7 @@ yydefault: } case 440: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:6061 + // line internal/php5/php5.y:6055 { if yyDollar[3].list != nil { yyDollar[3].list[0].(*ast.ExprMethodCall).Method = yyDollar[2].list[len(yyDollar[2].list)-1].(*ast.ExprPropertyFetch).Property @@ -8625,7 +8619,7 @@ yydefault: } case 441: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6078 + // line internal/php5/php5.y:6072 { fetch := &ast.ExprArrayDimFetch{ast.Node{}, nil, yyDollar[3].node} yyVAL.list = append(yyDollar[1].list, fetch) @@ -8641,7 +8635,7 @@ yydefault: } case 442: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6092 + // line internal/php5/php5.y:6086 { fetch := &ast.ExprArrayDimFetch{ast.Node{}, nil, yyDollar[3].node} yyVAL.list = []ast.Vertex{yyDollar[1].node, fetch} @@ -8657,7 +8651,7 @@ yydefault: } case 443: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6109 + // line internal/php5/php5.y:6103 { yyVAL.node = &ast.ExprMethodCall{ast.Node{}, nil, nil, yyDollar[1].node.(*ast.ArgumentList)} @@ -8668,7 +8662,7 @@ yydefault: } case 444: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6121 + // line internal/php5/php5.y:6115 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -8676,7 +8670,7 @@ yydefault: } case 445: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6127 + // line internal/php5/php5.y:6121 { yyVAL.list = yyDollar[1].list @@ -8684,7 +8678,7 @@ yydefault: } case 446: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:6133 + // line internal/php5/php5.y:6127 { yyVAL.list = nil @@ -8692,7 +8686,7 @@ yydefault: } case 447: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6142 + // line internal/php5/php5.y:6136 { yyVAL.node = yyDollar[1].node @@ -8700,7 +8694,7 @@ yydefault: } case 448: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:6148 + // line internal/php5/php5.y:6142 { yyDollar[1].simpleIndirectReference.last.VarName = yyDollar[2].node @@ -8714,7 +8708,7 @@ yydefault: } case 449: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:6163 + // line internal/php5/php5.y:6157 { yyVAL.node = &ast.ExprStaticPropertyFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -8729,7 +8723,7 @@ yydefault: } case 450: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:6176 + // line internal/php5/php5.y:6170 { yyVAL.node = &ast.ExprStaticPropertyFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -8744,7 +8738,7 @@ yydefault: } case 451: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6192 + // line internal/php5/php5.y:6186 { yyVAL.node = yyDollar[1].node @@ -8752,7 +8746,7 @@ yydefault: } case 452: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6201 + // line internal/php5/php5.y:6195 { yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -8767,7 +8761,7 @@ yydefault: } case 453: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6214 + // line internal/php5/php5.y:6208 { yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -8782,7 +8776,7 @@ yydefault: } case 454: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6230 + // line internal/php5/php5.y:6224 { yyVAL.node = yyDollar[1].node @@ -8790,7 +8784,7 @@ yydefault: } case 455: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6236 + // line internal/php5/php5.y:6230 { yyVAL.node = yyDollar[1].node @@ -8798,7 +8792,7 @@ yydefault: } case 456: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6242 + // line internal/php5/php5.y:6236 { yyVAL.node = yyDollar[1].node @@ -8806,7 +8800,7 @@ yydefault: } case 457: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6252 + // line internal/php5/php5.y:6246 { yyVAL.node = yyDollar[1].node @@ -8814,7 +8808,7 @@ yydefault: } case 458: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:6258 + // line internal/php5/php5.y:6252 { yyDollar[1].simpleIndirectReference.last.VarName = yyDollar[2].node @@ -8828,7 +8822,7 @@ yydefault: } case 459: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6270 + // line internal/php5/php5.y:6264 { yyVAL.node = yyDollar[1].node @@ -8836,7 +8830,7 @@ yydefault: } case 460: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6279 + // line internal/php5/php5.y:6273 { yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -8851,7 +8845,7 @@ yydefault: } case 461: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6292 + // line internal/php5/php5.y:6286 { yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -8866,7 +8860,7 @@ yydefault: } case 462: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6305 + // line internal/php5/php5.y:6299 { yyVAL.node = yyDollar[1].node @@ -8874,7 +8868,7 @@ yydefault: } case 463: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6315 + // line internal/php5/php5.y:6309 { name := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.ExprVariable{ast.Node{}, name} @@ -8890,7 +8884,7 @@ yydefault: } case 464: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6329 + // line internal/php5/php5.y:6323 { yyVAL.node = &ast.ExprVariable{ast.Node{}, yyDollar[3].node} @@ -8906,7 +8900,7 @@ yydefault: } case 465: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:6346 + // line internal/php5/php5.y:6340 { yyVAL.node = nil @@ -8914,7 +8908,7 @@ yydefault: } case 466: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6352 + // line internal/php5/php5.y:6346 { yyVAL.node = yyDollar[1].node @@ -8922,7 +8916,7 @@ yydefault: } case 467: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6362 + // line internal/php5/php5.y:6356 { yyVAL.list = yyDollar[1].list @@ -8930,7 +8924,7 @@ yydefault: } case 468: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6368 + // line internal/php5/php5.y:6362 { fetch := &ast.ExprPropertyFetch{ast.Node{}, nil, yyDollar[1].node} yyVAL.list = []ast.Vertex{fetch} @@ -8942,7 +8936,7 @@ yydefault: } case 469: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6381 + // line internal/php5/php5.y:6375 { fetch := &ast.ExprArrayDimFetch{ast.Node{}, nil, yyDollar[3].node} yyVAL.list = append(yyDollar[1].list, fetch) @@ -8958,7 +8952,7 @@ yydefault: } case 470: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6395 + // line internal/php5/php5.y:6389 { fetch := &ast.ExprArrayDimFetch{ast.Node{}, nil, yyDollar[3].node} yyVAL.list = append(yyDollar[1].list, fetch) @@ -8974,7 +8968,7 @@ yydefault: } case 471: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6409 + // line internal/php5/php5.y:6403 { fetch := &ast.ExprPropertyFetch{ast.Node{}, nil, yyDollar[1].node} yyVAL.list = []ast.Vertex{fetch} @@ -8986,7 +8980,7 @@ yydefault: } case 472: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6422 + // line internal/php5/php5.y:6416 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -9000,7 +8994,7 @@ yydefault: } case 473: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:6434 + // line internal/php5/php5.y:6428 { yyVAL.node = yyDollar[2].node @@ -9015,7 +9009,7 @@ yydefault: } case 474: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6450 + // line internal/php5/php5.y:6444 { n := &ast.ExprVariable{ast.Node{}, nil} yyVAL.simpleIndirectReference = simpleIndirectReference{[]*ast.ExprVariable{n}, n} @@ -9030,7 +9024,7 @@ yydefault: } case 475: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:6463 + // line internal/php5/php5.y:6457 { n := &ast.ExprVariable{ast.Node{}, nil} @@ -9049,7 +9043,7 @@ yydefault: } case 476: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:6483 + // line internal/php5/php5.y:6477 { if len(yyDollar[1].list) == 0 { yyDollar[1].list = []ast.Vertex{&ast.ExprArrayItem{ast.Node{}, false, nil, nil}} @@ -9064,7 +9058,7 @@ yydefault: } case 477: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6496 + // line internal/php5/php5.y:6490 { if yyDollar[1].node.(*ast.ExprArrayItem).Key == nil && yyDollar[1].node.(*ast.ExprArrayItem).Val == nil { yyVAL.list = []ast.Vertex{} @@ -9076,7 +9070,7 @@ yydefault: } case 478: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6510 + // line internal/php5/php5.y:6504 { yyVAL.node = &ast.ExprArrayItem{ast.Node{}, false, nil, yyDollar[1].node} @@ -9090,7 +9084,7 @@ yydefault: } case 479: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6522 + // line internal/php5/php5.y:6516 { listNode := &ast.ExprList{ast.Node{}, yyDollar[3].list} yyVAL.node = &ast.ExprArrayItem{ast.Node{}, false, nil, listNode} @@ -9108,7 +9102,7 @@ yydefault: } case 480: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:6538 + // line internal/php5/php5.y:6532 { yyVAL.node = &ast.ExprArrayItem{ast.Node{}, false, nil, nil} @@ -9116,7 +9110,7 @@ yydefault: } case 481: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php5/php5.y:6548 + // line internal/php5/php5.y:6542 { yyVAL.list = []ast.Vertex{} @@ -9124,7 +9118,7 @@ yydefault: } case 482: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:6554 + // line internal/php5/php5.y:6548 { yyVAL.list = yyDollar[1].list @@ -9141,7 +9135,7 @@ yydefault: } case 483: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php5/php5.y:6572 + // line internal/php5/php5.y:6566 { arrayItem := &ast.ExprArrayItem{ast.Node{}, false, yyDollar[3].node, yyDollar[5].node} yyVAL.list = append(yyDollar[1].list, arrayItem) @@ -9158,7 +9152,7 @@ yydefault: } case 484: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:6587 + // line internal/php5/php5.y:6581 { arrayItem := &ast.ExprArrayItem{ast.Node{}, false, nil, yyDollar[3].node} yyVAL.list = append(yyDollar[1].list, arrayItem) @@ -9174,7 +9168,7 @@ yydefault: } case 485: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:6601 + // line internal/php5/php5.y:6595 { arrayItem := &ast.ExprArrayItem{ast.Node{}, false, yyDollar[1].node, yyDollar[3].node} yyVAL.list = []ast.Vertex{arrayItem} @@ -9190,7 +9184,7 @@ yydefault: } case 486: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6615 + // line internal/php5/php5.y:6609 { arrayItem := &ast.ExprArrayItem{ast.Node{}, false, nil, yyDollar[1].node} yyVAL.list = []ast.Vertex{arrayItem} @@ -9205,7 +9199,7 @@ yydefault: } case 487: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php5/php5.y:6628 + // line internal/php5/php5.y:6622 { reference := &ast.ExprReference{ast.Node{}, yyDollar[6].node} arrayItem := &ast.ExprArrayItem{ast.Node{}, false, yyDollar[3].node, reference} @@ -9225,7 +9219,7 @@ yydefault: } case 488: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6646 + // line internal/php5/php5.y:6640 { reference := &ast.ExprReference{ast.Node{}, yyDollar[4].node} arrayItem := &ast.ExprArrayItem{ast.Node{}, false, nil, reference} @@ -9243,7 +9237,7 @@ yydefault: } case 489: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6662 + // line internal/php5/php5.y:6656 { reference := &ast.ExprReference{ast.Node{}, yyDollar[4].node} arrayItem := &ast.ExprArrayItem{ast.Node{}, false, yyDollar[1].node, reference} @@ -9262,7 +9256,7 @@ yydefault: } case 490: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:6679 + // line internal/php5/php5.y:6673 { reference := &ast.ExprReference{ast.Node{}, yyDollar[2].node} arrayItem := &ast.ExprArrayItem{ast.Node{}, false, nil, reference} @@ -9279,7 +9273,7 @@ yydefault: } case 491: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:6697 + // line internal/php5/php5.y:6691 { yyVAL.list = append(yyDollar[1].list, yyDollar[2].node) @@ -9287,7 +9281,7 @@ yydefault: } case 492: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:6703 + // line internal/php5/php5.y:6697 { encapsed := &ast.ScalarEncapsedStringPart{ast.Node{}, yyDollar[2].token.Value} yyVAL.list = append(yyDollar[1].list, encapsed) @@ -9302,7 +9296,7 @@ yydefault: } case 493: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6716 + // line internal/php5/php5.y:6710 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -9310,7 +9304,7 @@ yydefault: } case 494: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:6722 + // line internal/php5/php5.y:6716 { encapsed := &ast.ScalarEncapsedStringPart{ast.Node{}, yyDollar[1].token.Value} yyVAL.list = []ast.Vertex{encapsed, yyDollar[2].node} @@ -9325,7 +9319,7 @@ yydefault: } case 495: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6738 + // line internal/php5/php5.y:6732 { name := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.ExprVariable{ast.Node{}, name} @@ -9341,7 +9335,7 @@ yydefault: } case 496: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6752 + // line internal/php5/php5.y:6746 { identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -9360,7 +9354,7 @@ yydefault: } case 497: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:6769 + // line internal/php5/php5.y:6763 { identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -9381,7 +9375,7 @@ yydefault: } case 498: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:6788 + // line internal/php5/php5.y:6782 { variable := &ast.ExprVariable{ast.Node{}, yyDollar[2].node} @@ -9398,7 +9392,7 @@ yydefault: } case 499: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:6803 + // line internal/php5/php5.y:6797 { name := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} variable := &ast.ExprVariable{ast.Node{}, name} @@ -9417,7 +9411,7 @@ yydefault: } case 500: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php5/php5.y:6820 + // line internal/php5/php5.y:6814 { identifier := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -9438,7 +9432,7 @@ yydefault: } case 501: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:6839 + // line internal/php5/php5.y:6833 { yyVAL.node = yyDollar[2].node @@ -9450,7 +9444,7 @@ yydefault: } case 502: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6852 + // line internal/php5/php5.y:6846 { yyVAL.node = &ast.ScalarString{ast.Node{}, yyDollar[1].token.Value} @@ -9464,7 +9458,7 @@ yydefault: } case 503: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6864 + // line internal/php5/php5.y:6858 { // TODO: add option to handle 64 bit integer if _, err := strconv.Atoi(string(yyDollar[1].token.Value)); err == nil { @@ -9483,7 +9477,7 @@ yydefault: } case 504: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:6881 + // line internal/php5/php5.y:6875 { identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.ExprVariable{ast.Node{}, identifier} @@ -9499,7 +9493,7 @@ yydefault: } case 505: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6898 + // line internal/php5/php5.y:6892 { yyVAL.node = &ast.ExprIsset{ast.Node{}, yyDollar[3].list} @@ -9515,7 +9509,7 @@ yydefault: } case 506: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6912 + // line internal/php5/php5.y:6906 { yyVAL.node = &ast.ExprEmpty{ast.Node{}, yyDollar[3].node} @@ -9531,7 +9525,7 @@ yydefault: } case 507: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6926 + // line internal/php5/php5.y:6920 { yyVAL.node = &ast.ExprEmpty{ast.Node{}, yyDollar[3].node} @@ -9547,7 +9541,7 @@ yydefault: } case 508: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:6940 + // line internal/php5/php5.y:6934 { yyVAL.node = &ast.ExprInclude{ast.Node{}, yyDollar[2].node} @@ -9561,7 +9555,7 @@ yydefault: } case 509: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:6952 + // line internal/php5/php5.y:6946 { yyVAL.node = &ast.ExprIncludeOnce{ast.Node{}, yyDollar[2].node} @@ -9575,7 +9569,7 @@ yydefault: } case 510: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php5/php5.y:6964 + // line internal/php5/php5.y:6958 { yyVAL.node = &ast.ExprEval{ast.Node{}, yyDollar[3].node} @@ -9591,7 +9585,7 @@ yydefault: } case 511: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:6978 + // line internal/php5/php5.y:6972 { yyVAL.node = &ast.ExprRequire{ast.Node{}, yyDollar[2].node} @@ -9605,7 +9599,7 @@ yydefault: } case 512: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php5/php5.y:6990 + // line internal/php5/php5.y:6984 { yyVAL.node = &ast.ExprRequireOnce{ast.Node{}, yyDollar[2].node} @@ -9619,7 +9613,7 @@ yydefault: } case 513: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:7005 + // line internal/php5/php5.y:6999 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -9627,7 +9621,7 @@ yydefault: } case 514: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:7011 + // line internal/php5/php5.y:7005 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -9638,7 +9632,7 @@ yydefault: } case 515: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:7023 + // line internal/php5/php5.y:7017 { yyVAL.node = yyDollar[1].node @@ -9646,7 +9640,7 @@ yydefault: } case 516: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php5/php5.y:7029 + // line internal/php5/php5.y:7023 { yyVAL.node = yyDollar[1].node @@ -9654,7 +9648,7 @@ yydefault: } case 517: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:7038 + // line internal/php5/php5.y:7032 { target := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} yyVAL.node = &ast.ExprClassConstFetch{ast.Node{}, yyDollar[1].node, target} @@ -9672,7 +9666,7 @@ yydefault: } case 518: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:7054 + // line internal/php5/php5.y:7048 { target := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} yyVAL.node = &ast.ExprClassConstFetch{ast.Node{}, yyDollar[1].node, target} @@ -9690,7 +9684,7 @@ yydefault: } case 519: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:7073 + // line internal/php5/php5.y:7067 { target := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} yyVAL.node = &ast.ExprClassConstFetch{ast.Node{}, yyDollar[1].node, target} @@ -9708,7 +9702,7 @@ yydefault: } case 520: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php5/php5.y:7092 + // line internal/php5/php5.y:7086 { target := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} yyVAL.node = &ast.ExprClassConstFetch{ast.Node{}, yyDollar[1].node, target} diff --git a/internal/php5/php5.y b/internal/php5/php5.y index eade1dc..44430ec 100644 --- a/internal/php5/php5.y +++ b/internal/php5/php5.y @@ -364,17 +364,14 @@ top_statement: } | T_HALT_COMPILER '(' ')' ';' { - $$ = &ast.StmtHaltCompiler{ast.Node{}, } + $$ = &ast.StmtHaltCompiler{ast.Node{}} // save position $$.GetNode().Position = position.NewTokensPosition($1, $4) // save comments yylex.(*Parser).setFreeFloating($$, token.Start, $1.Tokens) - yylex.(*Parser).setFreeFloating($$, token.HaltCompiller, $2.Tokens) - yylex.(*Parser).setFreeFloating($$, token.OpenParenthesisToken, $3.Tokens) - yylex.(*Parser).setFreeFloating($$, token.CloseParenthesisToken, $4.Tokens) - yylex.(*Parser).setToken($$, token.SemiColon, $4.Tokens) + yylex.(*Parser).setFreeFloatingTokens($$, token.End, append($2.Tokens, append($3.Tokens, $4.Tokens...)...)) yylex.(*Parser).returnTokenToPool(yyDollar, &yyVAL) } @@ -831,17 +828,14 @@ inner_statement: } | T_HALT_COMPILER '(' ')' ';' { - $$ = &ast.StmtHaltCompiler{ast.Node{}, } + $$ = &ast.StmtHaltCompiler{ast.Node{}} // save position $$.GetNode().Position = position.NewTokensPosition($1, $4) // save comments yylex.(*Parser).setFreeFloating($$, token.Start, $1.Tokens) - yylex.(*Parser).setFreeFloating($$, token.HaltCompiller, $2.Tokens) - yylex.(*Parser).setFreeFloating($$, token.OpenParenthesisToken, $3.Tokens) - yylex.(*Parser).setFreeFloating($$, token.CloseParenthesisToken, $4.Tokens) - yylex.(*Parser).setToken($$, token.SemiColon, $4.Tokens) + yylex.(*Parser).setFreeFloatingTokens($$, token.End, append($2.Tokens, append($3.Tokens, $4.Tokens...)...)) yylex.(*Parser).returnTokenToPool(yyDollar, &yyVAL) } diff --git a/internal/php7/php7.go b/internal/php7/php7.go index f5e4667..e8f3682 100644 --- a/internal/php7/php7.go +++ b/internal/php7/php7.go @@ -346,7 +346,7 @@ const yyEofCode = 1 const yyErrCode = 2 const yyInitialStackSize = 16 -// line internal/php7/php7.y:5603 +// line internal/php7/php7.y:5597 // line yacctab:1 var yyExca = [...]int{ @@ -2740,16 +2740,13 @@ yydefault: // save comments yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.Tokens) - yylex.(*Parser).setFreeFloating(yyVAL.node, token.HaltCompiller, yyDollar[2].token.Tokens) - yylex.(*Parser).setFreeFloating(yyVAL.node, token.OpenParenthesisToken, yyDollar[3].token.Tokens) - yylex.(*Parser).setFreeFloating(yyVAL.node, token.CloseParenthesisToken, yyDollar[4].token.Tokens) - yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[4].token.Tokens) + yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, append(yyDollar[2].token.Tokens, append(yyDollar[3].token.Tokens, yyDollar[4].token.Tokens...)...)) yylex.(*Parser).returnTokenToPool(yyDollar, &yyVAL) } case 93: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:479 + // line internal/php7/php7.y:476 { name := &ast.NameName{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtNamespace{ast.Node{}, name, nil} @@ -2768,7 +2765,7 @@ yydefault: } case 94: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php7/php7.y:496 + // line internal/php7/php7.y:493 { name := &ast.NameName{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtNamespace{ast.Node{}, name, yyDollar[4].list} @@ -2787,7 +2784,7 @@ yydefault: } case 95: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:513 + // line internal/php7/php7.y:510 { yyVAL.node = &ast.StmtNamespace{ast.Node{}, nil, yyDollar[3].list} @@ -2803,7 +2800,7 @@ yydefault: } case 96: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:527 + // line internal/php7/php7.y:524 { yyVAL.node = &ast.StmtUse{ast.Node{}, yyDollar[2].node} @@ -2818,7 +2815,7 @@ yydefault: } case 97: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:540 + // line internal/php7/php7.y:537 { useType := &ast.StmtUseType{ast.Node{}, yyDollar[2].node, yyDollar[3].node} yyVAL.node = &ast.StmtUse{ast.Node{}, useType} @@ -2835,7 +2832,7 @@ yydefault: } case 98: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:555 + // line internal/php7/php7.y:552 { useList := &ast.StmtUseList{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtUse{ast.Node{}, useList} @@ -2852,7 +2849,7 @@ yydefault: } case 99: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:570 + // line internal/php7/php7.y:567 { useList := &ast.StmtUseList{ast.Node{}, yyDollar[3].list} useType := &ast.StmtUseType{ast.Node{}, yyDollar[2].node, useList} @@ -2871,7 +2868,7 @@ yydefault: } case 100: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:587 + // line internal/php7/php7.y:584 { yyVAL.node = &ast.StmtConstList{ast.Node{}, yyDollar[2].list} @@ -2887,7 +2884,7 @@ yydefault: } case 101: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:604 + // line internal/php7/php7.y:601 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -2901,7 +2898,7 @@ yydefault: } case 102: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:616 + // line internal/php7/php7.y:613 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -2915,7 +2912,7 @@ yydefault: } case 103: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php7/php7.y:631 + // line internal/php7/php7.y:628 { name := &ast.NameName{ast.Node{}, yyDollar[1].list} useList := &ast.StmtUseList{ast.Node{}, yyDollar[4].list} @@ -2938,7 +2935,7 @@ yydefault: } case 104: yyDollar = yyS[yypt-7 : yypt+1] - // line internal/php7/php7.y:652 + // line internal/php7/php7.y:649 { name := &ast.NameName{ast.Node{}, yyDollar[2].list} useList := &ast.StmtUseList{ast.Node{}, yyDollar[5].list} @@ -2962,7 +2959,7 @@ yydefault: } case 105: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php7/php7.y:677 + // line internal/php7/php7.y:674 { name := &ast.NameName{ast.Node{}, yyDollar[1].list} useList := &ast.StmtUseList{ast.Node{}, yyDollar[4].list} @@ -2985,7 +2982,7 @@ yydefault: } case 106: yyDollar = yyS[yypt-7 : yypt+1] - // line internal/php7/php7.y:698 + // line internal/php7/php7.y:695 { name := &ast.NameName{ast.Node{}, yyDollar[2].list} useList := &ast.StmtUseList{ast.Node{}, yyDollar[5].list} @@ -3009,19 +3006,19 @@ yydefault: } case 107: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:723 + // line internal/php7/php7.y:720 { yyVAL.token = nil } case 108: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:727 + // line internal/php7/php7.y:724 { yyVAL.token = yyDollar[1].token } case 109: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:734 + // line internal/php7/php7.y:731 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -3032,7 +3029,7 @@ yydefault: } case 110: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:743 + // line internal/php7/php7.y:740 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -3040,7 +3037,7 @@ yydefault: } case 111: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:752 + // line internal/php7/php7.y:749 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -3051,7 +3048,7 @@ yydefault: } case 112: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:761 + // line internal/php7/php7.y:758 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -3059,7 +3056,7 @@ yydefault: } case 113: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:770 + // line internal/php7/php7.y:767 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -3070,7 +3067,7 @@ yydefault: } case 114: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:779 + // line internal/php7/php7.y:776 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -3078,7 +3075,7 @@ yydefault: } case 115: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:788 + // line internal/php7/php7.y:785 { yyVAL.node = yyDollar[1].node @@ -3086,7 +3083,7 @@ yydefault: } case 116: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:794 + // line internal/php7/php7.y:791 { yyVAL.node = &ast.StmtUseType{ast.Node{}, yyDollar[1].node, yyDollar[2].node} @@ -3097,7 +3094,7 @@ yydefault: } case 117: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:806 + // line internal/php7/php7.y:803 { name := &ast.NameName{ast.Node{}, yyDollar[1].list} yyVAL.node = &ast.StmtUseDeclaration{ast.Node{}, name, nil} @@ -3110,7 +3107,7 @@ yydefault: } case 118: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:817 + // line internal/php7/php7.y:814 { name := &ast.NameName{ast.Node{}, yyDollar[1].list} alias := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} @@ -3129,7 +3126,7 @@ yydefault: } case 119: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:837 + // line internal/php7/php7.y:834 { yyVAL.node = yyDollar[1].node @@ -3137,7 +3134,7 @@ yydefault: } case 120: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:843 + // line internal/php7/php7.y:840 { yyVAL.node = yyDollar[2].node @@ -3148,7 +3145,7 @@ yydefault: } case 121: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:855 + // line internal/php7/php7.y:852 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -3159,7 +3156,7 @@ yydefault: } case 122: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:864 + // line internal/php7/php7.y:861 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -3167,7 +3164,7 @@ yydefault: } case 123: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:873 + // line internal/php7/php7.y:870 { if inlineHtmlNode, ok := yyDollar[2].node.(*ast.StmtInlineHtml); ok && len(yyDollar[1].list) > 0 { prevNode := lastNode(yyDollar[1].list) @@ -3182,7 +3179,7 @@ yydefault: } case 124: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:886 + // line internal/php7/php7.y:883 { yyVAL.list = []ast.Vertex{} @@ -3190,7 +3187,7 @@ yydefault: } case 125: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:895 + // line internal/php7/php7.y:892 { // error yyVAL.node = nil @@ -3199,7 +3196,7 @@ yydefault: } case 126: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:902 + // line internal/php7/php7.y:899 { yyVAL.node = yyDollar[1].node @@ -3207,7 +3204,7 @@ yydefault: } case 127: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:908 + // line internal/php7/php7.y:905 { yyVAL.node = yyDollar[1].node @@ -3215,7 +3212,7 @@ yydefault: } case 128: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:914 + // line internal/php7/php7.y:911 { yyVAL.node = yyDollar[1].node @@ -3223,7 +3220,7 @@ yydefault: } case 129: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:920 + // line internal/php7/php7.y:917 { yyVAL.node = yyDollar[1].node @@ -3231,7 +3228,7 @@ yydefault: } case 130: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:926 + // line internal/php7/php7.y:923 { yyVAL.node = yyDollar[1].node @@ -3239,7 +3236,7 @@ yydefault: } case 131: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:932 + // line internal/php7/php7.y:929 { yyVAL.node = &ast.StmtHaltCompiler{ast.Node{}} @@ -3248,16 +3245,13 @@ yydefault: // save comments yylex.(*Parser).setFreeFloating(yyVAL.node, token.Start, yyDollar[1].token.Tokens) - yylex.(*Parser).setFreeFloating(yyVAL.node, token.HaltCompiller, yyDollar[2].token.Tokens) - yylex.(*Parser).setFreeFloating(yyVAL.node, token.OpenParenthesisToken, yyDollar[3].token.Tokens) - yylex.(*Parser).setFreeFloating(yyVAL.node, token.CloseParenthesisToken, yyDollar[4].token.Tokens) - yylex.(*Parser).setToken(yyVAL.node, token.SemiColon, yyDollar[4].token.Tokens) + yylex.(*Parser).setFreeFloatingTokens(yyVAL.node, token.End, append(yyDollar[2].token.Tokens, append(yyDollar[3].token.Tokens, yyDollar[4].token.Tokens...)...)) yylex.(*Parser).returnTokenToPool(yyDollar, &yyVAL) } case 132: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:950 + // line internal/php7/php7.y:944 { yyVAL.node = &ast.StmtStmtList{ast.Node{}, yyDollar[2].list} @@ -3272,7 +3266,7 @@ yydefault: } case 133: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:963 + // line internal/php7/php7.y:957 { yyVAL.node = yyDollar[1].node @@ -3280,7 +3274,7 @@ yydefault: } case 134: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:969 + // line internal/php7/php7.y:963 { yyVAL.node = yyDollar[1].node @@ -3288,7 +3282,7 @@ yydefault: } case 135: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php7/php7.y:975 + // line internal/php7/php7.y:969 { switch n := yyDollar[5].node.(type) { case *ast.StmtWhile: @@ -3311,7 +3305,7 @@ yydefault: } case 136: yyDollar = yyS[yypt-7 : yypt+1] - // line internal/php7/php7.y:996 + // line internal/php7/php7.y:990 { yyVAL.node = &ast.StmtDo{ast.Node{}, yyDollar[2].node, yyDollar[5].node} @@ -3330,7 +3324,7 @@ yydefault: } case 137: yyDollar = yyS[yypt-9 : yypt+1] - // line internal/php7/php7.y:1013 + // line internal/php7/php7.y:1007 { switch n := yyDollar[9].node.(type) { case *ast.StmtFor: @@ -3359,7 +3353,7 @@ yydefault: } case 138: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php7/php7.y:1040 + // line internal/php7/php7.y:1034 { switch n := yyDollar[5].node.(type) { case *ast.StmtSwitch: @@ -3384,7 +3378,7 @@ yydefault: } case 139: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:1063 + // line internal/php7/php7.y:1057 { yyVAL.node = &ast.StmtBreak{ast.Node{}, yyDollar[2].node} @@ -3400,7 +3394,7 @@ yydefault: } case 140: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:1077 + // line internal/php7/php7.y:1071 { yyVAL.node = &ast.StmtContinue{ast.Node{}, yyDollar[2].node} @@ -3416,7 +3410,7 @@ yydefault: } case 141: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:1091 + // line internal/php7/php7.y:1085 { yyVAL.node = &ast.StmtReturn{ast.Node{}, yyDollar[2].node} @@ -3432,7 +3426,7 @@ yydefault: } case 142: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:1105 + // line internal/php7/php7.y:1099 { yyVAL.node = &ast.StmtGlobal{ast.Node{}, yyDollar[2].list} @@ -3448,7 +3442,7 @@ yydefault: } case 143: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:1119 + // line internal/php7/php7.y:1113 { yyVAL.node = &ast.StmtStatic{ast.Node{}, yyDollar[2].list} @@ -3464,7 +3458,7 @@ yydefault: } case 144: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:1133 + // line internal/php7/php7.y:1127 { yyVAL.node = &ast.StmtEcho{ast.Node{}, yyDollar[2].list} @@ -3481,7 +3475,7 @@ yydefault: } case 145: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1148 + // line internal/php7/php7.y:1142 { yyVAL.node = &ast.StmtInlineHtml{ast.Node{}, yyDollar[1].token.Value} @@ -3495,7 +3489,7 @@ yydefault: } case 146: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:1160 + // line internal/php7/php7.y:1154 { yyVAL.node = &ast.StmtExpression{ast.Node{}, yyDollar[1].node} @@ -3511,7 +3505,7 @@ yydefault: } case 147: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php7/php7.y:1174 + // line internal/php7/php7.y:1168 { yyVAL.node = &ast.StmtUnset{ast.Node{}, yyDollar[3].list} @@ -3533,7 +3527,7 @@ yydefault: } case 148: yyDollar = yyS[yypt-7 : yypt+1] - // line internal/php7/php7.y:1194 + // line internal/php7/php7.y:1188 { switch n := yyDollar[7].node.(type) { case *ast.StmtForeach: @@ -3559,7 +3553,7 @@ yydefault: } case 149: yyDollar = yyS[yypt-9 : yypt+1] - // line internal/php7/php7.y:1219 + // line internal/php7/php7.y:1213 { switch n := yyDollar[9].node.(type) { case *ast.StmtForeach: @@ -3588,7 +3582,7 @@ yydefault: } case 150: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php7/php7.y:1246 + // line internal/php7/php7.y:1240 { yyVAL.node = yyDollar[5].node yyVAL.node.(*ast.StmtDeclare).Consts = yyDollar[3].list @@ -3605,7 +3599,7 @@ yydefault: } case 151: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1261 + // line internal/php7/php7.y:1255 { yyVAL.node = &ast.StmtNop{ast.Node{}} @@ -3620,7 +3614,7 @@ yydefault: } case 152: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php7/php7.y:1274 + // line internal/php7/php7.y:1268 { if yyDollar[6].node == nil { yyVAL.node = &ast.StmtTry{ast.Node{}, yyDollar[3].list, yyDollar[5].list, yyDollar[6].node} @@ -3639,7 +3633,7 @@ yydefault: } case 153: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:1291 + // line internal/php7/php7.y:1285 { yyVAL.node = &ast.StmtThrow{ast.Node{}, yyDollar[2].node} @@ -3655,7 +3649,7 @@ yydefault: } case 154: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:1305 + // line internal/php7/php7.y:1299 { label := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} yyVAL.node = &ast.StmtGoto{ast.Node{}, label} @@ -3674,7 +3668,7 @@ yydefault: } case 155: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:1322 + // line internal/php7/php7.y:1316 { label := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.StmtLabel{ast.Node{}, label} @@ -3691,7 +3685,7 @@ yydefault: } case 156: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:1339 + // line internal/php7/php7.y:1333 { yyVAL.list = []ast.Vertex{} @@ -3699,7 +3693,7 @@ yydefault: } case 157: yyDollar = yyS[yypt-9 : yypt+1] - // line internal/php7/php7.y:1345 + // line internal/php7/php7.y:1339 { identifier := &ast.Identifier{ast.Node{}, yyDollar[5].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -3723,7 +3717,7 @@ yydefault: } case 158: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1369 + // line internal/php7/php7.y:1363 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -3731,7 +3725,7 @@ yydefault: } case 159: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:1375 + // line internal/php7/php7.y:1369 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -3742,7 +3736,7 @@ yydefault: } case 160: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:1387 + // line internal/php7/php7.y:1381 { yyVAL.node = nil @@ -3750,7 +3744,7 @@ yydefault: } case 161: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:1393 + // line internal/php7/php7.y:1387 { yyVAL.node = &ast.StmtFinally{ast.Node{}, yyDollar[3].list} @@ -3766,7 +3760,7 @@ yydefault: } case 162: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1410 + // line internal/php7/php7.y:1404 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -3774,7 +3768,7 @@ yydefault: } case 163: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:1416 + // line internal/php7/php7.y:1410 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -3785,7 +3779,7 @@ yydefault: } case 164: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1428 + // line internal/php7/php7.y:1422 { yyVAL.node = yyDollar[1].node @@ -3793,7 +3787,7 @@ yydefault: } case 165: yyDollar = yyS[yypt-11 : yypt+1] - // line internal/php7/php7.y:1437 + // line internal/php7/php7.y:1431 { name := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} yyVAL.node = &ast.StmtFunction{ast.Node{}, yyDollar[2].token != nil, name, yyDollar[6].list, yyDollar[8].node, yyDollar[10].list} @@ -3825,31 +3819,31 @@ yydefault: } case 166: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:1470 + // line internal/php7/php7.y:1464 { yyVAL.token = nil } case 167: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1474 + // line internal/php7/php7.y:1468 { yyVAL.token = yyDollar[1].token } case 168: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:1481 + // line internal/php7/php7.y:1475 { yyVAL.token = nil } case 169: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1485 + // line internal/php7/php7.y:1479 { yyVAL.token = yyDollar[1].token } case 170: yyDollar = yyS[yypt-9 : yypt+1] - // line internal/php7/php7.y:1492 + // line internal/php7/php7.y:1486 { name := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} yyVAL.node = &ast.StmtClass{ast.Node{}, name, yyDollar[1].list, nil, yyDollar[4].ClassExtends, yyDollar[5].ClassImplements, yyDollar[8].list} @@ -3869,7 +3863,7 @@ yydefault: } case 171: yyDollar = yyS[yypt-8 : yypt+1] - // line internal/php7/php7.y:1510 + // line internal/php7/php7.y:1504 { name := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} yyVAL.node = &ast.StmtClass{ast.Node{}, name, nil, nil, yyDollar[3].ClassExtends, yyDollar[4].ClassImplements, yyDollar[7].list} @@ -3888,7 +3882,7 @@ yydefault: } case 172: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1530 + // line internal/php7/php7.y:1524 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -3896,7 +3890,7 @@ yydefault: } case 173: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:1536 + // line internal/php7/php7.y:1530 { yyVAL.list = append(yyDollar[1].list, yyDollar[2].node) @@ -3904,7 +3898,7 @@ yydefault: } case 174: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1545 + // line internal/php7/php7.y:1539 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -3918,7 +3912,7 @@ yydefault: } case 175: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1557 + // line internal/php7/php7.y:1551 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -3932,7 +3926,7 @@ yydefault: } case 176: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php7/php7.y:1572 + // line internal/php7/php7.y:1566 { name := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} yyVAL.node = &ast.StmtTrait{ast.Node{}, name, yyDollar[5].list} @@ -3951,7 +3945,7 @@ yydefault: } case 177: yyDollar = yyS[yypt-7 : yypt+1] - // line internal/php7/php7.y:1592 + // line internal/php7/php7.y:1586 { name := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} yyVAL.node = &ast.StmtInterface{ast.Node{}, name, yyDollar[3].InterfaceExtends, yyDollar[6].list} @@ -3970,7 +3964,7 @@ yydefault: } case 178: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:1612 + // line internal/php7/php7.y:1606 { yyVAL.ClassExtends = nil @@ -3978,7 +3972,7 @@ yydefault: } case 179: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:1618 + // line internal/php7/php7.y:1612 { yyVAL.ClassExtends = &ast.StmtClassExtends{ast.Node{}, yyDollar[2].node} @@ -3992,7 +3986,7 @@ yydefault: } case 180: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:1633 + // line internal/php7/php7.y:1627 { yyVAL.InterfaceExtends = nil @@ -4000,7 +3994,7 @@ yydefault: } case 181: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:1639 + // line internal/php7/php7.y:1633 { yyVAL.InterfaceExtends = &ast.StmtInterfaceExtends{ast.Node{}, yyDollar[2].list} @@ -4014,7 +4008,7 @@ yydefault: } case 182: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:1654 + // line internal/php7/php7.y:1648 { yyVAL.ClassImplements = nil @@ -4022,7 +4016,7 @@ yydefault: } case 183: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:1660 + // line internal/php7/php7.y:1654 { yyVAL.ClassImplements = &ast.StmtClassImplements{ast.Node{}, yyDollar[2].list} @@ -4036,7 +4030,7 @@ yydefault: } case 184: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1675 + // line internal/php7/php7.y:1669 { yyVAL.node = yyDollar[1].node @@ -4044,7 +4038,7 @@ yydefault: } case 185: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:1681 + // line internal/php7/php7.y:1675 { yyVAL.node = &ast.ExprReference{ast.Node{}, yyDollar[2].node} @@ -4058,7 +4052,7 @@ yydefault: } case 186: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:1693 + // line internal/php7/php7.y:1687 { yyVAL.node = &ast.ExprList{ast.Node{}, yyDollar[3].list} @@ -4074,7 +4068,7 @@ yydefault: } case 187: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:1707 + // line internal/php7/php7.y:1701 { yyVAL.node = &ast.ExprShortList{ast.Node{}, yyDollar[2].list} @@ -4089,7 +4083,7 @@ yydefault: } case 188: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1723 + // line internal/php7/php7.y:1717 { yyVAL.node = &ast.StmtFor{ast.Node{}, nil, nil, nil, yyDollar[1].node} @@ -4100,7 +4094,7 @@ yydefault: } case 189: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:1732 + // line internal/php7/php7.y:1726 { stmtList := &ast.StmtStmtList{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtAltFor{ast.Node{}, nil, nil, nil, stmtList} @@ -4119,7 +4113,7 @@ yydefault: } case 190: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1752 + // line internal/php7/php7.y:1746 { yyVAL.node = &ast.StmtForeach{ast.Node{}, nil, nil, nil, yyDollar[1].node} @@ -4130,7 +4124,7 @@ yydefault: } case 191: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:1761 + // line internal/php7/php7.y:1755 { stmtList := &ast.StmtStmtList{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtAltForeach{ast.Node{}, nil, nil, nil, stmtList} @@ -4149,7 +4143,7 @@ yydefault: } case 192: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1781 + // line internal/php7/php7.y:1775 { yyVAL.node = &ast.StmtDeclare{ast.Node{}, false, nil, yyDollar[1].node} @@ -4160,7 +4154,7 @@ yydefault: } case 193: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:1790 + // line internal/php7/php7.y:1784 { stmtList := &ast.StmtStmtList{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtDeclare{ast.Node{}, true, nil, stmtList} @@ -4179,7 +4173,7 @@ yydefault: } case 194: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:1810 + // line internal/php7/php7.y:1804 { caseList := &ast.StmtCaseList{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtSwitch{ast.Node{}, nil, caseList} @@ -4196,7 +4190,7 @@ yydefault: } case 195: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:1825 + // line internal/php7/php7.y:1819 { caseList := &ast.StmtCaseList{ast.Node{}, yyDollar[3].list} yyVAL.node = &ast.StmtSwitch{ast.Node{}, nil, caseList} @@ -4214,7 +4208,7 @@ yydefault: } case 196: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:1841 + // line internal/php7/php7.y:1835 { caseList := &ast.StmtCaseList{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtAltSwitch{ast.Node{}, nil, caseList} @@ -4233,7 +4227,7 @@ yydefault: } case 197: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php7/php7.y:1858 + // line internal/php7/php7.y:1852 { caseList := &ast.StmtCaseList{ast.Node{}, yyDollar[3].list} @@ -4254,7 +4248,7 @@ yydefault: } case 198: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:1880 + // line internal/php7/php7.y:1874 { yyVAL.list = []ast.Vertex{} @@ -4262,7 +4256,7 @@ yydefault: } case 199: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php7/php7.y:1886 + // line internal/php7/php7.y:1880 { _case := &ast.StmtCase{ast.Node{}, yyDollar[3].node, yyDollar[5].list} yyVAL.list = append(yyDollar[1].list, _case) @@ -4279,7 +4273,7 @@ yydefault: } case 200: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:1901 + // line internal/php7/php7.y:1895 { _default := &ast.StmtDefault{ast.Node{}, yyDollar[4].list} yyVAL.list = append(yyDollar[1].list, _default) @@ -4296,19 +4290,19 @@ yydefault: } case 201: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1919 + // line internal/php7/php7.y:1913 { yyVAL.token = yyDollar[1].token } case 202: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1923 + // line internal/php7/php7.y:1917 { yyVAL.token = yyDollar[1].token } case 203: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1930 + // line internal/php7/php7.y:1924 { yyVAL.node = &ast.StmtWhile{ast.Node{}, nil, yyDollar[1].node} @@ -4319,7 +4313,7 @@ yydefault: } case 204: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:1939 + // line internal/php7/php7.y:1933 { stmtList := &ast.StmtStmtList{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.StmtAltWhile{ast.Node{}, nil, stmtList} @@ -4338,7 +4332,7 @@ yydefault: } case 205: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php7/php7.y:1959 + // line internal/php7/php7.y:1953 { yyVAL.node = &ast.StmtIf{ast.Node{}, yyDollar[3].node, yyDollar[5].node, nil, nil} @@ -4354,7 +4348,7 @@ yydefault: } case 206: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php7/php7.y:1973 + // line internal/php7/php7.y:1967 { _elseIf := &ast.StmtElseIf{ast.Node{}, yyDollar[4].node, yyDollar[6].node} yyDollar[1].node.(*ast.StmtIf).ElseIf = append(yyDollar[1].node.(*ast.StmtIf).ElseIf, _elseIf) @@ -4374,7 +4368,7 @@ yydefault: } case 207: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:1994 + // line internal/php7/php7.y:1988 { yyVAL.node = yyDollar[1].node @@ -4382,7 +4376,7 @@ yydefault: } case 208: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2000 + // line internal/php7/php7.y:1994 { _else := &ast.StmtElse{ast.Node{}, yyDollar[3].node} yyDollar[1].node.(*ast.StmtIf).Else = _else @@ -4400,7 +4394,7 @@ yydefault: } case 209: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php7/php7.y:2019 + // line internal/php7/php7.y:2013 { stmts := &ast.StmtStmtList{ast.Node{}, yyDollar[6].list} yyVAL.node = &ast.StmtAltIf{ast.Node{}, yyDollar[3].node, stmts, nil, nil} @@ -4419,7 +4413,7 @@ yydefault: } case 210: yyDollar = yyS[yypt-7 : yypt+1] - // line internal/php7/php7.y:2036 + // line internal/php7/php7.y:2030 { stmts := &ast.StmtStmtList{ast.Node{}, yyDollar[7].list} _elseIf := &ast.StmtAltElseIf{ast.Node{}, yyDollar[4].node, stmts} @@ -4441,7 +4435,7 @@ yydefault: } case 211: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2059 + // line internal/php7/php7.y:2053 { yyVAL.node = yyDollar[1].node @@ -4457,7 +4451,7 @@ yydefault: } case 212: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php7/php7.y:2073 + // line internal/php7/php7.y:2067 { stmts := &ast.StmtStmtList{ast.Node{}, yyDollar[4].list} _else := &ast.StmtAltElse{ast.Node{}, stmts} @@ -4481,7 +4475,7 @@ yydefault: } case 213: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2098 + // line internal/php7/php7.y:2092 { yyVAL.list = yyDollar[1].list @@ -4489,7 +4483,7 @@ yydefault: } case 214: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:2104 + // line internal/php7/php7.y:2098 { yyVAL.list = nil @@ -4497,7 +4491,7 @@ yydefault: } case 215: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2113 + // line internal/php7/php7.y:2107 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -4505,7 +4499,7 @@ yydefault: } case 216: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2119 + // line internal/php7/php7.y:2113 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -4516,7 +4510,7 @@ yydefault: } case 217: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:2131 + // line internal/php7/php7.y:2125 { identifier := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value} identifier.GetNode().Position = position.NewTokenPosition(yyDollar[4].token) @@ -4554,7 +4548,7 @@ yydefault: } case 218: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php7/php7.y:2167 + // line internal/php7/php7.y:2161 { identifier := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value} identifier.GetNode().Position = position.NewTokenPosition(yyDollar[4].token) @@ -4593,7 +4587,7 @@ yydefault: } case 219: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:2207 + // line internal/php7/php7.y:2201 { yyVAL.node = nil @@ -4601,7 +4595,7 @@ yydefault: } case 220: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2213 + // line internal/php7/php7.y:2207 { yyVAL.node = yyDollar[1].node @@ -4609,7 +4603,7 @@ yydefault: } case 221: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2222 + // line internal/php7/php7.y:2216 { yyVAL.node = yyDollar[1].node @@ -4617,7 +4611,7 @@ yydefault: } case 222: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:2228 + // line internal/php7/php7.y:2222 { yyVAL.node = &ast.Nullable{ast.Node{}, yyDollar[2].node} @@ -4631,7 +4625,7 @@ yydefault: } case 223: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2243 + // line internal/php7/php7.y:2237 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -4645,7 +4639,7 @@ yydefault: } case 224: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2255 + // line internal/php7/php7.y:2249 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -4659,7 +4653,7 @@ yydefault: } case 225: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2267 + // line internal/php7/php7.y:2261 { yyVAL.node = yyDollar[1].node @@ -4667,7 +4661,7 @@ yydefault: } case 226: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:2276 + // line internal/php7/php7.y:2270 { yyVAL.node = nil @@ -4675,7 +4669,7 @@ yydefault: } case 227: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:2282 + // line internal/php7/php7.y:2276 { yyVAL.node = yyDollar[2].node @@ -4686,7 +4680,7 @@ yydefault: } case 228: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:2294 + // line internal/php7/php7.y:2288 { yyVAL.node = &ast.ArgumentList{ast.Node{}, nil} @@ -4701,7 +4695,7 @@ yydefault: } case 229: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:2307 + // line internal/php7/php7.y:2301 { yyVAL.node = &ast.ArgumentList{ast.Node{}, yyDollar[2].list} @@ -4720,7 +4714,7 @@ yydefault: } case 230: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2327 + // line internal/php7/php7.y:2321 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -4728,7 +4722,7 @@ yydefault: } case 231: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2333 + // line internal/php7/php7.y:2327 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -4739,7 +4733,7 @@ yydefault: } case 232: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2345 + // line internal/php7/php7.y:2339 { yyVAL.node = &ast.Argument{ast.Node{}, false, false, yyDollar[1].node} @@ -4753,7 +4747,7 @@ yydefault: } case 233: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:2357 + // line internal/php7/php7.y:2351 { yyVAL.node = &ast.Argument{ast.Node{}, true, false, yyDollar[2].node} @@ -4767,7 +4761,7 @@ yydefault: } case 234: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2372 + // line internal/php7/php7.y:2366 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -4778,7 +4772,7 @@ yydefault: } case 235: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2381 + // line internal/php7/php7.y:2375 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -4786,7 +4780,7 @@ yydefault: } case 236: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2390 + // line internal/php7/php7.y:2384 { yyVAL.node = yyDollar[1].node @@ -4794,7 +4788,7 @@ yydefault: } case 237: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2399 + // line internal/php7/php7.y:2393 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -4805,7 +4799,7 @@ yydefault: } case 238: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2408 + // line internal/php7/php7.y:2402 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -4813,7 +4807,7 @@ yydefault: } case 239: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2417 + // line internal/php7/php7.y:2411 { identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -4831,7 +4825,7 @@ yydefault: } case 240: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2433 + // line internal/php7/php7.y:2427 { identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -4850,7 +4844,7 @@ yydefault: } case 241: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:2453 + // line internal/php7/php7.y:2447 { yyVAL.list = append(yyDollar[1].list, yyDollar[2].node) @@ -4858,7 +4852,7 @@ yydefault: } case 242: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:2459 + // line internal/php7/php7.y:2453 { yyVAL.list = []ast.Vertex{} @@ -4866,7 +4860,7 @@ yydefault: } case 243: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:2468 + // line internal/php7/php7.y:2462 { yyVAL.node = &ast.StmtPropertyList{ast.Node{}, yyDollar[1].list, yyDollar[2].node, yyDollar[3].list} @@ -4882,7 +4876,7 @@ yydefault: } case 244: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:2482 + // line internal/php7/php7.y:2476 { yyVAL.node = &ast.StmtClassConstList{ast.Node{}, yyDollar[1].list, yyDollar[3].list} @@ -4903,7 +4897,7 @@ yydefault: } case 245: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2501 + // line internal/php7/php7.y:2495 { yyVAL.node = &ast.StmtTraitUse{ast.Node{}, yyDollar[2].list, yyDollar[3].node} @@ -4917,7 +4911,7 @@ yydefault: } case 246: yyDollar = yyS[yypt-10 : yypt+1] - // line internal/php7/php7.y:2513 + // line internal/php7/php7.y:2507 { name := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value} yyVAL.node = &ast.StmtClassMethod{ast.Node{}, yyDollar[3].token != nil, name, yyDollar[1].list, yyDollar[7].list, yyDollar[9].node, yyDollar[10].node} @@ -4950,7 +4944,7 @@ yydefault: } case 247: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2547 + // line internal/php7/php7.y:2541 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -4958,7 +4952,7 @@ yydefault: } case 248: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2553 + // line internal/php7/php7.y:2547 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -4969,7 +4963,7 @@ yydefault: } case 249: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2565 + // line internal/php7/php7.y:2559 { yyVAL.node = &ast.StmtNop{ast.Node{}} @@ -4983,7 +4977,7 @@ yydefault: } case 250: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:2578 + // line internal/php7/php7.y:2572 { yyVAL.node = &ast.StmtTraitAdaptationList{ast.Node{}, nil} @@ -4997,7 +4991,7 @@ yydefault: } case 251: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2590 + // line internal/php7/php7.y:2584 { yyVAL.node = &ast.StmtTraitAdaptationList{ast.Node{}, yyDollar[2].list} @@ -5011,7 +5005,7 @@ yydefault: } case 252: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2605 + // line internal/php7/php7.y:2599 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -5019,7 +5013,7 @@ yydefault: } case 253: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:2611 + // line internal/php7/php7.y:2605 { yyVAL.list = append(yyDollar[1].list, yyDollar[2].node) @@ -5027,7 +5021,7 @@ yydefault: } case 254: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:2620 + // line internal/php7/php7.y:2614 { yyVAL.node = yyDollar[1].node @@ -5039,7 +5033,7 @@ yydefault: } case 255: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:2630 + // line internal/php7/php7.y:2624 { yyVAL.node = yyDollar[1].node @@ -5051,7 +5045,7 @@ yydefault: } case 256: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2643 + // line internal/php7/php7.y:2637 { yyVAL.node = &ast.StmtTraitUsePrecedence{ast.Node{}, yyDollar[1].node, yyDollar[3].list} @@ -5066,7 +5060,7 @@ yydefault: } case 257: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2659 + // line internal/php7/php7.y:2653 { alias := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} yyVAL.node = &ast.StmtTraitUseAlias{ast.Node{}, yyDollar[1].node, nil, alias} @@ -5084,7 +5078,7 @@ yydefault: } case 258: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2675 + // line internal/php7/php7.y:2669 { alias := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} yyVAL.node = &ast.StmtTraitUseAlias{ast.Node{}, yyDollar[1].node, nil, alias} @@ -5102,7 +5096,7 @@ yydefault: } case 259: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:2691 + // line internal/php7/php7.y:2685 { alias := &ast.Identifier{ast.Node{}, yyDollar[4].token.Value} yyVAL.node = &ast.StmtTraitUseAlias{ast.Node{}, yyDollar[1].node, yyDollar[3].node, alias} @@ -5120,7 +5114,7 @@ yydefault: } case 260: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2707 + // line internal/php7/php7.y:2701 { yyVAL.node = &ast.StmtTraitUseAlias{ast.Node{}, yyDollar[1].node, yyDollar[3].node, nil} @@ -5135,7 +5129,7 @@ yydefault: } case 261: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2723 + // line internal/php7/php7.y:2717 { name := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.StmtTraitMethodRef{ast.Node{}, nil, name} @@ -5151,7 +5145,7 @@ yydefault: } case 262: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2737 + // line internal/php7/php7.y:2731 { yyVAL.node = yyDollar[1].node @@ -5159,7 +5153,7 @@ yydefault: } case 263: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2746 + // line internal/php7/php7.y:2740 { target := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} yyVAL.node = &ast.StmtTraitMethodRef{ast.Node{}, yyDollar[1].node, target} @@ -5177,7 +5171,7 @@ yydefault: } case 264: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2765 + // line internal/php7/php7.y:2759 { yyVAL.node = &ast.StmtNop{ast.Node{}} @@ -5192,7 +5186,7 @@ yydefault: } case 265: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2778 + // line internal/php7/php7.y:2772 { yyVAL.node = &ast.StmtStmtList{ast.Node{}, yyDollar[2].list} @@ -5207,7 +5201,7 @@ yydefault: } case 266: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2794 + // line internal/php7/php7.y:2788 { yyVAL.list = yyDollar[1].list @@ -5215,7 +5209,7 @@ yydefault: } case 267: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2800 + // line internal/php7/php7.y:2794 { modifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.list = []ast.Vertex{modifier} @@ -5230,7 +5224,7 @@ yydefault: } case 268: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:2816 + // line internal/php7/php7.y:2810 { yyVAL.list = nil @@ -5238,7 +5232,7 @@ yydefault: } case 269: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2822 + // line internal/php7/php7.y:2816 { yyVAL.list = yyDollar[1].list @@ -5246,7 +5240,7 @@ yydefault: } case 270: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2831 + // line internal/php7/php7.y:2825 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -5254,7 +5248,7 @@ yydefault: } case 271: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:2837 + // line internal/php7/php7.y:2831 { yyVAL.list = append(yyDollar[1].list, yyDollar[2].node) @@ -5262,7 +5256,7 @@ yydefault: } case 272: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2846 + // line internal/php7/php7.y:2840 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -5276,7 +5270,7 @@ yydefault: } case 273: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2858 + // line internal/php7/php7.y:2852 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -5290,7 +5284,7 @@ yydefault: } case 274: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2870 + // line internal/php7/php7.y:2864 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -5304,7 +5298,7 @@ yydefault: } case 275: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2882 + // line internal/php7/php7.y:2876 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -5318,7 +5312,7 @@ yydefault: } case 276: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2894 + // line internal/php7/php7.y:2888 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -5332,7 +5326,7 @@ yydefault: } case 277: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2906 + // line internal/php7/php7.y:2900 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -5346,7 +5340,7 @@ yydefault: } case 278: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2921 + // line internal/php7/php7.y:2915 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -5357,7 +5351,7 @@ yydefault: } case 279: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2930 + // line internal/php7/php7.y:2924 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -5365,7 +5359,7 @@ yydefault: } case 280: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:2939 + // line internal/php7/php7.y:2933 { identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -5383,7 +5377,7 @@ yydefault: } case 281: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:2955 + // line internal/php7/php7.y:2949 { identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -5402,7 +5396,7 @@ yydefault: } case 282: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:2975 + // line internal/php7/php7.y:2969 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -5413,7 +5407,7 @@ yydefault: } case 283: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:2984 + // line internal/php7/php7.y:2978 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -5421,7 +5415,7 @@ yydefault: } case 284: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:2993 + // line internal/php7/php7.y:2987 { name := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.StmtConstant{ast.Node{}, name, yyDollar[3].node} @@ -5438,7 +5432,7 @@ yydefault: } case 285: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:3011 + // line internal/php7/php7.y:3005 { name := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.StmtConstant{ast.Node{}, name, yyDollar[3].node} @@ -5455,7 +5449,7 @@ yydefault: } case 286: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3029 + // line internal/php7/php7.y:3023 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -5466,7 +5460,7 @@ yydefault: } case 287: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:3038 + // line internal/php7/php7.y:3032 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -5474,7 +5468,7 @@ yydefault: } case 288: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:3047 + // line internal/php7/php7.y:3041 { yyVAL.node = yyDollar[1].node @@ -5482,7 +5476,7 @@ yydefault: } case 289: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:3056 + // line internal/php7/php7.y:3050 { yyVAL.list = nil @@ -5490,7 +5484,7 @@ yydefault: } case 290: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:3062 + // line internal/php7/php7.y:3056 { yyVAL.list = yyDollar[1].list @@ -5498,7 +5492,7 @@ yydefault: } case 291: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3071 + // line internal/php7/php7.y:3065 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -5509,7 +5503,7 @@ yydefault: } case 292: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:3080 + // line internal/php7/php7.y:3074 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -5517,7 +5511,7 @@ yydefault: } case 293: yyDollar = yyS[yypt-8 : yypt+1] - // line internal/php7/php7.y:3089 + // line internal/php7/php7.y:3083 { if yyDollar[2].node != nil { yyVAL.node = &ast.StmtClass{ast.Node{}, nil, nil, yyDollar[2].node.(*ast.ArgumentList), yyDollar[3].ClassExtends, yyDollar[4].ClassImplements, yyDollar[7].list} @@ -5537,7 +5531,7 @@ yydefault: } case 294: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3110 + // line internal/php7/php7.y:3104 { if yyDollar[3].node != nil { yyVAL.node = &ast.ExprNew{ast.Node{}, yyDollar[2].node, yyDollar[3].node.(*ast.ArgumentList)} @@ -5554,7 +5548,7 @@ yydefault: } case 295: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3125 + // line internal/php7/php7.y:3119 { yyVAL.node = &ast.ExprNew{ast.Node{}, yyDollar[2].node, nil} @@ -5568,7 +5562,7 @@ yydefault: } case 296: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php7/php7.y:3140 + // line internal/php7/php7.y:3134 { listNode := &ast.ExprList{ast.Node{}, yyDollar[3].list} yyVAL.node = &ast.ExprAssign{ast.Node{}, listNode, yyDollar[6].node} @@ -5587,7 +5581,7 @@ yydefault: } case 297: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php7/php7.y:3157 + // line internal/php7/php7.y:3151 { shortList := &ast.ExprShortList{ast.Node{}, yyDollar[2].list} yyVAL.node = &ast.ExprAssign{ast.Node{}, shortList, yyDollar[5].node} @@ -5605,7 +5599,7 @@ yydefault: } case 298: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3173 + // line internal/php7/php7.y:3167 { yyVAL.node = &ast.ExprAssign{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5620,7 +5614,7 @@ yydefault: } case 299: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:3186 + // line internal/php7/php7.y:3180 { yyVAL.node = &ast.ExprAssignReference{ast.Node{}, yyDollar[1].node, yyDollar[4].node} @@ -5636,7 +5630,7 @@ yydefault: } case 300: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3200 + // line internal/php7/php7.y:3194 { yyVAL.node = &ast.ExprClone{ast.Node{}, yyDollar[2].node} @@ -5650,7 +5644,7 @@ yydefault: } case 301: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3212 + // line internal/php7/php7.y:3206 { yyVAL.node = &ast.ExprAssignPlus{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5665,7 +5659,7 @@ yydefault: } case 302: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3225 + // line internal/php7/php7.y:3219 { yyVAL.node = &ast.ExprAssignMinus{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5680,7 +5674,7 @@ yydefault: } case 303: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3238 + // line internal/php7/php7.y:3232 { yyVAL.node = &ast.ExprAssignMul{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5695,7 +5689,7 @@ yydefault: } case 304: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3251 + // line internal/php7/php7.y:3245 { yyVAL.node = &ast.ExprAssignPow{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5710,7 +5704,7 @@ yydefault: } case 305: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3264 + // line internal/php7/php7.y:3258 { yyVAL.node = &ast.ExprAssignDiv{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5725,7 +5719,7 @@ yydefault: } case 306: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3277 + // line internal/php7/php7.y:3271 { yyVAL.node = &ast.ExprAssignConcat{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5740,7 +5734,7 @@ yydefault: } case 307: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3290 + // line internal/php7/php7.y:3284 { yyVAL.node = &ast.ExprAssignMod{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5755,7 +5749,7 @@ yydefault: } case 308: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3303 + // line internal/php7/php7.y:3297 { yyVAL.node = &ast.ExprAssignBitwiseAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5770,7 +5764,7 @@ yydefault: } case 309: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3316 + // line internal/php7/php7.y:3310 { yyVAL.node = &ast.ExprAssignBitwiseOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5785,7 +5779,7 @@ yydefault: } case 310: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3329 + // line internal/php7/php7.y:3323 { yyVAL.node = &ast.ExprAssignBitwiseXor{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5800,7 +5794,7 @@ yydefault: } case 311: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3342 + // line internal/php7/php7.y:3336 { yyVAL.node = &ast.ExprAssignShiftLeft{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5815,7 +5809,7 @@ yydefault: } case 312: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3355 + // line internal/php7/php7.y:3349 { yyVAL.node = &ast.ExprAssignShiftRight{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5830,7 +5824,7 @@ yydefault: } case 313: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3368 + // line internal/php7/php7.y:3362 { yyVAL.node = &ast.ExprAssignCoalesce{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5845,7 +5839,7 @@ yydefault: } case 314: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3381 + // line internal/php7/php7.y:3375 { yyVAL.node = &ast.ExprPostInc{ast.Node{}, yyDollar[1].node} @@ -5860,7 +5854,7 @@ yydefault: } case 315: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3394 + // line internal/php7/php7.y:3388 { yyVAL.node = &ast.ExprPreInc{ast.Node{}, yyDollar[2].node} @@ -5874,7 +5868,7 @@ yydefault: } case 316: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3406 + // line internal/php7/php7.y:3400 { yyVAL.node = &ast.ExprPostDec{ast.Node{}, yyDollar[1].node} @@ -5889,7 +5883,7 @@ yydefault: } case 317: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3419 + // line internal/php7/php7.y:3413 { yyVAL.node = &ast.ExprPreDec{ast.Node{}, yyDollar[2].node} @@ -5903,7 +5897,7 @@ yydefault: } case 318: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3431 + // line internal/php7/php7.y:3425 { yyVAL.node = &ast.ExprBinaryBooleanOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5918,7 +5912,7 @@ yydefault: } case 319: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3444 + // line internal/php7/php7.y:3438 { yyVAL.node = &ast.ExprBinaryBooleanAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5933,7 +5927,7 @@ yydefault: } case 320: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3457 + // line internal/php7/php7.y:3451 { yyVAL.node = &ast.ExprBinaryLogicalOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5948,7 +5942,7 @@ yydefault: } case 321: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3470 + // line internal/php7/php7.y:3464 { yyVAL.node = &ast.ExprBinaryLogicalAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5963,7 +5957,7 @@ yydefault: } case 322: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3483 + // line internal/php7/php7.y:3477 { yyVAL.node = &ast.ExprBinaryLogicalXor{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5978,7 +5972,7 @@ yydefault: } case 323: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3496 + // line internal/php7/php7.y:3490 { yyVAL.node = &ast.ExprBinaryBitwiseOr{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -5993,7 +5987,7 @@ yydefault: } case 324: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3509 + // line internal/php7/php7.y:3503 { yyVAL.node = &ast.ExprBinaryBitwiseAnd{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6008,7 +6002,7 @@ yydefault: } case 325: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3522 + // line internal/php7/php7.y:3516 { yyVAL.node = &ast.ExprBinaryBitwiseXor{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6023,7 +6017,7 @@ yydefault: } case 326: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3535 + // line internal/php7/php7.y:3529 { yyVAL.node = &ast.ExprBinaryConcat{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6038,7 +6032,7 @@ yydefault: } case 327: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3548 + // line internal/php7/php7.y:3542 { yyVAL.node = &ast.ExprBinaryPlus{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6053,7 +6047,7 @@ yydefault: } case 328: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3561 + // line internal/php7/php7.y:3555 { yyVAL.node = &ast.ExprBinaryMinus{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6068,7 +6062,7 @@ yydefault: } case 329: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3574 + // line internal/php7/php7.y:3568 { yyVAL.node = &ast.ExprBinaryMul{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6083,7 +6077,7 @@ yydefault: } case 330: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3587 + // line internal/php7/php7.y:3581 { yyVAL.node = &ast.ExprBinaryPow{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6098,7 +6092,7 @@ yydefault: } case 331: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3600 + // line internal/php7/php7.y:3594 { yyVAL.node = &ast.ExprBinaryDiv{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6113,7 +6107,7 @@ yydefault: } case 332: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3613 + // line internal/php7/php7.y:3607 { yyVAL.node = &ast.ExprBinaryMod{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6128,7 +6122,7 @@ yydefault: } case 333: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3626 + // line internal/php7/php7.y:3620 { yyVAL.node = &ast.ExprBinaryShiftLeft{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6143,7 +6137,7 @@ yydefault: } case 334: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3639 + // line internal/php7/php7.y:3633 { yyVAL.node = &ast.ExprBinaryShiftRight{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6158,7 +6152,7 @@ yydefault: } case 335: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3652 + // line internal/php7/php7.y:3646 { yyVAL.node = &ast.ExprUnaryPlus{ast.Node{}, yyDollar[2].node} @@ -6172,7 +6166,7 @@ yydefault: } case 336: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3664 + // line internal/php7/php7.y:3658 { yyVAL.node = &ast.ExprUnaryMinus{ast.Node{}, yyDollar[2].node} @@ -6186,7 +6180,7 @@ yydefault: } case 337: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3676 + // line internal/php7/php7.y:3670 { yyVAL.node = &ast.ExprBooleanNot{ast.Node{}, yyDollar[2].node} @@ -6200,7 +6194,7 @@ yydefault: } case 338: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3688 + // line internal/php7/php7.y:3682 { yyVAL.node = &ast.ExprBitwiseNot{ast.Node{}, yyDollar[2].node} @@ -6214,7 +6208,7 @@ yydefault: } case 339: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3700 + // line internal/php7/php7.y:3694 { yyVAL.node = &ast.ExprBinaryIdentical{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6229,7 +6223,7 @@ yydefault: } case 340: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3713 + // line internal/php7/php7.y:3707 { yyVAL.node = &ast.ExprBinaryNotIdentical{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6244,7 +6238,7 @@ yydefault: } case 341: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3726 + // line internal/php7/php7.y:3720 { yyVAL.node = &ast.ExprBinaryEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6259,7 +6253,7 @@ yydefault: } case 342: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3739 + // line internal/php7/php7.y:3733 { yyVAL.node = &ast.ExprBinaryNotEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6275,7 +6269,7 @@ yydefault: } case 343: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3753 + // line internal/php7/php7.y:3747 { yyVAL.node = &ast.ExprBinarySmaller{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6290,7 +6284,7 @@ yydefault: } case 344: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3766 + // line internal/php7/php7.y:3760 { yyVAL.node = &ast.ExprBinarySmallerOrEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6305,7 +6299,7 @@ yydefault: } case 345: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3779 + // line internal/php7/php7.y:3773 { yyVAL.node = &ast.ExprBinaryGreater{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6320,7 +6314,7 @@ yydefault: } case 346: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3792 + // line internal/php7/php7.y:3786 { yyVAL.node = &ast.ExprBinaryGreaterOrEqual{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6335,7 +6329,7 @@ yydefault: } case 347: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3805 + // line internal/php7/php7.y:3799 { yyVAL.node = &ast.ExprBinarySpaceship{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6350,7 +6344,7 @@ yydefault: } case 348: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3818 + // line internal/php7/php7.y:3812 { yyVAL.node = &ast.ExprInstanceOf{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6365,7 +6359,7 @@ yydefault: } case 349: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3831 + // line internal/php7/php7.y:3825 { yyVAL.node = yyDollar[2].node @@ -6377,7 +6371,7 @@ yydefault: } case 350: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:3841 + // line internal/php7/php7.y:3835 { yyVAL.node = yyDollar[1].node @@ -6385,7 +6379,7 @@ yydefault: } case 351: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php7/php7.y:3847 + // line internal/php7/php7.y:3841 { yyVAL.node = &ast.ExprTernary{ast.Node{}, yyDollar[1].node, yyDollar[3].node, yyDollar[5].node} @@ -6401,7 +6395,7 @@ yydefault: } case 352: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:3861 + // line internal/php7/php7.y:3855 { yyVAL.node = &ast.ExprTernary{ast.Node{}, yyDollar[1].node, nil, yyDollar[4].node} @@ -6417,7 +6411,7 @@ yydefault: } case 353: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:3875 + // line internal/php7/php7.y:3869 { yyVAL.node = &ast.ExprBinaryCoalesce{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -6432,7 +6426,7 @@ yydefault: } case 354: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:3888 + // line internal/php7/php7.y:3882 { yyVAL.node = yyDollar[1].node @@ -6440,7 +6434,7 @@ yydefault: } case 355: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3894 + // line internal/php7/php7.y:3888 { yyVAL.node = &ast.ExprCastInt{ast.Node{}, yyDollar[2].node} @@ -6455,7 +6449,7 @@ yydefault: } case 356: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3907 + // line internal/php7/php7.y:3901 { yyVAL.node = &ast.ExprCastDouble{ast.Node{}, yyDollar[2].node} @@ -6470,7 +6464,7 @@ yydefault: } case 357: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3920 + // line internal/php7/php7.y:3914 { yyVAL.node = &ast.ExprCastString{ast.Node{}, yyDollar[2].node} @@ -6485,7 +6479,7 @@ yydefault: } case 358: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3933 + // line internal/php7/php7.y:3927 { yyVAL.node = &ast.ExprCastArray{ast.Node{}, yyDollar[2].node} @@ -6500,7 +6494,7 @@ yydefault: } case 359: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3946 + // line internal/php7/php7.y:3940 { yyVAL.node = &ast.ExprCastObject{ast.Node{}, yyDollar[2].node} @@ -6515,7 +6509,7 @@ yydefault: } case 360: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3959 + // line internal/php7/php7.y:3953 { yyVAL.node = &ast.ExprCastBool{ast.Node{}, yyDollar[2].node} @@ -6530,7 +6524,7 @@ yydefault: } case 361: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3972 + // line internal/php7/php7.y:3966 { yyVAL.node = &ast.ExprCastUnset{ast.Node{}, yyDollar[2].node} @@ -6545,7 +6539,7 @@ yydefault: } case 362: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:3985 + // line internal/php7/php7.y:3979 { var e *ast.ExprExit if yyDollar[2].node != nil { @@ -6574,7 +6568,7 @@ yydefault: } case 363: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:4012 + // line internal/php7/php7.y:4006 { yyVAL.node = &ast.ExprErrorSuppress{ast.Node{}, yyDollar[2].node} @@ -6588,7 +6582,7 @@ yydefault: } case 364: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4024 + // line internal/php7/php7.y:4018 { yyVAL.node = yyDollar[1].node @@ -6596,7 +6590,7 @@ yydefault: } case 365: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:4030 + // line internal/php7/php7.y:4024 { yyVAL.node = &ast.ExprShellExec{ast.Node{}, yyDollar[2].list} @@ -6610,7 +6604,7 @@ yydefault: } case 366: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:4042 + // line internal/php7/php7.y:4036 { yyVAL.node = &ast.ExprPrint{ast.Node{}, yyDollar[2].node} @@ -6624,7 +6618,7 @@ yydefault: } case 367: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4054 + // line internal/php7/php7.y:4048 { yyVAL.node = &ast.ExprYield{ast.Node{}, nil, nil} @@ -6638,7 +6632,7 @@ yydefault: } case 368: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:4066 + // line internal/php7/php7.y:4060 { yyVAL.node = &ast.ExprYield{ast.Node{}, nil, yyDollar[2].node} @@ -6652,7 +6646,7 @@ yydefault: } case 369: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:4078 + // line internal/php7/php7.y:4072 { yyVAL.node = &ast.ExprYield{ast.Node{}, yyDollar[2].node, yyDollar[4].node} @@ -6667,7 +6661,7 @@ yydefault: } case 370: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:4091 + // line internal/php7/php7.y:4085 { yyVAL.node = &ast.ExprYieldFrom{ast.Node{}, yyDollar[2].node} @@ -6681,7 +6675,7 @@ yydefault: } case 371: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4103 + // line internal/php7/php7.y:4097 { yyVAL.node = yyDollar[1].node @@ -6689,7 +6683,7 @@ yydefault: } case 372: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:4109 + // line internal/php7/php7.y:4103 { yyVAL.node = yyDollar[2].node @@ -6712,7 +6706,7 @@ yydefault: } case 373: yyDollar = yyS[yypt-11 : yypt+1] - // line internal/php7/php7.y:4132 + // line internal/php7/php7.y:4126 { yyVAL.node = &ast.ExprClosure{ast.Node{}, yyDollar[2].token != nil, false, yyDollar[5].list, yyDollar[7].ClosureUse, yyDollar[8].node, yyDollar[10].list} @@ -6745,7 +6739,7 @@ yydefault: } case 374: yyDollar = yyS[yypt-9 : yypt+1] - // line internal/php7/php7.y:4161 + // line internal/php7/php7.y:4155 { yyVAL.node = &ast.ExprArrowFunction{ast.Node{}, yyDollar[2].token != nil, false, yyDollar[4].list, yyDollar[6].node, yyDollar[9].node} @@ -6773,19 +6767,19 @@ yydefault: } case 376: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:4193 + // line internal/php7/php7.y:4187 { yyVAL.token = nil } case 377: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4197 + // line internal/php7/php7.y:4191 { yyVAL.token = yyDollar[1].token } case 378: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:4204 + // line internal/php7/php7.y:4198 { yyVAL.ClosureUse = nil @@ -6793,7 +6787,7 @@ yydefault: } case 379: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:4210 + // line internal/php7/php7.y:4204 { yyVAL.ClosureUse = &ast.ExprClosureUse{ast.Node{}, yyDollar[3].list} @@ -6809,7 +6803,7 @@ yydefault: } case 380: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:4227 + // line internal/php7/php7.y:4221 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -6820,7 +6814,7 @@ yydefault: } case 381: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4236 + // line internal/php7/php7.y:4230 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -6828,7 +6822,7 @@ yydefault: } case 382: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4245 + // line internal/php7/php7.y:4239 { identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.ExprVariable{ast.Node{}, identifier} @@ -6844,7 +6838,7 @@ yydefault: } case 383: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:4259 + // line internal/php7/php7.y:4253 { identifier := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -6863,7 +6857,7 @@ yydefault: } case 384: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:4279 + // line internal/php7/php7.y:4273 { yyVAL.node = &ast.ExprFunctionCall{ast.Node{}, yyDollar[1].node, yyDollar[2].node.(*ast.ArgumentList)} @@ -6877,7 +6871,7 @@ yydefault: } case 385: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:4291 + // line internal/php7/php7.y:4285 { yyVAL.node = &ast.ExprStaticCall{ast.Node{}, yyDollar[1].node, yyDollar[3].node, yyDollar[4].node.(*ast.ArgumentList)} @@ -6892,7 +6886,7 @@ yydefault: } case 386: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:4304 + // line internal/php7/php7.y:4298 { yyVAL.node = &ast.ExprStaticCall{ast.Node{}, yyDollar[1].node, yyDollar[3].node, yyDollar[4].node.(*ast.ArgumentList)} @@ -6907,7 +6901,7 @@ yydefault: } case 387: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:4317 + // line internal/php7/php7.y:4311 { yyVAL.node = &ast.ExprFunctionCall{ast.Node{}, yyDollar[1].node, yyDollar[2].node.(*ast.ArgumentList)} @@ -6921,7 +6915,7 @@ yydefault: } case 388: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4332 + // line internal/php7/php7.y:4326 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -6935,7 +6929,7 @@ yydefault: } case 389: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4344 + // line internal/php7/php7.y:4338 { yyVAL.node = yyDollar[1].node @@ -6943,7 +6937,7 @@ yydefault: } case 390: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4353 + // line internal/php7/php7.y:4347 { yyVAL.node = yyDollar[1].node @@ -6951,7 +6945,7 @@ yydefault: } case 391: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4359 + // line internal/php7/php7.y:4353 { yyVAL.node = yyDollar[1].node @@ -6959,7 +6953,7 @@ yydefault: } case 392: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:4368 + // line internal/php7/php7.y:4362 { yyVAL.node = nil @@ -6967,7 +6961,7 @@ yydefault: } case 393: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:4374 + // line internal/php7/php7.y:4368 { yyVAL.node = &ast.ExprExit{ast.Node{}, false, yyDollar[2].node} @@ -6982,7 +6976,7 @@ yydefault: } case 394: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:4390 + // line internal/php7/php7.y:4384 { yyVAL.list = []ast.Vertex{} @@ -6990,7 +6984,7 @@ yydefault: } case 395: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4396 + // line internal/php7/php7.y:4390 { part := &ast.ScalarEncapsedStringPart{ast.Node{}, yyDollar[1].token.Value} yyVAL.list = []ast.Vertex{part} @@ -7002,7 +6996,7 @@ yydefault: } case 396: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4406 + // line internal/php7/php7.y:4400 { yyVAL.list = yyDollar[1].list @@ -7010,7 +7004,7 @@ yydefault: } case 397: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:4415 + // line internal/php7/php7.y:4409 { yyVAL.node = nil @@ -7018,7 +7012,7 @@ yydefault: } case 398: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4421 + // line internal/php7/php7.y:4415 { yyVAL.node = yyDollar[1].node @@ -7026,7 +7020,7 @@ yydefault: } case 399: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:4430 + // line internal/php7/php7.y:4424 { yyVAL.node = &ast.ExprArray{ast.Node{}, yyDollar[3].list} @@ -7042,7 +7036,7 @@ yydefault: } case 400: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:4444 + // line internal/php7/php7.y:4438 { yyVAL.node = &ast.ExprShortArray{ast.Node{}, yyDollar[2].list} @@ -7057,7 +7051,7 @@ yydefault: } case 401: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4457 + // line internal/php7/php7.y:4451 { yyVAL.node = &ast.ScalarString{ast.Node{}, yyDollar[1].token.Value} @@ -7071,7 +7065,7 @@ yydefault: } case 402: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4472 + // line internal/php7/php7.y:4466 { yyVAL.node = &ast.ScalarLnumber{ast.Node{}, yyDollar[1].token.Value} @@ -7085,7 +7079,7 @@ yydefault: } case 403: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4484 + // line internal/php7/php7.y:4478 { yyVAL.node = &ast.ScalarDnumber{ast.Node{}, yyDollar[1].token.Value} @@ -7099,7 +7093,7 @@ yydefault: } case 404: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4496 + // line internal/php7/php7.y:4490 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -7113,7 +7107,7 @@ yydefault: } case 405: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4508 + // line internal/php7/php7.y:4502 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -7127,7 +7121,7 @@ yydefault: } case 406: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4520 + // line internal/php7/php7.y:4514 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -7141,7 +7135,7 @@ yydefault: } case 407: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4532 + // line internal/php7/php7.y:4526 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -7155,7 +7149,7 @@ yydefault: } case 408: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4544 + // line internal/php7/php7.y:4538 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -7169,7 +7163,7 @@ yydefault: } case 409: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4556 + // line internal/php7/php7.y:4550 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -7183,7 +7177,7 @@ yydefault: } case 410: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4568 + // line internal/php7/php7.y:4562 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -7197,7 +7191,7 @@ yydefault: } case 411: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4580 + // line internal/php7/php7.y:4574 { yyVAL.node = &ast.ScalarMagicConstant{ast.Node{}, yyDollar[1].token.Value} @@ -7211,7 +7205,7 @@ yydefault: } case 412: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:4592 + // line internal/php7/php7.y:4586 { encapsed := &ast.ScalarEncapsedStringPart{ast.Node{}, yyDollar[2].token.Value} yyVAL.node = &ast.ScalarHeredoc{ast.Node{}, yyDollar[1].token.Value, []ast.Vertex{encapsed}} @@ -7227,7 +7221,7 @@ yydefault: } case 413: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:4606 + // line internal/php7/php7.y:4600 { yyVAL.node = &ast.ScalarHeredoc{ast.Node{}, yyDollar[1].token.Value, nil} @@ -7241,7 +7235,7 @@ yydefault: } case 414: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:4618 + // line internal/php7/php7.y:4612 { yyVAL.node = &ast.ScalarEncapsed{ast.Node{}, yyDollar[2].list} @@ -7255,7 +7249,7 @@ yydefault: } case 415: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:4630 + // line internal/php7/php7.y:4624 { yyVAL.node = &ast.ScalarHeredoc{ast.Node{}, yyDollar[1].token.Value, yyDollar[2].list} @@ -7269,7 +7263,7 @@ yydefault: } case 416: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4642 + // line internal/php7/php7.y:4636 { yyVAL.node = yyDollar[1].node @@ -7277,7 +7271,7 @@ yydefault: } case 417: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4648 + // line internal/php7/php7.y:4642 { yyVAL.node = yyDollar[1].node @@ -7285,7 +7279,7 @@ yydefault: } case 418: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4657 + // line internal/php7/php7.y:4651 { yyVAL.node = &ast.ExprConstFetch{ast.Node{}, yyDollar[1].node} @@ -7299,7 +7293,7 @@ yydefault: } case 419: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:4669 + // line internal/php7/php7.y:4663 { target := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} yyVAL.node = &ast.ExprClassConstFetch{ast.Node{}, yyDollar[1].node, target} @@ -7317,7 +7311,7 @@ yydefault: } case 420: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:4685 + // line internal/php7/php7.y:4679 { target := &ast.Identifier{ast.Node{}, yyDollar[3].token.Value} yyVAL.node = &ast.ExprClassConstFetch{ast.Node{}, yyDollar[1].node, target} @@ -7335,7 +7329,7 @@ yydefault: } case 421: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4704 + // line internal/php7/php7.y:4698 { yyVAL.node = yyDollar[1].node @@ -7343,7 +7337,7 @@ yydefault: } case 422: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4710 + // line internal/php7/php7.y:4704 { yyVAL.node = yyDollar[1].node @@ -7351,7 +7345,7 @@ yydefault: } case 423: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:4719 + // line internal/php7/php7.y:4713 { yyVAL.node = nil @@ -7359,7 +7353,7 @@ yydefault: } case 424: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4725 + // line internal/php7/php7.y:4719 { yyVAL.node = yyDollar[1].node @@ -7367,7 +7361,7 @@ yydefault: } case 425: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4734 + // line internal/php7/php7.y:4728 { yyVAL.node = yyDollar[1].node @@ -7375,7 +7369,7 @@ yydefault: } case 426: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4743 + // line internal/php7/php7.y:4737 { yyVAL.node = yyDollar[1].node @@ -7383,7 +7377,7 @@ yydefault: } case 427: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:4749 + // line internal/php7/php7.y:4743 { yyVAL.node = yyDollar[2].node @@ -7395,7 +7389,7 @@ yydefault: } case 428: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4759 + // line internal/php7/php7.y:4753 { yyVAL.node = yyDollar[1].node @@ -7403,7 +7397,7 @@ yydefault: } case 429: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4768 + // line internal/php7/php7.y:4762 { yyVAL.node = yyDollar[1].node @@ -7411,7 +7405,7 @@ yydefault: } case 430: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:4774 + // line internal/php7/php7.y:4768 { yyVAL.node = yyDollar[2].node @@ -7423,7 +7417,7 @@ yydefault: } case 431: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4784 + // line internal/php7/php7.y:4778 { yyVAL.node = yyDollar[1].node @@ -7431,7 +7425,7 @@ yydefault: } case 432: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4793 + // line internal/php7/php7.y:4787 { yyVAL.node = yyDollar[1].node @@ -7439,7 +7433,7 @@ yydefault: } case 433: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:4799 + // line internal/php7/php7.y:4793 { yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7454,7 +7448,7 @@ yydefault: } case 434: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:4812 + // line internal/php7/php7.y:4806 { yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7469,7 +7463,7 @@ yydefault: } case 435: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:4825 + // line internal/php7/php7.y:4819 { yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7484,7 +7478,7 @@ yydefault: } case 436: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:4838 + // line internal/php7/php7.y:4832 { yyVAL.node = &ast.ExprMethodCall{ast.Node{}, yyDollar[1].node, yyDollar[3].node, yyDollar[4].node.(*ast.ArgumentList)} @@ -7499,7 +7493,7 @@ yydefault: } case 437: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4851 + // line internal/php7/php7.y:4845 { yyVAL.node = yyDollar[1].node @@ -7507,7 +7501,7 @@ yydefault: } case 438: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4860 + // line internal/php7/php7.y:4854 { yyVAL.node = yyDollar[1].node @@ -7515,7 +7509,7 @@ yydefault: } case 439: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4866 + // line internal/php7/php7.y:4860 { yyVAL.node = yyDollar[1].node @@ -7523,7 +7517,7 @@ yydefault: } case 440: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:4872 + // line internal/php7/php7.y:4866 { yyVAL.node = &ast.ExprPropertyFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7538,7 +7532,7 @@ yydefault: } case 441: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4888 + // line internal/php7/php7.y:4882 { name := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.ExprVariable{ast.Node{}, name} @@ -7554,7 +7548,7 @@ yydefault: } case 442: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:4902 + // line internal/php7/php7.y:4896 { yyVAL.node = &ast.ExprVariable{ast.Node{}, yyDollar[3].node} @@ -7570,7 +7564,7 @@ yydefault: } case 443: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:4916 + // line internal/php7/php7.y:4910 { yyVAL.node = &ast.ExprVariable{ast.Node{}, yyDollar[2].node} @@ -7584,7 +7578,7 @@ yydefault: } case 444: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:4931 + // line internal/php7/php7.y:4925 { yyVAL.node = &ast.ExprStaticPropertyFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7599,7 +7593,7 @@ yydefault: } case 445: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:4944 + // line internal/php7/php7.y:4938 { yyVAL.node = &ast.ExprStaticPropertyFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7614,7 +7608,7 @@ yydefault: } case 446: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:4960 + // line internal/php7/php7.y:4954 { yyVAL.node = yyDollar[1].node @@ -7622,7 +7616,7 @@ yydefault: } case 447: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:4966 + // line internal/php7/php7.y:4960 { yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7637,7 +7631,7 @@ yydefault: } case 448: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:4979 + // line internal/php7/php7.y:4973 { yyVAL.node = &ast.ExprArrayDimFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7652,7 +7646,7 @@ yydefault: } case 449: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:4992 + // line internal/php7/php7.y:4986 { yyVAL.node = &ast.ExprPropertyFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7667,7 +7661,7 @@ yydefault: } case 450: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:5005 + // line internal/php7/php7.y:4999 { yyVAL.node = &ast.ExprStaticPropertyFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7682,7 +7676,7 @@ yydefault: } case 451: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:5018 + // line internal/php7/php7.y:5012 { yyVAL.node = &ast.ExprStaticPropertyFetch{ast.Node{}, yyDollar[1].node, yyDollar[3].node} @@ -7697,7 +7691,7 @@ yydefault: } case 452: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:5034 + // line internal/php7/php7.y:5028 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -7711,7 +7705,7 @@ yydefault: } case 453: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:5046 + // line internal/php7/php7.y:5040 { yyVAL.node = yyDollar[2].node @@ -7723,7 +7717,7 @@ yydefault: } case 454: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:5056 + // line internal/php7/php7.y:5050 { yyVAL.node = yyDollar[1].node @@ -7731,7 +7725,7 @@ yydefault: } case 455: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:5065 + // line internal/php7/php7.y:5059 { yyVAL.node = &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} @@ -7745,7 +7739,7 @@ yydefault: } case 456: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:5077 + // line internal/php7/php7.y:5071 { yyVAL.node = yyDollar[2].node @@ -7757,7 +7751,7 @@ yydefault: } case 457: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:5087 + // line internal/php7/php7.y:5081 { yyVAL.node = yyDollar[1].node @@ -7765,7 +7759,7 @@ yydefault: } case 458: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:5096 + // line internal/php7/php7.y:5090 { yyVAL.list = yyDollar[1].list @@ -7773,7 +7767,7 @@ yydefault: } case 459: yyDollar = yyS[yypt-0 : yypt+1] - // line internal/php7/php7.y:5105 + // line internal/php7/php7.y:5099 { yyVAL.node = &ast.ExprArrayItem{ast.Node{}, false, nil, nil} @@ -7781,7 +7775,7 @@ yydefault: } case 460: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:5111 + // line internal/php7/php7.y:5105 { yyVAL.node = yyDollar[1].node @@ -7789,7 +7783,7 @@ yydefault: } case 461: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:5120 + // line internal/php7/php7.y:5114 { if len(yyDollar[1].list) == 0 { yyDollar[1].list = []ast.Vertex{&ast.ExprArrayItem{ast.Node{}, false, nil, nil}} @@ -7804,7 +7798,7 @@ yydefault: } case 462: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:5133 + // line internal/php7/php7.y:5127 { if yyDollar[1].node.(*ast.ExprArrayItem).Key == nil && yyDollar[1].node.(*ast.ExprArrayItem).Val == nil { yyVAL.list = []ast.Vertex{} @@ -7816,7 +7810,7 @@ yydefault: } case 463: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:5146 + // line internal/php7/php7.y:5140 { yyVAL.node = &ast.ExprArrayItem{ast.Node{}, false, yyDollar[1].node, yyDollar[3].node} @@ -7831,7 +7825,7 @@ yydefault: } case 464: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:5159 + // line internal/php7/php7.y:5153 { yyVAL.node = &ast.ExprArrayItem{ast.Node{}, false, nil, yyDollar[1].node} @@ -7845,7 +7839,7 @@ yydefault: } case 465: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:5171 + // line internal/php7/php7.y:5165 { reference := &ast.ExprReference{ast.Node{}, yyDollar[4].node} yyVAL.node = &ast.ExprArrayItem{ast.Node{}, false, yyDollar[1].node, reference} @@ -7863,7 +7857,7 @@ yydefault: } case 466: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:5187 + // line internal/php7/php7.y:5181 { reference := &ast.ExprReference{ast.Node{}, yyDollar[2].node} yyVAL.node = &ast.ExprArrayItem{ast.Node{}, false, nil, reference} @@ -7879,7 +7873,7 @@ yydefault: } case 467: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:5201 + // line internal/php7/php7.y:5195 { yyVAL.node = &ast.ExprArrayItem{ast.Node{}, true, nil, yyDollar[2].node} @@ -7893,7 +7887,7 @@ yydefault: } case 468: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php7/php7.y:5213 + // line internal/php7/php7.y:5207 { // TODO: Cannot use list() as standalone expression listNode := &ast.ExprList{ast.Node{}, yyDollar[5].list} @@ -7914,7 +7908,7 @@ yydefault: } case 469: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:5232 + // line internal/php7/php7.y:5226 { // TODO: Cannot use list() as standalone expression listNode := &ast.ExprList{ast.Node{}, yyDollar[3].list} @@ -7933,7 +7927,7 @@ yydefault: } case 470: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:5252 + // line internal/php7/php7.y:5246 { yyVAL.list = append(yyDollar[1].list, yyDollar[2].node) @@ -7941,7 +7935,7 @@ yydefault: } case 471: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:5258 + // line internal/php7/php7.y:5252 { encapsed := &ast.ScalarEncapsedStringPart{ast.Node{}, yyDollar[2].token.Value} yyVAL.list = append(yyDollar[1].list, encapsed) @@ -7956,7 +7950,7 @@ yydefault: } case 472: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:5271 + // line internal/php7/php7.y:5265 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -7964,7 +7958,7 @@ yydefault: } case 473: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:5277 + // line internal/php7/php7.y:5271 { encapsed := &ast.ScalarEncapsedStringPart{ast.Node{}, yyDollar[1].token.Value} yyVAL.list = []ast.Vertex{encapsed, yyDollar[2].node} @@ -7979,7 +7973,7 @@ yydefault: } case 474: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:5293 + // line internal/php7/php7.y:5287 { name := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.ExprVariable{ast.Node{}, name} @@ -7995,7 +7989,7 @@ yydefault: } case 475: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:5307 + // line internal/php7/php7.y:5301 { identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -8014,7 +8008,7 @@ yydefault: } case 476: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:5324 + // line internal/php7/php7.y:5318 { identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -8035,7 +8029,7 @@ yydefault: } case 477: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:5343 + // line internal/php7/php7.y:5337 { variable := &ast.ExprVariable{ast.Node{}, yyDollar[2].node} @@ -8052,7 +8046,7 @@ yydefault: } case 478: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:5358 + // line internal/php7/php7.y:5352 { name := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} variable := &ast.ExprVariable{ast.Node{}, name} @@ -8071,7 +8065,7 @@ yydefault: } case 479: yyDollar = yyS[yypt-6 : yypt+1] - // line internal/php7/php7.y:5375 + // line internal/php7/php7.y:5369 { identifier := &ast.Identifier{ast.Node{}, yyDollar[2].token.Value} variable := &ast.ExprVariable{ast.Node{}, identifier} @@ -8092,7 +8086,7 @@ yydefault: } case 480: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:5394 + // line internal/php7/php7.y:5388 { yyVAL.node = yyDollar[2].node @@ -8104,7 +8098,7 @@ yydefault: } case 481: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:5407 + // line internal/php7/php7.y:5401 { yyVAL.node = &ast.ScalarString{ast.Node{}, yyDollar[1].token.Value} @@ -8118,7 +8112,7 @@ yydefault: } case 482: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:5419 + // line internal/php7/php7.y:5413 { // TODO: add option to handle 64 bit integer if _, err := strconv.Atoi(string(yyDollar[1].token.Value)); err == nil { @@ -8137,7 +8131,7 @@ yydefault: } case 483: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:5436 + // line internal/php7/php7.y:5430 { var lnumber *ast.ScalarLnumber // TODO: add option to handle 64 bit integer @@ -8165,7 +8159,7 @@ yydefault: } case 484: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:5462 + // line internal/php7/php7.y:5456 { identifier := &ast.Identifier{ast.Node{}, yyDollar[1].token.Value} yyVAL.node = &ast.ExprVariable{ast.Node{}, identifier} @@ -8181,7 +8175,7 @@ yydefault: } case 485: yyDollar = yyS[yypt-5 : yypt+1] - // line internal/php7/php7.y:5479 + // line internal/php7/php7.y:5473 { yyVAL.node = &ast.ExprIsset{ast.Node{}, yyDollar[3].list} @@ -8201,7 +8195,7 @@ yydefault: } case 486: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:5497 + // line internal/php7/php7.y:5491 { yyVAL.node = &ast.ExprEmpty{ast.Node{}, yyDollar[3].node} @@ -8217,7 +8211,7 @@ yydefault: } case 487: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:5511 + // line internal/php7/php7.y:5505 { yyVAL.node = &ast.ExprInclude{ast.Node{}, yyDollar[2].node} @@ -8231,7 +8225,7 @@ yydefault: } case 488: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:5523 + // line internal/php7/php7.y:5517 { yyVAL.node = &ast.ExprIncludeOnce{ast.Node{}, yyDollar[2].node} @@ -8245,7 +8239,7 @@ yydefault: } case 489: yyDollar = yyS[yypt-4 : yypt+1] - // line internal/php7/php7.y:5535 + // line internal/php7/php7.y:5529 { yyVAL.node = &ast.ExprEval{ast.Node{}, yyDollar[3].node} @@ -8261,7 +8255,7 @@ yydefault: } case 490: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:5549 + // line internal/php7/php7.y:5543 { yyVAL.node = &ast.ExprRequire{ast.Node{}, yyDollar[2].node} @@ -8275,7 +8269,7 @@ yydefault: } case 491: yyDollar = yyS[yypt-2 : yypt+1] - // line internal/php7/php7.y:5561 + // line internal/php7/php7.y:5555 { yyVAL.node = &ast.ExprRequireOnce{ast.Node{}, yyDollar[2].node} @@ -8289,7 +8283,7 @@ yydefault: } case 492: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:5576 + // line internal/php7/php7.y:5570 { yyVAL.list = []ast.Vertex{yyDollar[1].node} @@ -8297,7 +8291,7 @@ yydefault: } case 493: yyDollar = yyS[yypt-3 : yypt+1] - // line internal/php7/php7.y:5582 + // line internal/php7/php7.y:5576 { yyVAL.list = append(yyDollar[1].list, yyDollar[3].node) @@ -8308,7 +8302,7 @@ yydefault: } case 494: yyDollar = yyS[yypt-1 : yypt+1] - // line internal/php7/php7.y:5594 + // line internal/php7/php7.y:5588 { yyVAL.node = yyDollar[1].node diff --git a/internal/php7/php7.y b/internal/php7/php7.y index 1fb33a9..c17bf65 100644 --- a/internal/php7/php7.y +++ b/internal/php7/php7.y @@ -468,10 +468,7 @@ top_statement: // save comments yylex.(*Parser).setFreeFloating($$, token.Start, $1.Tokens) - yylex.(*Parser).setFreeFloating($$, token.HaltCompiller, $2.Tokens) - yylex.(*Parser).setFreeFloating($$, token.OpenParenthesisToken, $3.Tokens) - yylex.(*Parser).setFreeFloating($$, token.CloseParenthesisToken, $4.Tokens) - yylex.(*Parser).setToken($$, token.SemiColon, $4.Tokens) + yylex.(*Parser).setFreeFloatingTokens($$, token.End, append($2.Tokens, append($3.Tokens, $4.Tokens...)...)) yylex.(*Parser).returnTokenToPool(yyDollar, &yyVAL) } @@ -930,17 +927,14 @@ inner_statement: } | T_HALT_COMPILER '(' ')' ';' { - $$ = &ast.StmtHaltCompiler{ast.Node{}, } + $$ = &ast.StmtHaltCompiler{ast.Node{}} // save position $$.GetNode().Position = position.NewTokensPosition($1, $4) // save comments yylex.(*Parser).setFreeFloating($$, token.Start, $1.Tokens) - yylex.(*Parser).setFreeFloating($$, token.HaltCompiller, $2.Tokens) - yylex.(*Parser).setFreeFloating($$, token.OpenParenthesisToken, $3.Tokens) - yylex.(*Parser).setFreeFloating($$, token.CloseParenthesisToken, $4.Tokens) - yylex.(*Parser).setToken($$, token.SemiColon, $4.Tokens) + yylex.(*Parser).setFreeFloatingTokens($$, token.End, append($2.Tokens, append($3.Tokens, $4.Tokens...)...)) yylex.(*Parser).returnTokenToPool(yyDollar, &yyVAL) } diff --git a/pkg/printer/printer.go b/pkg/printer/printer.go index f79c8e7..4475a12 100644 --- a/pkg/printer/printer.go +++ b/pkg/printer/printer.go @@ -2753,18 +2753,8 @@ func (p *Printer) printStmtHaltCompiler(n ast.Vertex) { p.printFreeFloating(nn, token.Start) io.WriteString(p.w, "__halt_compiler") - p.printFreeFloating(nn, token.HaltCompiller) - io.WriteString(p.w, "(") - p.printFreeFloating(nn, token.OpenParenthesisToken) - io.WriteString(p.w, ")") - p.printFreeFloating(nn, token.CloseParenthesisToken) - p.printFreeFloating(nn, token.SemiColon) - if nn.GetNode().Tokens.IsEmpty() { - io.WriteString(p.w, ";") - } - - p.printFreeFloating(nn, token.End) + p.printFreeFloatingOrDefault(nn, token.End, "();") } func (p *Printer) printStmtIf(n ast.Vertex) { diff --git a/pkg/token/position.go b/pkg/token/position.go index c74e558..09559e8 100644 --- a/pkg/token/position.go +++ b/pkg/token/position.go @@ -25,7 +25,6 @@ const ( True Cond - HaltCompiller Namespace Static Class diff --git a/pkg/token/position_string.go b/pkg/token/position_string.go index c3c6eab..5a62283 100644 --- a/pkg/token/position_string.go +++ b/pkg/token/position_string.go @@ -28,56 +28,55 @@ func _() { _ = x[IncExpr-17] _ = x[True-18] _ = x[Cond-19] - _ = x[HaltCompiller-20] - _ = x[Namespace-21] - _ = x[Static-22] - _ = x[Class-23] - _ = x[Use-24] - _ = x[While-25] - _ = x[For-26] - _ = x[Switch-27] - _ = x[Foreach-28] - _ = x[Declare-29] - _ = x[Label-30] - _ = x[Finally-31] - _ = x[List-32] - _ = x[Default-33] - _ = x[If-34] - _ = x[ElseIf-35] - _ = x[Else-36] - _ = x[Function-37] - _ = x[Alias-38] - _ = x[Equal-39] - _ = x[Exit-40] - _ = x[Array-41] - _ = x[Isset-42] - _ = x[Empty-43] - _ = x[Eval-44] - _ = x[Echo-45] - _ = x[Try-46] - _ = x[Catch-47] - _ = x[Unset-48] - _ = x[Stmts-49] - _ = x[VarList-50] - _ = x[ConstList-51] - _ = x[NameList-52] - _ = x[ParamList-53] - _ = x[ModifierList-54] - _ = x[ArrayPairList-55] - _ = x[CaseListStart-56] - _ = x[CaseListEnd-57] - _ = x[ArgumentList-58] - _ = x[PropertyList-59] - _ = x[ParameterList-60] - _ = x[AdaptationList-61] - _ = x[LexicalVarList-62] - _ = x[OpenParenthesisToken-63] - _ = x[CloseParenthesisToken-64] + _ = x[Namespace-20] + _ = x[Static-21] + _ = x[Class-22] + _ = x[Use-23] + _ = x[While-24] + _ = x[For-25] + _ = x[Switch-26] + _ = x[Foreach-27] + _ = x[Declare-28] + _ = x[Label-29] + _ = x[Finally-30] + _ = x[List-31] + _ = x[Default-32] + _ = x[If-33] + _ = x[ElseIf-34] + _ = x[Else-35] + _ = x[Function-36] + _ = x[Alias-37] + _ = x[Equal-38] + _ = x[Exit-39] + _ = x[Array-40] + _ = x[Isset-41] + _ = x[Empty-42] + _ = x[Eval-43] + _ = x[Echo-44] + _ = x[Try-45] + _ = x[Catch-46] + _ = x[Unset-47] + _ = x[Stmts-48] + _ = x[VarList-49] + _ = x[ConstList-50] + _ = x[NameList-51] + _ = x[ParamList-52] + _ = x[ModifierList-53] + _ = x[ArrayPairList-54] + _ = x[CaseListStart-55] + _ = x[CaseListEnd-56] + _ = x[ArgumentList-57] + _ = x[PropertyList-58] + _ = x[ParameterList-59] + _ = x[AdaptationList-60] + _ = x[LexicalVarList-61] + _ = x[OpenParenthesisToken-62] + _ = x[CloseParenthesisToken-63] } -const _Position_name = "StartEndSemiColonAltEndAmpersandNameKeyVarReturnTypeCaseSeparatorLexicalVarsParamsRefCastExprInitExprCondExprIncExprTrueCondHaltCompillerNamespaceStaticClassUseWhileForSwitchForeachDeclareLabelFinallyListDefaultIfElseIfElseFunctionAliasEqualExitArrayIssetEmptyEvalEchoTryCatchUnsetStmtsVarListConstListNameListParamListModifierListArrayPairListCaseListStartCaseListEndArgumentListPropertyListParameterListAdaptationListLexicalVarListOpenParenthesisTokenCloseParenthesisToken" +const _Position_name = "StartEndSemiColonAltEndAmpersandNameKeyVarReturnTypeCaseSeparatorLexicalVarsParamsRefCastExprInitExprCondExprIncExprTrueCondNamespaceStaticClassUseWhileForSwitchForeachDeclareLabelFinallyListDefaultIfElseIfElseFunctionAliasEqualExitArrayIssetEmptyEvalEchoTryCatchUnsetStmtsVarListConstListNameListParamListModifierListArrayPairListCaseListStartCaseListEndArgumentListPropertyListParameterListAdaptationListLexicalVarListOpenParenthesisTokenCloseParenthesisToken" -var _Position_index = [...]uint16{0, 5, 8, 17, 23, 32, 36, 39, 42, 52, 65, 76, 82, 85, 89, 93, 101, 109, 116, 120, 124, 137, 146, 152, 157, 160, 165, 168, 174, 181, 188, 193, 200, 204, 211, 213, 219, 223, 231, 236, 241, 245, 250, 255, 260, 264, 268, 271, 276, 281, 286, 293, 302, 310, 319, 331, 344, 357, 368, 380, 392, 405, 419, 433, 453, 474} +var _Position_index = [...]uint16{0, 5, 8, 17, 23, 32, 36, 39, 42, 52, 65, 76, 82, 85, 89, 93, 101, 109, 116, 120, 124, 133, 139, 144, 147, 152, 155, 161, 168, 175, 180, 187, 191, 198, 200, 206, 210, 218, 223, 228, 232, 237, 242, 247, 251, 255, 258, 263, 268, 273, 280, 289, 297, 306, 318, 331, 344, 355, 367, 379, 392, 406, 420, 440, 461} func (i Position) String() string { if i < 0 || i >= Position(len(_Position_index)-1) {