diff --git a/Makefile b/Makefile index fe35000..568b883 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ bench: go test -benchmem -bench=. ./php5 go test -benchmem -bench=. ./php7 -compile: ./php5/php5.go ./php7/php7.go ./scanner/scanner.go +compile: ./php5/php5.go ./php7/php7.go ./scanner/scanner.go fmt sed -i '' -e 's/yyErrorVerbose = false/yyErrorVerbose = true/g' ./php7/php7.go sed -i '' -e 's/yyErrorVerbose = false/yyErrorVerbose = true/g' ./php5/php5.go rm -f y.output diff --git a/php5/php5.go b/php5/php5.go index 431607c..7b87967 100644 --- a/php5/php5.go +++ b/php5/php5.go @@ -347,7 +347,6 @@ const yyErrCode = 2 const yyInitialStackSize = 16 //line php5/php5.y:6789 - type simpleIndirectReference struct { all []*expr.Variable last *expr.Variable diff --git a/php5/php5_test.go b/php5/php5_test.go index 829022a..4a6d106 100644 --- a/php5/php5_test.go +++ b/php5/php5_test.go @@ -417,39 +417,39 @@ func TestPhp5(t *testing.T) { expected := &node.Root{ Position: &position.Position{ StartLine: 2, - EndLine: 379, - StartPos: 6, - EndPos: 6965, + EndLine: 379, + StartPos: 6, + EndPos: 6965, }, Stmts: []node.Node{ &stmt.Expression{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 6, - EndPos: 20, + EndLine: 2, + StartPos: 6, + EndPos: 20, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 6, - EndPos: 19, + EndLine: 2, + StartPos: 6, + EndPos: 19, }, Function: &name.Name{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 6, - EndPos: 8, + EndLine: 2, + StartPos: 6, + EndPos: 8, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 6, - EndPos: 8, + EndLine: 2, + StartPos: 6, + EndPos: 8, }, Value: "foo", }, @@ -458,33 +458,33 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 9, - EndPos: 19, + EndLine: 2, + StartPos: 9, + EndPos: 19, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 10, - EndPos: 11, + EndLine: 2, + StartPos: 10, + EndPos: 11, }, IsReference: false, - Variadic: false, + Variadic: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 10, - EndPos: 11, + EndLine: 2, + StartPos: 10, + EndPos: 11, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 10, - EndPos: 11, + EndLine: 2, + StartPos: 10, + EndPos: 11, }, Value: "a", }, @@ -493,25 +493,25 @@ func TestPhp5(t *testing.T) { &node.Argument{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 14, - EndPos: 18, + EndLine: 2, + StartPos: 14, + EndPos: 18, }, IsReference: false, - Variadic: true, + Variadic: true, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 17, - EndPos: 18, + EndLine: 2, + StartPos: 17, + EndPos: 18, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 17, - EndPos: 18, + EndLine: 2, + StartPos: 17, + EndPos: 18, }, Value: "b", }, @@ -524,30 +524,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 24, - EndPos: 39, + EndLine: 3, + StartPos: 24, + EndPos: 39, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 24, - EndPos: 38, + EndLine: 3, + StartPos: 24, + EndPos: 38, }, Function: &expr.Variable{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 24, - EndPos: 27, + EndLine: 3, + StartPos: 24, + EndPos: 27, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 24, - EndPos: 27, + EndLine: 3, + StartPos: 24, + EndPos: 27, }, Value: "foo", }, @@ -555,33 +555,33 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 28, - EndPos: 38, + EndLine: 3, + StartPos: 28, + EndPos: 38, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 29, - EndPos: 30, + EndLine: 3, + StartPos: 29, + EndPos: 30, }, - Variadic: false, + Variadic: false, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 29, - EndPos: 30, + EndLine: 3, + StartPos: 29, + EndPos: 30, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 29, - EndPos: 30, + EndLine: 3, + StartPos: 29, + EndPos: 30, }, Value: "a", }, @@ -590,25 +590,25 @@ func TestPhp5(t *testing.T) { &node.Argument{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 33, - EndPos: 37, + EndLine: 3, + StartPos: 33, + EndPos: 37, }, - Variadic: true, + Variadic: true, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 36, - EndPos: 37, + EndLine: 3, + StartPos: 36, + EndPos: 37, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 36, - EndPos: 37, + EndLine: 3, + StartPos: 36, + EndPos: 37, }, Value: "b", }, @@ -621,30 +621,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 43, - EndPos: 63, + EndLine: 4, + StartPos: 43, + EndPos: 63, }, Expr: &expr.MethodCall{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 43, - EndPos: 62, + EndLine: 4, + StartPos: 43, + EndPos: 62, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 43, - EndPos: 46, + EndLine: 4, + StartPos: 43, + EndPos: 46, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 43, - EndPos: 46, + EndLine: 4, + StartPos: 43, + EndPos: 46, }, Value: "foo", }, @@ -652,42 +652,42 @@ func TestPhp5(t *testing.T) { Method: &node.Identifier{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 49, - EndPos: 51, + EndLine: 4, + StartPos: 49, + EndPos: 51, }, Value: "bar", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 52, - EndPos: 62, + EndLine: 4, + StartPos: 52, + EndPos: 62, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 53, - EndPos: 54, + EndLine: 4, + StartPos: 53, + EndPos: 54, }, - Variadic: false, + Variadic: false, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 53, - EndPos: 54, + EndLine: 4, + StartPos: 53, + EndPos: 54, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 53, - EndPos: 54, + EndLine: 4, + StartPos: 53, + EndPos: 54, }, Value: "a", }, @@ -696,25 +696,25 @@ func TestPhp5(t *testing.T) { &node.Argument{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 57, - EndPos: 61, + EndLine: 4, + StartPos: 57, + EndPos: 61, }, - Variadic: true, + Variadic: true, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 60, - EndPos: 61, + EndLine: 4, + StartPos: 60, + EndPos: 61, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 60, - EndPos: 61, + EndLine: 4, + StartPos: 60, + EndPos: 61, }, Value: "b", }, @@ -727,31 +727,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 67, - EndPos: 86, + EndLine: 5, + StartPos: 67, + EndPos: 86, }, Expr: &expr.StaticCall{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 67, - EndPos: 85, + EndLine: 5, + StartPos: 67, + EndPos: 85, }, Class: &name.Name{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 67, - EndPos: 69, + EndLine: 5, + StartPos: 67, + EndPos: 69, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 67, - EndPos: 69, + EndLine: 5, + StartPos: 67, + EndPos: 69, }, Value: "foo", }, @@ -760,42 +760,42 @@ func TestPhp5(t *testing.T) { Call: &node.Identifier{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 72, - EndPos: 74, + EndLine: 5, + StartPos: 72, + EndPos: 74, }, Value: "bar", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 75, - EndPos: 85, + EndLine: 5, + StartPos: 75, + EndPos: 85, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 76, - EndPos: 77, + EndLine: 5, + StartPos: 76, + EndPos: 77, }, - Variadic: false, + Variadic: false, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 76, - EndPos: 77, + EndLine: 5, + StartPos: 76, + EndPos: 77, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 76, - EndPos: 77, + EndLine: 5, + StartPos: 76, + EndPos: 77, }, Value: "a", }, @@ -804,25 +804,25 @@ func TestPhp5(t *testing.T) { &node.Argument{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 80, - EndPos: 84, + EndLine: 5, + StartPos: 80, + EndPos: 84, }, - Variadic: true, + Variadic: true, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 83, - EndPos: 84, + EndLine: 5, + StartPos: 83, + EndPos: 84, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 83, - EndPos: 84, + EndLine: 5, + StartPos: 83, + EndPos: 84, }, Value: "b", }, @@ -835,30 +835,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 90, - EndPos: 110, + EndLine: 6, + StartPos: 90, + EndPos: 110, }, Expr: &expr.StaticCall{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 90, - EndPos: 109, + EndLine: 6, + StartPos: 90, + EndPos: 109, }, Class: &expr.Variable{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 90, - EndPos: 93, + EndLine: 6, + StartPos: 90, + EndPos: 93, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 90, - EndPos: 93, + EndLine: 6, + StartPos: 90, + EndPos: 93, }, Value: "foo", }, @@ -866,42 +866,42 @@ func TestPhp5(t *testing.T) { Call: &node.Identifier{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 96, - EndPos: 98, + EndLine: 6, + StartPos: 96, + EndPos: 98, }, Value: "bar", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 99, - EndPos: 109, + EndLine: 6, + StartPos: 99, + EndPos: 109, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 100, - EndPos: 101, + EndLine: 6, + StartPos: 100, + EndPos: 101, }, IsReference: false, - Variadic: false, + Variadic: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 100, - EndPos: 101, + EndLine: 6, + StartPos: 100, + EndPos: 101, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 100, - EndPos: 101, + EndLine: 6, + StartPos: 100, + EndPos: 101, }, Value: "a", }, @@ -910,25 +910,25 @@ func TestPhp5(t *testing.T) { &node.Argument{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 104, - EndPos: 108, + EndLine: 6, + StartPos: 104, + EndPos: 108, }, - Variadic: true, + Variadic: true, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 107, - EndPos: 108, + EndLine: 6, + StartPos: 107, + EndPos: 108, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 107, - EndPos: 108, + EndLine: 6, + StartPos: 107, + EndPos: 108, }, Value: "b", }, @@ -941,31 +941,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 114, - EndPos: 132, + EndLine: 7, + StartPos: 114, + EndPos: 132, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 114, - EndPos: 131, + EndLine: 7, + StartPos: 114, + EndPos: 131, }, Class: &name.Name{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 118, - EndPos: 120, + EndLine: 7, + StartPos: 118, + EndPos: 120, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 118, - EndPos: 120, + EndLine: 7, + StartPos: 118, + EndPos: 120, }, Value: "foo", }, @@ -974,33 +974,33 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 121, - EndPos: 131, + EndLine: 7, + StartPos: 121, + EndPos: 131, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 122, - EndPos: 123, + EndLine: 7, + StartPos: 122, + EndPos: 123, }, - Variadic: false, + Variadic: false, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 122, - EndPos: 123, + EndLine: 7, + StartPos: 122, + EndPos: 123, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 122, - EndPos: 123, + EndLine: 7, + StartPos: 122, + EndPos: 123, }, Value: "a", }, @@ -1009,25 +1009,25 @@ func TestPhp5(t *testing.T) { &node.Argument{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 126, - EndPos: 130, + EndLine: 7, + StartPos: 126, + EndPos: 130, }, - Variadic: true, + Variadic: true, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 129, - EndPos: 130, + EndLine: 7, + StartPos: 129, + EndPos: 130, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 129, - EndPos: 130, + EndLine: 7, + StartPos: 129, + EndPos: 130, }, Value: "b", }, @@ -1040,18 +1040,18 @@ func TestPhp5(t *testing.T) { &stmt.Function{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 137, - EndPos: 180, + EndLine: 9, + StartPos: 137, + EndPos: 180, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", FunctionName: &node.Identifier{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 146, - EndPos: 148, + EndLine: 9, + StartPos: 146, + EndPos: 148, }, Value: "foo", }, @@ -1059,26 +1059,26 @@ func TestPhp5(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 150, - EndPos: 162, + EndLine: 9, + StartPos: 150, + EndPos: 162, }, - ByRef: false, + ByRef: false, Variadic: false, VariableType: &name.Name{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 150, - EndPos: 152, + EndLine: 9, + StartPos: 150, + EndPos: 152, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 150, - EndPos: 152, + EndLine: 9, + StartPos: 150, + EndPos: 152, }, Value: "bar", }, @@ -1087,16 +1087,16 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 154, - EndPos: 157, + EndLine: 9, + StartPos: 154, + EndPos: 157, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 154, - EndPos: 157, + EndLine: 9, + StartPos: 154, + EndPos: 157, }, Value: "bar", }, @@ -1104,24 +1104,24 @@ func TestPhp5(t *testing.T) { DefaultValue: &expr.ConstFetch{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 159, - EndPos: 162, + EndLine: 9, + StartPos: 159, + EndPos: 162, }, Constant: &name.Name{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 159, - EndPos: 162, + EndLine: 9, + StartPos: 159, + EndPos: 162, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 159, - EndPos: 162, + EndLine: 9, + StartPos: 159, + EndPos: 162, }, Value: "null", }, @@ -1132,26 +1132,26 @@ func TestPhp5(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 165, - EndPos: 176, + EndLine: 9, + StartPos: 165, + EndPos: 176, }, - ByRef: true, + ByRef: true, Variadic: true, VariableType: &name.Name{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 165, - EndPos: 167, + EndLine: 9, + StartPos: 165, + EndPos: 167, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 165, - EndPos: 167, + EndLine: 9, + StartPos: 165, + EndPos: 167, }, Value: "baz", }, @@ -1160,39 +1160,38 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 173, - EndPos: 176, + EndLine: 9, + StartPos: 173, + EndPos: 176, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 173, - EndPos: 176, + EndLine: 9, + StartPos: 173, + EndPos: 176, }, Value: "baz", }, }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Class{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 184, - EndPos: 246, + EndLine: 10, + StartPos: 184, + EndPos: 246, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 190, - EndPos: 192, + EndLine: 10, + StartPos: 190, + EndPos: 192, }, Value: "foo", }, @@ -1200,18 +1199,18 @@ func TestPhp5(t *testing.T) { &stmt.ClassMethod{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 195, - EndPos: 245, + EndLine: 10, + StartPos: 195, + EndPos: 245, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", MethodName: &node.Identifier{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 211, - EndPos: 213, + EndLine: 10, + StartPos: 211, + EndPos: 213, }, Value: "foo", }, @@ -1219,9 +1218,9 @@ func TestPhp5(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 195, - EndPos: 200, + EndLine: 10, + StartPos: 195, + EndPos: 200, }, Value: "public", }, @@ -1230,26 +1229,26 @@ func TestPhp5(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 215, - EndPos: 227, + EndLine: 10, + StartPos: 215, + EndPos: 227, }, - ByRef: false, + ByRef: false, Variadic: false, VariableType: &name.Name{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 215, - EndPos: 217, + EndLine: 10, + StartPos: 215, + EndPos: 217, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 215, - EndPos: 217, + EndLine: 10, + StartPos: 215, + EndPos: 217, }, Value: "bar", }, @@ -1258,16 +1257,16 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 219, - EndPos: 222, + EndLine: 10, + StartPos: 219, + EndPos: 222, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 219, - EndPos: 222, + EndLine: 10, + StartPos: 219, + EndPos: 222, }, Value: "bar", }, @@ -1275,24 +1274,24 @@ func TestPhp5(t *testing.T) { DefaultValue: &expr.ConstFetch{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 224, - EndPos: 227, + EndLine: 10, + StartPos: 224, + EndPos: 227, }, Constant: &name.Name{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 224, - EndPos: 227, + EndLine: 10, + StartPos: 224, + EndPos: 227, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 224, - EndPos: 227, + EndLine: 10, + StartPos: 224, + EndPos: 227, }, Value: "null", }, @@ -1303,26 +1302,26 @@ func TestPhp5(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 230, - EndPos: 241, + EndLine: 10, + StartPos: 230, + EndPos: 241, }, - ByRef: true, + ByRef: true, Variadic: true, VariableType: &name.Name{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 230, - EndPos: 232, + EndLine: 10, + StartPos: 230, + EndPos: 232, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 230, - EndPos: 232, + EndLine: 10, + StartPos: 230, + EndPos: 232, }, Value: "baz", }, @@ -1331,16 +1330,16 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 238, - EndPos: 241, + EndLine: 10, + StartPos: 238, + EndPos: 241, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 238, - EndPos: 241, + EndLine: 10, + StartPos: 238, + EndPos: 241, }, Value: "baz", }, @@ -1350,12 +1349,11 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 244, - EndPos: 245, - }, - Stmts: []node.Node{ + EndLine: 10, + StartPos: 244, + EndPos: 245, }, + Stmts: []node.Node{}, }, }, }, @@ -1363,44 +1361,44 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 250, - EndPos: 290, + EndLine: 11, + StartPos: 250, + EndPos: 290, }, Expr: &expr.Closure{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 250, - EndPos: 289, + EndLine: 11, + StartPos: 250, + EndPos: 289, }, - ReturnsRef: false, - Static: false, + ReturnsRef: false, + Static: false, PhpDocComment: "", Params: []node.Node{ &node.Parameter{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 259, - EndPos: 271, + EndLine: 11, + StartPos: 259, + EndPos: 271, }, - ByRef: false, + ByRef: false, Variadic: false, VariableType: &name.Name{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 259, - EndPos: 261, + EndLine: 11, + StartPos: 259, + EndPos: 261, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 259, - EndPos: 261, + EndLine: 11, + StartPos: 259, + EndPos: 261, }, Value: "bar", }, @@ -1409,16 +1407,16 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 263, - EndPos: 266, + EndLine: 11, + StartPos: 263, + EndPos: 266, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 263, - EndPos: 266, + EndLine: 11, + StartPos: 263, + EndPos: 266, }, Value: "bar", }, @@ -1426,24 +1424,24 @@ func TestPhp5(t *testing.T) { DefaultValue: &expr.ConstFetch{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 268, - EndPos: 271, + EndLine: 11, + StartPos: 268, + EndPos: 271, }, Constant: &name.Name{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 268, - EndPos: 271, + EndLine: 11, + StartPos: 268, + EndPos: 271, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 268, - EndPos: 271, + EndLine: 11, + StartPos: 268, + EndPos: 271, }, Value: "null", }, @@ -1454,26 +1452,26 @@ func TestPhp5(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 274, - EndPos: 285, + EndLine: 11, + StartPos: 274, + EndPos: 285, }, - ByRef: true, + ByRef: true, Variadic: true, VariableType: &name.Name{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 274, - EndPos: 276, + EndLine: 11, + StartPos: 274, + EndPos: 276, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 274, - EndPos: 276, + EndLine: 11, + StartPos: 274, + EndPos: 276, }, Value: "baz", }, @@ -1482,67 +1480,66 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 282, - EndPos: 285, + EndLine: 11, + StartPos: 282, + EndPos: 285, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 282, - EndPos: 285, + EndLine: 11, + StartPos: 282, + EndPos: 285, }, Value: "baz", }, }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 294, - EndPos: 341, + EndLine: 12, + StartPos: 294, + EndPos: 341, }, Expr: &expr.Closure{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 294, - EndPos: 340, + EndLine: 12, + StartPos: 294, + EndPos: 340, }, - Static: true, + Static: true, PhpDocComment: "", - ReturnsRef: false, + ReturnsRef: false, Params: []node.Node{ &node.Parameter{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 310, - EndPos: 322, + EndLine: 12, + StartPos: 310, + EndPos: 322, }, - ByRef: false, + ByRef: false, Variadic: false, VariableType: &name.Name{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 310, - EndPos: 312, + EndLine: 12, + StartPos: 310, + EndPos: 312, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 310, - EndPos: 312, + EndLine: 12, + StartPos: 310, + EndPos: 312, }, Value: "bar", }, @@ -1551,16 +1548,16 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 314, - EndPos: 317, + EndLine: 12, + StartPos: 314, + EndPos: 317, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 314, - EndPos: 317, + EndLine: 12, + StartPos: 314, + EndPos: 317, }, Value: "bar", }, @@ -1568,24 +1565,24 @@ func TestPhp5(t *testing.T) { DefaultValue: &expr.ConstFetch{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 319, - EndPos: 322, + EndLine: 12, + StartPos: 319, + EndPos: 322, }, Constant: &name.Name{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 319, - EndPos: 322, + EndLine: 12, + StartPos: 319, + EndPos: 322, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 319, - EndPos: 322, + EndLine: 12, + StartPos: 319, + EndPos: 322, }, Value: "null", }, @@ -1596,26 +1593,26 @@ func TestPhp5(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 325, - EndPos: 336, + EndLine: 12, + StartPos: 325, + EndPos: 336, }, - ByRef: true, + ByRef: true, Variadic: true, VariableType: &name.Name{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 325, - EndPos: 327, + EndLine: 12, + StartPos: 325, + EndPos: 327, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 325, - EndPos: 327, + EndLine: 12, + StartPos: 325, + EndPos: 327, }, Value: "baz", }, @@ -1624,39 +1621,38 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 333, - EndPos: 336, + EndLine: 12, + StartPos: 333, + EndPos: 336, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 333, - EndPos: 336, + EndLine: 12, + StartPos: 333, + EndPos: 336, }, Value: "baz", }, }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 14, - EndLine: 14, - StartPos: 346, - EndPos: 365, + EndLine: 14, + StartPos: 346, + EndPos: 365, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 14, - EndLine: 14, - StartPos: 346, - EndPos: 364, + EndLine: 14, + StartPos: 346, + EndPos: 364, }, Value: "1234567890123456789", }, @@ -1664,16 +1660,16 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 15, - EndLine: 15, - StartPos: 369, - EndPos: 389, + EndLine: 15, + StartPos: 369, + EndPos: 389, }, Expr: &scalar.Dnumber{ Position: &position.Position{ StartLine: 15, - EndLine: 15, - StartPos: 369, - EndPos: 388, + EndLine: 15, + StartPos: 369, + EndPos: 388, }, Value: "12345678901234567890", }, @@ -1681,16 +1677,16 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 16, - EndLine: 16, - StartPos: 393, - EndPos: 395, + EndLine: 16, + StartPos: 393, + EndPos: 395, }, Expr: &scalar.Dnumber{ Position: &position.Position{ StartLine: 16, - EndLine: 16, - StartPos: 393, - EndPos: 394, + EndLine: 16, + StartPos: 393, + EndPos: 394, }, Value: "0.", }, @@ -1698,16 +1694,16 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 17, - EndLine: 17, - StartPos: 399, - EndPos: 465, + EndLine: 17, + StartPos: 399, + EndPos: 465, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 17, - EndLine: 17, - StartPos: 399, - EndPos: 464, + EndLine: 17, + StartPos: 399, + EndPos: 464, }, Value: "0b0111111111111111111111111111111111111111111111111111111111111111", }, @@ -1715,16 +1711,16 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 469, - EndPos: 535, + EndLine: 18, + StartPos: 469, + EndPos: 535, }, Expr: &scalar.Dnumber{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 469, - EndPos: 534, + EndLine: 18, + StartPos: 469, + EndPos: 534, }, Value: "0b1111111111111111111111111111111111111111111111111111111111111111", }, @@ -1732,16 +1728,16 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 539, - EndPos: 559, + EndLine: 19, + StartPos: 539, + EndPos: 559, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 539, - EndPos: 558, + EndLine: 19, + StartPos: 539, + EndPos: 558, }, Value: "0x007111111111111111", }, @@ -1749,16 +1745,16 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 563, - EndPos: 581, + EndLine: 20, + StartPos: 563, + EndPos: 581, }, Expr: &scalar.Dnumber{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 563, - EndPos: 580, + EndLine: 20, + StartPos: 563, + EndPos: 580, }, Value: "0x8111111111111111", }, @@ -1766,16 +1762,16 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 585, - EndPos: 594, + EndLine: 21, + StartPos: 585, + EndPos: 594, }, Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 585, - EndPos: 593, + EndLine: 21, + StartPos: 585, + EndPos: 593, }, Value: "__CLASS__", }, @@ -1783,16 +1779,16 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 22, - EndLine: 22, - StartPos: 598, - EndPos: 605, + EndLine: 22, + StartPos: 598, + EndPos: 605, }, Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 22, - EndLine: 22, - StartPos: 598, - EndPos: 604, + EndLine: 22, + StartPos: 598, + EndPos: 604, }, Value: "__DIR__", }, @@ -1800,16 +1796,16 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 23, - EndLine: 23, - StartPos: 609, - EndPos: 617, + EndLine: 23, + StartPos: 609, + EndPos: 617, }, Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 23, - EndLine: 23, - StartPos: 609, - EndPos: 616, + EndLine: 23, + StartPos: 609, + EndPos: 616, }, Value: "__FILE__", }, @@ -1817,16 +1813,16 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 24, - EndLine: 24, - StartPos: 621, - EndPos: 633, + EndLine: 24, + StartPos: 621, + EndPos: 633, }, Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 24, - EndLine: 24, - StartPos: 621, - EndPos: 632, + EndLine: 24, + StartPos: 621, + EndPos: 632, }, Value: "__FUNCTION__", }, @@ -1834,16 +1830,16 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 25, - EndLine: 25, - StartPos: 637, - EndPos: 645, + EndLine: 25, + StartPos: 637, + EndPos: 645, }, Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 25, - EndLine: 25, - StartPos: 637, - EndPos: 644, + EndLine: 25, + StartPos: 637, + EndPos: 644, }, Value: "__LINE__", }, @@ -1851,16 +1847,16 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 26, - EndLine: 26, - StartPos: 649, - EndPos: 662, + EndLine: 26, + StartPos: 649, + EndPos: 662, }, Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 26, - EndLine: 26, - StartPos: 649, - EndPos: 661, + EndLine: 26, + StartPos: 649, + EndPos: 661, }, Value: "__NAMESPACE__", }, @@ -1868,16 +1864,16 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 27, - EndLine: 27, - StartPos: 666, - EndPos: 676, + EndLine: 27, + StartPos: 666, + EndPos: 676, }, Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 27, - EndLine: 27, - StartPos: 666, - EndPos: 675, + EndLine: 27, + StartPos: 666, + EndPos: 675, }, Value: "__METHOD__", }, @@ -1885,16 +1881,16 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 28, - EndLine: 28, - StartPos: 680, - EndPos: 689, + EndLine: 28, + StartPos: 680, + EndPos: 689, }, Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 28, - EndLine: 28, - StartPos: 680, - EndPos: 688, + EndLine: 28, + StartPos: 680, + EndPos: 688, }, Value: "__TRAIT__", }, @@ -1902,40 +1898,40 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 30, - EndLine: 30, - StartPos: 694, - EndPos: 705, + EndLine: 30, + StartPos: 694, + EndPos: 705, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 30, - EndLine: 30, - StartPos: 694, - EndPos: 704, + EndLine: 30, + StartPos: 694, + EndPos: 704, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 30, - EndLine: 30, - StartPos: 695, - EndPos: 699, + EndLine: 30, + StartPos: 695, + EndPos: 699, }, Value: "test ", }, &expr.Variable{ Position: &position.Position{ StartLine: 30, - EndLine: 30, - StartPos: 700, - EndPos: 703, + EndLine: 30, + StartPos: 700, + EndPos: 703, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 30, - EndLine: 30, - StartPos: 700, - EndPos: 703, + EndLine: 30, + StartPos: 700, + EndPos: 703, }, Value: "var", }, @@ -1946,47 +1942,47 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 31, - EndLine: 31, - StartPos: 709, - EndPos: 723, + EndLine: 31, + StartPos: 709, + EndPos: 723, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 31, - EndLine: 31, - StartPos: 709, - EndPos: 722, + EndLine: 31, + StartPos: 709, + EndPos: 722, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 31, - EndLine: 31, - StartPos: 710, - EndPos: 714, + EndLine: 31, + StartPos: 710, + EndPos: 714, }, Value: "test ", }, &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 31, - EndLine: 31, - StartPos: 715, - EndPos: 721, + EndLine: 31, + StartPos: 715, + EndPos: 721, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 31, - EndLine: 31, - StartPos: 715, - EndPos: 718, + EndLine: 31, + StartPos: 715, + EndPos: 718, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 31, - EndLine: 31, - StartPos: 715, - EndPos: 718, + EndLine: 31, + StartPos: 715, + EndPos: 718, }, Value: "var", }, @@ -1994,9 +1990,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 31, - EndLine: 31, - StartPos: 720, - EndPos: 720, + EndLine: 31, + StartPos: 720, + EndPos: 720, }, Value: "1", }, @@ -2007,47 +2003,47 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 32, - EndLine: 32, - StartPos: 727, - EndPos: 780, + EndLine: 32, + StartPos: 727, + EndPos: 780, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 32, - EndLine: 32, - StartPos: 727, - EndPos: 779, + EndLine: 32, + StartPos: 727, + EndPos: 779, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 32, - EndLine: 32, - StartPos: 728, - EndPos: 732, + EndLine: 32, + StartPos: 728, + EndPos: 732, }, Value: "test ", }, &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 32, - EndLine: 32, - StartPos: 733, - EndPos: 778, + EndLine: 32, + StartPos: 733, + EndPos: 778, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 32, - EndLine: 32, - StartPos: 733, - EndPos: 736, + EndLine: 32, + StartPos: 733, + EndPos: 736, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 32, - EndLine: 32, - StartPos: 733, - EndPos: 736, + EndLine: 32, + StartPos: 733, + EndPos: 736, }, Value: "var", }, @@ -2055,9 +2051,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.String{ Position: &position.Position{ StartLine: 32, - EndLine: 32, - StartPos: 738, - EndPos: 777, + EndLine: 32, + StartPos: 738, + EndPos: 777, }, Value: "1234567890123456789012345678901234567890", }, @@ -2068,47 +2064,47 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 33, - EndLine: 33, - StartPos: 784, - EndPos: 800, + EndLine: 33, + StartPos: 784, + EndPos: 800, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 33, - EndLine: 33, - StartPos: 784, - EndPos: 799, + EndLine: 33, + StartPos: 784, + EndPos: 799, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 33, - EndLine: 33, - StartPos: 785, - EndPos: 789, + EndLine: 33, + StartPos: 785, + EndPos: 789, }, Value: "test ", }, &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 33, - EndLine: 33, - StartPos: 790, - EndPos: 798, + EndLine: 33, + StartPos: 790, + EndPos: 798, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 33, - EndLine: 33, - StartPos: 790, - EndPos: 793, + EndLine: 33, + StartPos: 790, + EndPos: 793, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 33, - EndLine: 33, - StartPos: 790, - EndPos: 793, + EndLine: 33, + StartPos: 790, + EndPos: 793, }, Value: "var", }, @@ -2116,9 +2112,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.String{ Position: &position.Position{ StartLine: 33, - EndLine: 33, - StartPos: 795, - EndPos: 797, + EndLine: 33, + StartPos: 795, + EndPos: 797, }, Value: "bar", }, @@ -2129,47 +2125,47 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 34, - EndLine: 34, - StartPos: 804, - EndPos: 821, + EndLine: 34, + StartPos: 804, + EndPos: 821, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 34, - EndLine: 34, - StartPos: 804, - EndPos: 820, + EndLine: 34, + StartPos: 804, + EndPos: 820, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 34, - EndLine: 34, - StartPos: 805, - EndPos: 809, + EndLine: 34, + StartPos: 805, + EndPos: 809, }, Value: "test ", }, &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 34, - EndLine: 34, - StartPos: 810, - EndPos: 819, + EndLine: 34, + StartPos: 810, + EndPos: 819, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 34, - EndLine: 34, - StartPos: 810, - EndPos: 813, + EndLine: 34, + StartPos: 810, + EndPos: 813, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 34, - EndLine: 34, - StartPos: 810, - EndPos: 813, + EndLine: 34, + StartPos: 810, + EndPos: 813, }, Value: "var", }, @@ -2177,16 +2173,16 @@ func TestPhp5(t *testing.T) { Dim: &expr.Variable{ Position: &position.Position{ StartLine: 34, - EndLine: 34, - StartPos: 815, - EndPos: 818, + EndLine: 34, + StartPos: 815, + EndPos: 818, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 34, - EndLine: 34, - StartPos: 815, - EndPos: 818, + EndLine: 34, + StartPos: 815, + EndPos: 818, }, Value: "bar", }, @@ -2198,31 +2194,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 35, - EndLine: 35, - StartPos: 825, - EndPos: 836, + EndLine: 35, + StartPos: 825, + EndPos: 836, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 35, - EndLine: 35, - StartPos: 825, - EndPos: 835, + EndLine: 35, + StartPos: 825, + EndPos: 835, }, Parts: []node.Node{ &expr.Variable{ Position: &position.Position{ StartLine: 35, - EndLine: 35, - StartPos: 826, - EndPos: 829, + EndLine: 35, + StartPos: 826, + EndPos: 829, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 35, - EndLine: 35, - StartPos: 826, - EndPos: 829, + EndLine: 35, + StartPos: 826, + EndPos: 829, }, Value: "foo", }, @@ -2230,25 +2226,25 @@ func TestPhp5(t *testing.T) { &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 35, - EndLine: 35, - StartPos: 830, - EndPos: 830, + EndLine: 35, + StartPos: 830, + EndPos: 830, }, Value: " ", }, &expr.Variable{ Position: &position.Position{ StartLine: 35, - EndLine: 35, - StartPos: 831, - EndPos: 834, + EndLine: 35, + StartPos: 831, + EndPos: 834, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 35, - EndLine: 35, - StartPos: 831, - EndPos: 834, + EndLine: 35, + StartPos: 831, + EndPos: 834, }, Value: "bar", }, @@ -2259,47 +2255,47 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 36, - EndLine: 36, - StartPos: 840, - EndPos: 858, + EndLine: 36, + StartPos: 840, + EndPos: 858, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 36, - EndLine: 36, - StartPos: 840, - EndPos: 857, + EndLine: 36, + StartPos: 840, + EndPos: 857, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 36, - EndLine: 36, - StartPos: 841, - EndPos: 845, + EndLine: 36, + StartPos: 841, + EndPos: 845, }, Value: "test ", }, &expr.PropertyFetch{ Position: &position.Position{ StartLine: 36, - EndLine: 36, - StartPos: 846, - EndPos: 854, + EndLine: 36, + StartPos: 846, + EndPos: 854, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 36, - EndLine: 36, - StartPos: 846, - EndPos: 849, + EndLine: 36, + StartPos: 846, + EndPos: 849, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 36, - EndLine: 36, - StartPos: 846, - EndPos: 849, + EndLine: 36, + StartPos: 846, + EndPos: 849, }, Value: "foo", }, @@ -2307,9 +2303,9 @@ func TestPhp5(t *testing.T) { Property: &node.Identifier{ Position: &position.Position{ StartLine: 36, - EndLine: 36, - StartPos: 852, - EndPos: 854, + EndLine: 36, + StartPos: 852, + EndPos: 854, }, Value: "bar", }, @@ -2317,9 +2313,9 @@ func TestPhp5(t *testing.T) { &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 36, - EndLine: 36, - StartPos: 855, - EndPos: 856, + EndLine: 36, + StartPos: 855, + EndPos: 856, }, Value: "()", }, @@ -2329,40 +2325,40 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 37, - EndLine: 37, - StartPos: 862, - EndPos: 875, + EndLine: 37, + StartPos: 862, + EndPos: 875, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 37, - EndLine: 37, - StartPos: 862, - EndPos: 874, + EndLine: 37, + StartPos: 862, + EndPos: 874, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 37, - EndLine: 37, - StartPos: 863, - EndPos: 867, + EndLine: 37, + StartPos: 863, + EndPos: 867, }, Value: "test ", }, &expr.Variable{ Position: &position.Position{ StartLine: 37, - EndLine: 37, - StartPos: 868, - EndPos: 873, + EndLine: 37, + StartPos: 868, + EndPos: 873, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 37, - EndLine: 37, - StartPos: 870, - EndPos: 872, + EndLine: 37, + StartPos: 870, + EndPos: 872, }, Value: "foo", }, @@ -2373,47 +2369,47 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 38, - EndLine: 38, - StartPos: 879, - EndPos: 895, + EndLine: 38, + StartPos: 879, + EndPos: 895, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 38, - EndLine: 38, - StartPos: 879, - EndPos: 894, + EndLine: 38, + StartPos: 879, + EndPos: 894, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 38, - EndLine: 38, - StartPos: 880, - EndPos: 884, + EndLine: 38, + StartPos: 880, + EndPos: 884, }, Value: "test ", }, &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 38, - EndLine: 38, - StartPos: 885, - EndPos: 893, + EndLine: 38, + StartPos: 885, + EndPos: 893, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 38, - EndLine: 38, - StartPos: 887, - EndPos: 889, + EndLine: 38, + StartPos: 887, + EndPos: 889, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 38, - EndLine: 38, - StartPos: 887, - EndPos: 889, + EndLine: 38, + StartPos: 887, + EndPos: 889, }, Value: "foo", }, @@ -2421,9 +2417,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 38, - EndLine: 38, - StartPos: 891, - EndPos: 891, + EndLine: 38, + StartPos: 891, + EndPos: 891, }, Value: "0", }, @@ -2434,47 +2430,47 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 39, - EndLine: 39, - StartPos: 899, - EndPos: 919, + EndLine: 39, + StartPos: 899, + EndPos: 919, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 39, - EndLine: 39, - StartPos: 899, - EndPos: 918, + EndLine: 39, + StartPos: 899, + EndPos: 918, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 39, - EndLine: 39, - StartPos: 900, - EndPos: 904, + EndLine: 39, + StartPos: 900, + EndPos: 904, }, Value: "test ", }, &expr.MethodCall{ Position: &position.Position{ StartLine: 39, - EndLine: 39, - StartPos: 906, - EndPos: 916, + EndLine: 39, + StartPos: 906, + EndPos: 916, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 39, - EndLine: 39, - StartPos: 906, - EndPos: 909, + EndLine: 39, + StartPos: 906, + EndPos: 909, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 39, - EndLine: 39, - StartPos: 906, - EndPos: 909, + EndLine: 39, + StartPos: 906, + EndPos: 909, }, Value: "foo", }, @@ -2482,18 +2478,18 @@ func TestPhp5(t *testing.T) { Method: &node.Identifier{ Position: &position.Position{ StartLine: 39, - EndLine: 39, - StartPos: 912, - EndPos: 914, + EndLine: 39, + StartPos: 912, + EndPos: 914, }, Value: "bar", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 39, - EndLine: 39, - StartPos: 915, - EndPos: 916, + EndLine: 39, + StartPos: 915, + EndPos: 916, }, }, }, @@ -2503,23 +2499,23 @@ func TestPhp5(t *testing.T) { &stmt.AltIf{ Position: &position.Position{ StartLine: 41, - EndLine: 42, - StartPos: 924, - EndPos: 941, + EndLine: 42, + StartPos: 924, + EndPos: 941, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 41, - EndLine: 41, - StartPos: 928, - EndPos: 929, + EndLine: 41, + StartPos: 928, + EndPos: 929, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 41, - EndLine: 41, - StartPos: 928, - EndPos: 929, + EndLine: 41, + StartPos: 928, + EndPos: 929, }, Value: "a", }, @@ -2527,34 +2523,33 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, }, &stmt.AltIf{ Position: &position.Position{ StartLine: 43, - EndLine: 45, - StartPos: 945, - EndPos: 977, + EndLine: 45, + StartPos: 945, + EndPos: 977, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 43, - EndLine: 43, - StartPos: 949, - EndPos: 950, + EndLine: 43, + StartPos: 949, + EndPos: 950, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 43, - EndLine: 43, - StartPos: 949, - EndPos: 950, + EndLine: 43, + StartPos: 949, + EndPos: 950, }, Value: "a", }, @@ -2562,34 +2557,33 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, ElseIf: []node.Node{ &stmt.AltElseIf{ Position: &position.Position{ StartLine: 44, - EndLine: -1, - StartPos: 957, - EndPos: -1, + EndLine: -1, + StartPos: 957, + EndPos: -1, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 44, - EndLine: 44, - StartPos: 965, - EndPos: 966, + EndLine: 44, + StartPos: 965, + EndPos: 966, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 44, - EndLine: 44, - StartPos: 965, - EndPos: 966, + EndLine: 44, + StartPos: 965, + EndPos: 966, }, Value: "b", }, @@ -2597,12 +2591,11 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, }, }, @@ -2610,23 +2603,23 @@ func TestPhp5(t *testing.T) { &stmt.AltIf{ Position: &position.Position{ StartLine: 46, - EndLine: 48, - StartPos: 981, - EndPos: 1006, + EndLine: 48, + StartPos: 981, + EndPos: 1006, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 46, - EndLine: 46, - StartPos: 985, - EndPos: 986, + EndLine: 46, + StartPos: 985, + EndPos: 986, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 46, - EndLine: 46, - StartPos: 985, - EndPos: 986, + EndLine: 46, + StartPos: 985, + EndPos: 986, }, Value: "a", }, @@ -2634,52 +2627,50 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, Else: &stmt.AltElse{ Position: &position.Position{ StartLine: 47, - EndLine: -1, - StartPos: 993, - EndPos: -1, + EndLine: -1, + StartPos: 993, + EndPos: -1, }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, }, }, &stmt.AltIf{ Position: &position.Position{ StartLine: 49, - EndLine: 53, - StartPos: 1010, - EndPos: 1065, + EndLine: 53, + StartPos: 1010, + EndPos: 1065, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 49, - EndLine: 49, - StartPos: 1014, - EndPos: 1015, + EndLine: 49, + StartPos: 1014, + EndPos: 1015, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 49, - EndLine: 49, - StartPos: 1014, - EndPos: 1015, + EndLine: 49, + StartPos: 1014, + EndPos: 1015, }, Value: "a", }, @@ -2687,34 +2678,33 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, ElseIf: []node.Node{ &stmt.AltElseIf{ Position: &position.Position{ StartLine: 50, - EndLine: -1, - StartPos: 1022, - EndPos: -1, + EndLine: -1, + StartPos: 1022, + EndPos: -1, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 50, - EndLine: 50, - StartPos: 1030, - EndPos: 1031, + EndLine: 50, + StartPos: 1030, + EndPos: 1031, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 50, - EndLine: 50, - StartPos: 1030, - EndPos: 1031, + EndLine: 50, + StartPos: 1030, + EndPos: 1031, }, Value: "b", }, @@ -2722,34 +2712,33 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, }, &stmt.AltElseIf{ Position: &position.Position{ StartLine: 51, - EndLine: -1, - StartPos: 1037, - EndPos: -1, + EndLine: -1, + StartPos: 1037, + EndPos: -1, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 51, - EndLine: 51, - StartPos: 1045, - EndPos: 1046, + EndLine: 51, + StartPos: 1045, + EndPos: 1046, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 51, - EndLine: 51, - StartPos: 1045, - EndPos: 1046, + EndLine: 51, + StartPos: 1045, + EndPos: 1046, }, Value: "c", }, @@ -2757,64 +2746,62 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, }, }, Else: &stmt.AltElse{ Position: &position.Position{ StartLine: 52, - EndLine: -1, - StartPos: 1052, - EndPos: -1, + EndLine: -1, + StartPos: 1052, + EndPos: -1, }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, }, }, &stmt.While{ Position: &position.Position{ StartLine: 55, - EndLine: 55, - StartPos: 1070, - EndPos: 1089, + EndLine: 55, + StartPos: 1070, + EndPos: 1089, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 55, - EndLine: 55, - StartPos: 1077, - EndPos: 1077, + EndLine: 55, + StartPos: 1077, + EndPos: 1077, }, Value: "1", }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 55, - EndLine: 55, - StartPos: 1080, - EndPos: 1089, + EndLine: 55, + StartPos: 1080, + EndPos: 1089, }, Stmts: []node.Node{ &stmt.Break{ Position: &position.Position{ StartLine: 55, - EndLine: 55, - StartPos: 1082, - EndPos: 1087, + EndLine: 55, + StartPos: 1082, + EndPos: 1087, }, }, }, @@ -2823,40 +2810,40 @@ func TestPhp5(t *testing.T) { &stmt.While{ Position: &position.Position{ StartLine: 56, - EndLine: 56, - StartPos: 1093, - EndPos: 1114, + EndLine: 56, + StartPos: 1093, + EndPos: 1114, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 56, - EndLine: 56, - StartPos: 1100, - EndPos: 1100, + EndLine: 56, + StartPos: 1100, + EndPos: 1100, }, Value: "1", }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 56, - EndLine: 56, - StartPos: 1103, - EndPos: 1114, + EndLine: 56, + StartPos: 1103, + EndPos: 1114, }, Stmts: []node.Node{ &stmt.Break{ Position: &position.Position{ StartLine: 56, - EndLine: 56, - StartPos: 1105, - EndPos: 1112, + EndLine: 56, + StartPos: 1105, + EndPos: 1112, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 56, - EndLine: 56, - StartPos: 1111, - EndPos: 1111, + EndLine: 56, + StartPos: 1111, + EndPos: 1111, }, Value: "2", }, @@ -2867,40 +2854,40 @@ func TestPhp5(t *testing.T) { &stmt.AltWhile{ Position: &position.Position{ StartLine: 57, - EndLine: 57, - StartPos: 1118, - EndPos: 1148, + EndLine: 57, + StartPos: 1118, + EndPos: 1148, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 57, - EndLine: 57, - StartPos: 1125, - EndPos: 1125, + EndLine: 57, + StartPos: 1125, + EndPos: 1125, }, Value: "1", }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 57, - EndLine: 57, - StartPos: 1130, - EndPos: 1138, + EndLine: 57, + StartPos: 1130, + EndPos: 1138, }, Stmts: []node.Node{ &stmt.Break{ Position: &position.Position{ StartLine: 57, - EndLine: 57, - StartPos: 1130, - EndPos: 1138, + EndLine: 57, + StartPos: 1130, + EndPos: 1138, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 57, - EndLine: 57, - StartPos: 1136, - EndPos: 1136, + EndLine: 57, + StartPos: 1136, + EndPos: 1136, }, Value: "3", }, @@ -2911,17 +2898,17 @@ func TestPhp5(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 58, - EndLine: 58, - StartPos: 1152, - EndPos: 1187, + EndLine: 58, + StartPos: 1152, + EndPos: 1187, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 58, - EndLine: 58, - StartPos: 1158, - EndPos: 1160, + EndLine: 58, + StartPos: 1158, + EndPos: 1160, }, Value: "foo", }, @@ -2929,34 +2916,34 @@ func TestPhp5(t *testing.T) { &stmt.ClassConstList{ Position: &position.Position{ StartLine: 58, - EndLine: 58, - StartPos: 1163, - EndPos: 1185, + EndLine: 58, + StartPos: 1163, + EndPos: 1185, }, Consts: []node.Node{ &stmt.Constant{ Position: &position.Position{ StartLine: 58, - EndLine: 58, - StartPos: 1169, - EndPos: 1175, + EndLine: 58, + StartPos: 1169, + EndPos: 1175, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 58, - EndLine: 58, - StartPos: 1169, - EndPos: 1171, + EndLine: 58, + StartPos: 1169, + EndPos: 1171, }, Value: "FOO", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 58, - EndLine: 58, - StartPos: 1175, - EndPos: 1175, + EndLine: 58, + StartPos: 1175, + EndPos: 1175, }, Value: "1", }, @@ -2964,26 +2951,26 @@ func TestPhp5(t *testing.T) { &stmt.Constant{ Position: &position.Position{ StartLine: 58, - EndLine: 58, - StartPos: 1178, - EndPos: 1184, + EndLine: 58, + StartPos: 1178, + EndPos: 1184, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 58, - EndLine: 58, - StartPos: 1178, - EndPos: 1180, + EndLine: 58, + StartPos: 1178, + EndPos: 1180, }, Value: "BAR", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 58, - EndLine: 58, - StartPos: 1184, - EndPos: 1184, + EndLine: 58, + StartPos: 1184, + EndPos: 1184, }, Value: "2", }, @@ -2995,17 +2982,17 @@ func TestPhp5(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 59, - EndLine: 59, - StartPos: 1191, - EndPos: 1220, + EndLine: 59, + StartPos: 1191, + EndPos: 1220, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 59, - EndLine: 59, - StartPos: 1197, - EndPos: 1199, + EndLine: 59, + StartPos: 1197, + EndPos: 1199, }, Value: "foo", }, @@ -3013,30 +3000,29 @@ func TestPhp5(t *testing.T) { &stmt.ClassMethod{ Position: &position.Position{ StartLine: 59, - EndLine: 59, - StartPos: 1202, - EndPos: 1218, + EndLine: 59, + StartPos: 1202, + EndPos: 1218, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", MethodName: &node.Identifier{ Position: &position.Position{ StartLine: 59, - EndLine: 59, - StartPos: 1211, - EndPos: 1213, + EndLine: 59, + StartPos: 1211, + EndPos: 1213, }, Value: "bar", }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 59, - EndLine: 59, - StartPos: 1217, - EndPos: 1218, - }, - Stmts: []node.Node{ + EndLine: 59, + StartPos: 1217, + EndPos: 1218, }, + Stmts: []node.Node{}, }, }, }, @@ -3044,17 +3030,17 @@ func TestPhp5(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 60, - EndLine: 60, - StartPos: 1224, - EndPos: 1268, + EndLine: 60, + StartPos: 1224, + EndPos: 1268, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 60, - EndLine: 60, - StartPos: 1230, - EndPos: 1232, + EndLine: 60, + StartPos: 1230, + EndPos: 1232, }, Value: "foo", }, @@ -3062,18 +3048,18 @@ func TestPhp5(t *testing.T) { &stmt.ClassMethod{ Position: &position.Position{ StartLine: 60, - EndLine: 60, - StartPos: 1235, - EndPos: 1266, + EndLine: 60, + StartPos: 1235, + EndPos: 1266, }, - ReturnsRef: true, + ReturnsRef: true, PhpDocComment: "", MethodName: &node.Identifier{ Position: &position.Position{ StartLine: 60, - EndLine: 60, - StartPos: 1259, - EndPos: 1261, + EndLine: 60, + StartPos: 1259, + EndPos: 1261, }, Value: "bar", }, @@ -3081,18 +3067,18 @@ func TestPhp5(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 60, - EndLine: 60, - StartPos: 1235, - EndPos: 1240, + EndLine: 60, + StartPos: 1235, + EndPos: 1240, }, Value: "public", }, &node.Identifier{ Position: &position.Position{ StartLine: 60, - EndLine: 60, - StartPos: 1242, - EndPos: 1247, + EndLine: 60, + StartPos: 1242, + EndPos: 1247, }, Value: "static", }, @@ -3100,12 +3086,11 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 60, - EndLine: 60, - StartPos: 1265, - EndPos: 1266, - }, - Stmts: []node.Node{ + EndLine: 60, + StartPos: 1265, + EndPos: 1266, }, + Stmts: []node.Node{}, }, }, }, @@ -3113,17 +3098,17 @@ func TestPhp5(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 61, - EndLine: 61, - StartPos: 1272, - EndPos: 1343, + EndLine: 61, + StartPos: 1272, + EndPos: 1343, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 61, - EndLine: 61, - StartPos: 1278, - EndPos: 1280, + EndLine: 61, + StartPos: 1278, + EndPos: 1280, }, Value: "foo", }, @@ -3131,18 +3116,18 @@ func TestPhp5(t *testing.T) { &stmt.ClassMethod{ Position: &position.Position{ StartLine: 61, - EndLine: 61, - StartPos: 1283, - EndPos: 1313, + EndLine: 61, + StartPos: 1283, + EndPos: 1313, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", MethodName: &node.Identifier{ Position: &position.Position{ StartLine: 61, - EndLine: 61, - StartPos: 1306, - EndPos: 1308, + EndLine: 61, + StartPos: 1306, + EndPos: 1308, }, Value: "bar", }, @@ -3150,18 +3135,18 @@ func TestPhp5(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 61, - EndLine: 61, - StartPos: 1283, - EndPos: 1287, + EndLine: 61, + StartPos: 1283, + EndPos: 1287, }, Value: "final", }, &node.Identifier{ Position: &position.Position{ StartLine: 61, - EndLine: 61, - StartPos: 1289, - EndPos: 1295, + EndLine: 61, + StartPos: 1289, + EndPos: 1295, }, Value: "private", }, @@ -3169,29 +3154,28 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 61, - EndLine: 61, - StartPos: 1312, - EndPos: 1313, - }, - Stmts: []node.Node{ + EndLine: 61, + StartPos: 1312, + EndPos: 1313, }, + Stmts: []node.Node{}, }, }, &stmt.ClassMethod{ Position: &position.Position{ StartLine: 61, - EndLine: 61, - StartPos: 1315, - EndPos: 1341, + EndLine: 61, + StartPos: 1315, + EndPos: 1341, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", MethodName: &node.Identifier{ Position: &position.Position{ StartLine: 61, - EndLine: 61, - StartPos: 1334, - EndPos: 1336, + EndLine: 61, + StartPos: 1334, + EndPos: 1336, }, Value: "baz", }, @@ -3199,9 +3183,9 @@ func TestPhp5(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 61, - EndLine: 61, - StartPos: 1315, - EndPos: 1323, + EndLine: 61, + StartPos: 1315, + EndPos: 1323, }, Value: "protected", }, @@ -3209,12 +3193,11 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 61, - EndLine: 61, - StartPos: 1340, - EndPos: 1341, - }, - Stmts: []node.Node{ + EndLine: 61, + StartPos: 1340, + EndPos: 1341, }, + Stmts: []node.Node{}, }, }, }, @@ -3222,17 +3205,17 @@ func TestPhp5(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 62, - EndLine: 62, - StartPos: 1347, - EndPos: 1399, + EndLine: 62, + StartPos: 1347, + EndPos: 1399, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 62, - EndLine: 62, - StartPos: 1362, - EndPos: 1364, + EndLine: 62, + StartPos: 1362, + EndPos: 1364, }, Value: "foo", }, @@ -3240,9 +3223,9 @@ func TestPhp5(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 62, - EndLine: 62, - StartPos: 1347, - EndPos: 1354, + EndLine: 62, + StartPos: 1347, + EndPos: 1354, }, Value: "abstract", }, @@ -3251,18 +3234,18 @@ func TestPhp5(t *testing.T) { &stmt.ClassMethod{ Position: &position.Position{ StartLine: 62, - EndLine: 62, - StartPos: 1367, - EndPos: 1397, + EndLine: 62, + StartPos: 1367, + EndPos: 1397, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", MethodName: &node.Identifier{ Position: &position.Position{ StartLine: 62, - EndLine: 62, - StartPos: 1392, - EndPos: 1394, + EndLine: 62, + StartPos: 1392, + EndPos: 1394, }, Value: "bar", }, @@ -3270,18 +3253,18 @@ func TestPhp5(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 62, - EndLine: 62, - StartPos: 1367, - EndPos: 1374, + EndLine: 62, + StartPos: 1367, + EndPos: 1374, }, Value: "abstract", }, &node.Identifier{ Position: &position.Position{ StartLine: 62, - EndLine: 62, - StartPos: 1376, - EndPos: 1381, + EndLine: 62, + StartPos: 1376, + EndPos: 1381, }, Value: "public", }, @@ -3289,9 +3272,9 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.Nop{ Position: &position.Position{ StartLine: 62, - EndLine: 62, - StartPos: 1397, - EndPos: 1397, + EndLine: 62, + StartPos: 1397, + EndPos: 1397, }, }, }, @@ -3300,17 +3283,17 @@ func TestPhp5(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 63, - EndLine: 63, - StartPos: 1403, - EndPos: 1433, + EndLine: 63, + StartPos: 1403, + EndPos: 1433, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 63, - EndLine: 63, - StartPos: 1415, - EndPos: 1417, + EndLine: 63, + StartPos: 1415, + EndPos: 1417, }, Value: "foo", }, @@ -3318,9 +3301,9 @@ func TestPhp5(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 63, - EndLine: 63, - StartPos: 1403, - EndPos: 1407, + EndLine: 63, + StartPos: 1403, + EndPos: 1407, }, Value: "final", }, @@ -3328,47 +3311,46 @@ func TestPhp5(t *testing.T) { Extends: &stmt.ClassExtends{ Position: &position.Position{ StartLine: 63, - EndLine: 63, - StartPos: 1419, - EndPos: 1429, + EndLine: 63, + StartPos: 1419, + EndPos: 1429, }, ClassName: &name.Name{ Position: &position.Position{ StartLine: 63, - EndLine: 63, - StartPos: 1427, - EndPos: 1429, + EndLine: 63, + StartPos: 1427, + EndPos: 1429, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 63, - EndLine: 63, - StartPos: 1427, - EndPos: 1429, + EndLine: 63, + StartPos: 1427, + EndPos: 1429, }, Value: "bar", }, }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Class{ Position: &position.Position{ StartLine: 64, - EndLine: 64, - StartPos: 1437, - EndPos: 1470, + EndLine: 64, + StartPos: 1437, + EndPos: 1470, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 64, - EndLine: 64, - StartPos: 1449, - EndPos: 1451, + EndLine: 64, + StartPos: 1449, + EndPos: 1451, }, Value: "foo", }, @@ -3376,9 +3358,9 @@ func TestPhp5(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 64, - EndLine: 64, - StartPos: 1437, - EndPos: 1441, + EndLine: 64, + StartPos: 1437, + EndPos: 1441, }, Value: "final", }, @@ -3386,25 +3368,25 @@ func TestPhp5(t *testing.T) { Implements: &stmt.ClassImplements{ Position: &position.Position{ StartLine: 64, - EndLine: 64, - StartPos: 1453, - EndPos: 1466, + EndLine: 64, + StartPos: 1453, + EndPos: 1466, }, InterfaceNames: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 64, - EndLine: 64, - StartPos: 1464, - EndPos: 1466, + EndLine: 64, + StartPos: 1464, + EndPos: 1466, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 64, - EndLine: 64, - StartPos: 1464, - EndPos: 1466, + EndLine: 64, + StartPos: 1464, + EndPos: 1466, }, Value: "bar", }, @@ -3412,23 +3394,22 @@ func TestPhp5(t *testing.T) { }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Class{ Position: &position.Position{ StartLine: 65, - EndLine: 65, - StartPos: 1474, - EndPos: 1512, + EndLine: 65, + StartPos: 1474, + EndPos: 1512, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 65, - EndLine: 65, - StartPos: 1486, - EndPos: 1488, + EndLine: 65, + StartPos: 1486, + EndPos: 1488, }, Value: "foo", }, @@ -3436,9 +3417,9 @@ func TestPhp5(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 65, - EndLine: 65, - StartPos: 1474, - EndPos: 1478, + EndLine: 65, + StartPos: 1474, + EndPos: 1478, }, Value: "final", }, @@ -3446,25 +3427,25 @@ func TestPhp5(t *testing.T) { Implements: &stmt.ClassImplements{ Position: &position.Position{ StartLine: 65, - EndLine: 65, - StartPos: 1490, - EndPos: 1508, + EndLine: 65, + StartPos: 1490, + EndPos: 1508, }, InterfaceNames: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 65, - EndLine: 65, - StartPos: 1501, - EndPos: 1503, + EndLine: 65, + StartPos: 1501, + EndPos: 1503, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 65, - EndLine: 65, - StartPos: 1501, - EndPos: 1503, + EndLine: 65, + StartPos: 1501, + EndPos: 1503, }, Value: "bar", }, @@ -3473,17 +3454,17 @@ func TestPhp5(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 65, - EndLine: 65, - StartPos: 1506, - EndPos: 1508, + EndLine: 65, + StartPos: 1506, + EndPos: 1508, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 65, - EndLine: 65, - StartPos: 1506, - EndPos: 1508, + EndLine: 65, + StartPos: 1506, + EndPos: 1508, }, Value: "baz", }, @@ -3491,40 +3472,39 @@ func TestPhp5(t *testing.T) { }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.ConstList{ Position: &position.Position{ StartLine: 67, - EndLine: 67, - StartPos: 1517, - EndPos: 1539, + EndLine: 67, + StartPos: 1517, + EndPos: 1539, }, Consts: []node.Node{ &stmt.Constant{ Position: &position.Position{ StartLine: 67, - EndLine: 67, - StartPos: 1523, - EndPos: 1529, + EndLine: 67, + StartPos: 1523, + EndPos: 1529, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 67, - EndLine: 67, - StartPos: 1523, - EndPos: 1525, + EndLine: 67, + StartPos: 1523, + EndPos: 1525, }, Value: "FOO", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 67, - EndLine: 67, - StartPos: 1529, - EndPos: 1529, + EndLine: 67, + StartPos: 1529, + EndPos: 1529, }, Value: "1", }, @@ -3532,26 +3512,26 @@ func TestPhp5(t *testing.T) { &stmt.Constant{ Position: &position.Position{ StartLine: 67, - EndLine: 67, - StartPos: 1532, - EndPos: 1538, + EndLine: 67, + StartPos: 1532, + EndPos: 1538, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 67, - EndLine: 67, - StartPos: 1532, - EndPos: 1534, + EndLine: 67, + StartPos: 1532, + EndPos: 1534, }, Value: "BAR", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 67, - EndLine: 67, - StartPos: 1538, - EndPos: 1538, + EndLine: 67, + StartPos: 1538, + EndPos: 1538, }, Value: "2", }, @@ -3561,33 +3541,33 @@ func TestPhp5(t *testing.T) { &stmt.While{ Position: &position.Position{ StartLine: 68, - EndLine: 68, - StartPos: 1543, - EndPos: 1565, + EndLine: 68, + StartPos: 1543, + EndPos: 1565, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 68, - EndLine: 68, - StartPos: 1550, - EndPos: 1550, + EndLine: 68, + StartPos: 1550, + EndPos: 1550, }, Value: "1", }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 68, - EndLine: 68, - StartPos: 1553, - EndPos: 1565, + EndLine: 68, + StartPos: 1553, + EndPos: 1565, }, Stmts: []node.Node{ &stmt.Continue{ Position: &position.Position{ StartLine: 68, - EndLine: 68, - StartPos: 1555, - EndPos: 1563, + EndLine: 68, + StartPos: 1555, + EndPos: 1563, }, }, }, @@ -3596,40 +3576,40 @@ func TestPhp5(t *testing.T) { &stmt.While{ Position: &position.Position{ StartLine: 69, - EndLine: 69, - StartPos: 1569, - EndPos: 1593, + EndLine: 69, + StartPos: 1569, + EndPos: 1593, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 69, - EndLine: 69, - StartPos: 1576, - EndPos: 1576, + EndLine: 69, + StartPos: 1576, + EndPos: 1576, }, Value: "1", }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 69, - EndLine: 69, - StartPos: 1579, - EndPos: 1593, + EndLine: 69, + StartPos: 1579, + EndPos: 1593, }, Stmts: []node.Node{ &stmt.Continue{ Position: &position.Position{ StartLine: 69, - EndLine: 69, - StartPos: 1581, - EndPos: 1591, + EndLine: 69, + StartPos: 1581, + EndPos: 1591, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 69, - EndLine: 69, - StartPos: 1590, - EndPos: 1590, + EndLine: 69, + StartPos: 1590, + EndPos: 1590, }, Value: "2", }, @@ -3640,40 +3620,40 @@ func TestPhp5(t *testing.T) { &stmt.While{ Position: &position.Position{ StartLine: 70, - EndLine: 70, - StartPos: 1597, - EndPos: 1622, + EndLine: 70, + StartPos: 1597, + EndPos: 1622, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 70, - EndLine: 70, - StartPos: 1604, - EndPos: 1604, + EndLine: 70, + StartPos: 1604, + EndPos: 1604, }, Value: "1", }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 70, - EndLine: 70, - StartPos: 1607, - EndPos: 1622, + EndLine: 70, + StartPos: 1607, + EndPos: 1622, }, Stmts: []node.Node{ &stmt.Continue{ Position: &position.Position{ StartLine: 70, - EndLine: 70, - StartPos: 1609, - EndPos: 1620, + EndLine: 70, + StartPos: 1609, + EndPos: 1620, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 70, - EndLine: 70, - StartPos: 1618, - EndPos: 1618, + EndLine: 70, + StartPos: 1618, + EndPos: 1618, }, Value: "3", }, @@ -3684,34 +3664,34 @@ func TestPhp5(t *testing.T) { &stmt.Declare{ Position: &position.Position{ StartLine: 71, - EndLine: 71, - StartPos: 1626, - EndPos: 1642, + EndLine: 71, + StartPos: 1626, + EndPos: 1642, }, Consts: []node.Node{ &stmt.Constant{ Position: &position.Position{ StartLine: 71, - EndLine: 71, - StartPos: 1634, - EndPos: 1640, + EndLine: 71, + StartPos: 1634, + EndPos: 1640, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 71, - EndLine: 71, - StartPos: 1634, - EndPos: 1638, + EndLine: 71, + StartPos: 1634, + EndPos: 1638, }, Value: "ticks", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 71, - EndLine: 71, - StartPos: 1640, - EndPos: 1640, + EndLine: 71, + StartPos: 1640, + EndPos: 1640, }, Value: "1", }, @@ -3720,43 +3700,43 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.Nop{ Position: &position.Position{ StartLine: 71, - EndLine: 71, - StartPos: 1642, - EndPos: 1642, + EndLine: 71, + StartPos: 1642, + EndPos: 1642, }, }, }, &stmt.Declare{ Position: &position.Position{ StartLine: 72, - EndLine: 72, - StartPos: 1646, - EndPos: 1680, + EndLine: 72, + StartPos: 1646, + EndPos: 1680, }, Consts: []node.Node{ &stmt.Constant{ Position: &position.Position{ StartLine: 72, - EndLine: 72, - StartPos: 1654, - EndPos: 1660, + EndLine: 72, + StartPos: 1654, + EndPos: 1660, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 72, - EndLine: 72, - StartPos: 1654, - EndPos: 1658, + EndLine: 72, + StartPos: 1654, + EndPos: 1658, }, Value: "ticks", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 72, - EndLine: 72, - StartPos: 1660, - EndPos: 1660, + EndLine: 72, + StartPos: 1660, + EndPos: 1660, }, Value: "1", }, @@ -3764,26 +3744,26 @@ func TestPhp5(t *testing.T) { &stmt.Constant{ Position: &position.Position{ StartLine: 72, - EndLine: 72, - StartPos: 1663, - EndPos: 1676, + EndLine: 72, + StartPos: 1663, + EndPos: 1676, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 72, - EndLine: 72, - StartPos: 1663, - EndPos: 1674, + EndLine: 72, + StartPos: 1663, + EndPos: 1674, }, Value: "strict_types", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 72, - EndLine: 72, - StartPos: 1676, - EndPos: 1676, + EndLine: 72, + StartPos: 1676, + EndPos: 1676, }, Value: "1", }, @@ -3792,45 +3772,44 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 72, - EndLine: 72, - StartPos: 1679, - EndPos: 1680, - }, - Stmts: []node.Node{ + EndLine: 72, + StartPos: 1679, + EndPos: 1680, }, + Stmts: []node.Node{}, }, }, &stmt.Declare{ Position: &position.Position{ StartLine: 73, - EndLine: 73, - StartPos: 1684, - EndPos: 1712, + EndLine: 73, + StartPos: 1684, + EndPos: 1712, }, Consts: []node.Node{ &stmt.Constant{ Position: &position.Position{ StartLine: 73, - EndLine: 73, - StartPos: 1692, - EndPos: 1698, + EndLine: 73, + StartPos: 1692, + EndPos: 1698, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 73, - EndLine: 73, - StartPos: 1692, - EndPos: 1696, + EndLine: 73, + StartPos: 1692, + EndPos: 1696, }, Value: "ticks", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 73, - EndLine: 73, - StartPos: 1698, - EndPos: 1698, + EndLine: 73, + StartPos: 1698, + EndPos: 1698, }, Value: "1", }, @@ -3839,37 +3818,35 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 73, - EndLine: 73, - StartPos: 1700, - EndPos: 1712, - }, - Stmts: []node.Node{ + EndLine: 73, + StartPos: 1700, + EndPos: 1712, }, + Stmts: []node.Node{}, }, }, &stmt.Do{ Position: &position.Position{ StartLine: 74, - EndLine: 74, - StartPos: 1716, - EndPos: 1730, + EndLine: 74, + StartPos: 1716, + EndPos: 1730, }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 74, - EndLine: 74, - StartPos: 1719, - EndPos: 1720, - }, - Stmts: []node.Node{ + EndLine: 74, + StartPos: 1719, + EndPos: 1720, }, + Stmts: []node.Node{}, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 74, - EndLine: 74, - StartPos: 1728, - EndPos: 1728, + EndLine: 74, + StartPos: 1728, + EndPos: 1728, }, Value: "1", }, @@ -3877,24 +3854,24 @@ func TestPhp5(t *testing.T) { &stmt.Echo{ Position: &position.Position{ StartLine: 75, - EndLine: 75, - StartPos: 1734, - EndPos: 1744, + EndLine: 75, + StartPos: 1734, + EndPos: 1744, }, Exprs: []node.Node{ &expr.Variable{ Position: &position.Position{ StartLine: 75, - EndLine: 75, - StartPos: 1739, - EndPos: 1740, + EndLine: 75, + StartPos: 1739, + EndPos: 1740, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 75, - EndLine: 75, - StartPos: 1739, - EndPos: 1740, + EndLine: 75, + StartPos: 1739, + EndPos: 1740, }, Value: "a", }, @@ -3902,9 +3879,9 @@ func TestPhp5(t *testing.T) { &scalar.Lnumber{ Position: &position.Position{ StartLine: 75, - EndLine: 75, - StartPos: 1743, - EndPos: 1743, + EndLine: 75, + StartPos: 1743, + EndPos: 1743, }, Value: "1", }, @@ -3913,24 +3890,24 @@ func TestPhp5(t *testing.T) { &stmt.Echo{ Position: &position.Position{ StartLine: 76, - EndLine: 76, - StartPos: 1748, - EndPos: 1756, + EndLine: 76, + StartPos: 1748, + EndPos: 1756, }, Exprs: []node.Node{ &expr.Variable{ Position: &position.Position{ StartLine: 76, - EndLine: 76, - StartPos: 1753, - EndPos: 1754, + EndLine: 76, + StartPos: 1753, + EndPos: 1754, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 76, - EndLine: 76, - StartPos: 1753, - EndPos: 1754, + EndLine: 76, + StartPos: 1753, + EndPos: 1754, }, Value: "a", }, @@ -3940,31 +3917,31 @@ func TestPhp5(t *testing.T) { &stmt.For{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1760, - EndPos: 1794, + EndLine: 77, + StartPos: 1760, + EndPos: 1794, }, Init: []node.Node{ &assign.Assign{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1764, - EndPos: 1769, + EndLine: 77, + StartPos: 1764, + EndPos: 1769, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1764, - EndPos: 1765, + EndLine: 77, + StartPos: 1764, + EndPos: 1765, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1764, - EndPos: 1765, + EndLine: 77, + StartPos: 1764, + EndPos: 1765, }, Value: "i", }, @@ -3972,9 +3949,9 @@ func TestPhp5(t *testing.T) { Expression: &scalar.Lnumber{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1769, - EndPos: 1769, + EndLine: 77, + StartPos: 1769, + EndPos: 1769, }, Value: "0", }, @@ -3984,23 +3961,23 @@ func TestPhp5(t *testing.T) { &binary.Smaller{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1772, - EndPos: 1778, + EndLine: 77, + StartPos: 1772, + EndPos: 1778, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1772, - EndPos: 1773, + EndLine: 77, + StartPos: 1772, + EndPos: 1773, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1772, - EndPos: 1773, + EndLine: 77, + StartPos: 1772, + EndPos: 1773, }, Value: "i", }, @@ -4008,9 +3985,9 @@ func TestPhp5(t *testing.T) { Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1777, - EndPos: 1778, + EndLine: 77, + StartPos: 1777, + EndPos: 1778, }, Value: "10", }, @@ -4020,23 +3997,23 @@ func TestPhp5(t *testing.T) { &expr.PostInc{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1781, - EndPos: 1784, + EndLine: 77, + StartPos: 1781, + EndPos: 1784, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1781, - EndPos: 1782, + EndLine: 77, + StartPos: 1781, + EndPos: 1782, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1781, - EndPos: 1782, + EndLine: 77, + StartPos: 1781, + EndPos: 1782, }, Value: "i", }, @@ -4045,23 +4022,23 @@ func TestPhp5(t *testing.T) { &expr.PostInc{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1787, - EndPos: 1790, + EndLine: 77, + StartPos: 1787, + EndPos: 1790, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1787, - EndPos: 1788, + EndLine: 77, + StartPos: 1787, + EndPos: 1788, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1787, - EndPos: 1788, + EndLine: 77, + StartPos: 1787, + EndPos: 1788, }, Value: "i", }, @@ -4071,42 +4048,41 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1793, - EndPos: 1794, - }, - Stmts: []node.Node{ + EndLine: 77, + StartPos: 1793, + EndPos: 1794, }, + Stmts: []node.Node{}, }, }, &stmt.AltFor{ Position: &position.Position{ StartLine: 78, - EndLine: 78, - StartPos: 1798, - EndPos: 1827, + EndLine: 78, + StartPos: 1798, + EndPos: 1827, }, Cond: []node.Node{ &binary.Smaller{ Position: &position.Position{ StartLine: 78, - EndLine: 78, - StartPos: 1804, - EndPos: 1810, + EndLine: 78, + StartPos: 1804, + EndPos: 1810, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 78, - EndLine: 78, - StartPos: 1804, - EndPos: 1805, + EndLine: 78, + StartPos: 1804, + EndPos: 1805, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 78, - EndLine: 78, - StartPos: 1804, - EndPos: 1805, + EndLine: 78, + StartPos: 1804, + EndPos: 1805, }, Value: "i", }, @@ -4114,9 +4090,9 @@ func TestPhp5(t *testing.T) { Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 78, - EndLine: 78, - StartPos: 1809, - EndPos: 1810, + EndLine: 78, + StartPos: 1809, + EndPos: 1810, }, Value: "10", }, @@ -4126,23 +4102,23 @@ func TestPhp5(t *testing.T) { &expr.PostInc{ Position: &position.Position{ StartLine: 78, - EndLine: 78, - StartPos: 1813, - EndPos: 1816, + EndLine: 78, + StartPos: 1813, + EndPos: 1816, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 78, - EndLine: 78, - StartPos: 1813, - EndPos: 1814, + EndLine: 78, + StartPos: 1813, + EndPos: 1814, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 78, - EndLine: 78, - StartPos: 1813, - EndPos: 1814, + EndLine: 78, + StartPos: 1813, + EndPos: 1814, }, Value: "i", }, @@ -4152,34 +4128,33 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, }, &stmt.Foreach{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1831, - EndPos: 1851, + EndLine: 79, + StartPos: 1831, + EndPos: 1851, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1840, - EndPos: 1841, + EndLine: 79, + StartPos: 1840, + EndPos: 1841, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1840, - EndPos: 1841, + EndLine: 79, + StartPos: 1840, + EndPos: 1841, }, Value: "a", }, @@ -4187,16 +4162,16 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1846, - EndPos: 1847, + EndLine: 79, + StartPos: 1846, + EndPos: 1847, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1846, - EndPos: 1847, + EndLine: 79, + StartPos: 1846, + EndPos: 1847, }, Value: "v", }, @@ -4204,44 +4179,42 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1850, - EndPos: 1851, - }, - Stmts: []node.Node{ + EndLine: 79, + StartPos: 1850, + EndPos: 1851, }, + Stmts: []node.Node{}, }, }, &stmt.Foreach{ Position: &position.Position{ StartLine: 80, - EndLine: 80, - StartPos: 1855, - EndPos: 1875, + EndLine: 80, + StartPos: 1855, + EndPos: 1875, }, Expr: &expr.ShortArray{ Position: &position.Position{ StartLine: 80, - EndLine: 80, - StartPos: 1864, - EndPos: 1865, - }, - Items: []node.Node{ + EndLine: 80, + StartPos: 1864, + EndPos: 1865, }, + Items: []node.Node{}, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 80, - EndLine: 80, - StartPos: 1870, - EndPos: 1871, + EndLine: 80, + StartPos: 1870, + EndPos: 1871, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 80, - EndLine: 80, - StartPos: 1870, - EndPos: 1871, + EndLine: 80, + StartPos: 1870, + EndPos: 1871, }, Value: "v", }, @@ -4249,34 +4222,33 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 80, - EndLine: 80, - StartPos: 1874, - EndPos: 1875, - }, - Stmts: []node.Node{ + EndLine: 80, + StartPos: 1874, + EndPos: 1875, }, + Stmts: []node.Node{}, }, }, &stmt.AltForeach{ Position: &position.Position{ StartLine: 81, - EndLine: 81, - StartPos: 1879, - EndPos: 1910, + EndLine: 81, + StartPos: 1879, + EndPos: 1910, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 81, - EndLine: 81, - StartPos: 1888, - EndPos: 1889, + EndLine: 81, + StartPos: 1888, + EndPos: 1889, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 81, - EndLine: 81, - StartPos: 1888, - EndPos: 1889, + EndLine: 81, + StartPos: 1888, + EndPos: 1889, }, Value: "a", }, @@ -4284,16 +4256,16 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 81, - EndLine: 81, - StartPos: 1894, - EndPos: 1895, + EndLine: 81, + StartPos: 1894, + EndPos: 1895, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 81, - EndLine: 81, - StartPos: 1894, - EndPos: 1895, + EndLine: 81, + StartPos: 1894, + EndPos: 1895, }, Value: "v", }, @@ -4301,34 +4273,33 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, }, &stmt.Foreach{ Position: &position.Position{ StartLine: 82, - EndLine: 82, - StartPos: 1914, - EndPos: 1940, + EndLine: 82, + StartPos: 1914, + EndPos: 1940, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 82, - EndLine: 82, - StartPos: 1923, - EndPos: 1924, + EndLine: 82, + StartPos: 1923, + EndPos: 1924, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 82, - EndLine: 82, - StartPos: 1923, - EndPos: 1924, + EndLine: 82, + StartPos: 1923, + EndPos: 1924, }, Value: "a", }, @@ -4336,16 +4307,16 @@ func TestPhp5(t *testing.T) { Key: &expr.Variable{ Position: &position.Position{ StartLine: 82, - EndLine: 82, - StartPos: 1929, - EndPos: 1930, + EndLine: 82, + StartPos: 1929, + EndPos: 1930, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 82, - EndLine: 82, - StartPos: 1929, - EndPos: 1930, + EndLine: 82, + StartPos: 1929, + EndPos: 1930, }, Value: "k", }, @@ -4353,16 +4324,16 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 82, - EndLine: 82, - StartPos: 1935, - EndPos: 1936, + EndLine: 82, + StartPos: 1935, + EndPos: 1936, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 82, - EndLine: 82, - StartPos: 1935, - EndPos: 1936, + EndLine: 82, + StartPos: 1935, + EndPos: 1936, }, Value: "v", }, @@ -4370,44 +4341,42 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 82, - EndLine: 82, - StartPos: 1939, - EndPos: 1940, - }, - Stmts: []node.Node{ + EndLine: 82, + StartPos: 1939, + EndPos: 1940, }, + Stmts: []node.Node{}, }, }, &stmt.Foreach{ Position: &position.Position{ StartLine: 83, - EndLine: 83, - StartPos: 1944, - EndPos: 1970, + EndLine: 83, + StartPos: 1944, + EndPos: 1970, }, Expr: &expr.ShortArray{ Position: &position.Position{ StartLine: 83, - EndLine: 83, - StartPos: 1953, - EndPos: 1954, - }, - Items: []node.Node{ + EndLine: 83, + StartPos: 1953, + EndPos: 1954, }, + Items: []node.Node{}, }, Key: &expr.Variable{ Position: &position.Position{ StartLine: 83, - EndLine: 83, - StartPos: 1959, - EndPos: 1960, + EndLine: 83, + StartPos: 1959, + EndPos: 1960, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 83, - EndLine: 83, - StartPos: 1959, - EndPos: 1960, + EndLine: 83, + StartPos: 1959, + EndPos: 1960, }, Value: "k", }, @@ -4415,16 +4384,16 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 83, - EndLine: 83, - StartPos: 1965, - EndPos: 1966, + EndLine: 83, + StartPos: 1965, + EndPos: 1966, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 83, - EndLine: 83, - StartPos: 1965, - EndPos: 1966, + EndLine: 83, + StartPos: 1965, + EndPos: 1966, }, Value: "v", }, @@ -4432,34 +4401,33 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 83, - EndLine: 83, - StartPos: 1969, - EndPos: 1970, - }, - Stmts: []node.Node{ + EndLine: 83, + StartPos: 1969, + EndPos: 1970, }, + Stmts: []node.Node{}, }, }, &stmt.Foreach{ Position: &position.Position{ StartLine: 84, - EndLine: 84, - StartPos: 1974, - EndPos: 2001, + EndLine: 84, + StartPos: 1974, + EndPos: 2001, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 84, - EndLine: 84, - StartPos: 1983, - EndPos: 1984, + EndLine: 84, + StartPos: 1983, + EndPos: 1984, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 84, - EndLine: 84, - StartPos: 1983, - EndPos: 1984, + EndLine: 84, + StartPos: 1983, + EndPos: 1984, }, Value: "a", }, @@ -4467,16 +4435,16 @@ func TestPhp5(t *testing.T) { Key: &expr.Variable{ Position: &position.Position{ StartLine: 84, - EndLine: 84, - StartPos: 1989, - EndPos: 1990, + EndLine: 84, + StartPos: 1989, + EndPos: 1990, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 84, - EndLine: 84, - StartPos: 1989, - EndPos: 1990, + EndLine: 84, + StartPos: 1989, + EndPos: 1990, }, Value: "k", }, @@ -4484,23 +4452,23 @@ func TestPhp5(t *testing.T) { Variable: &expr.Reference{ Position: &position.Position{ StartLine: 84, - EndLine: 84, - StartPos: 1995, - EndPos: 1997, + EndLine: 84, + StartPos: 1995, + EndPos: 1997, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 84, - EndLine: 84, - StartPos: 1996, - EndPos: 1997, + EndLine: 84, + StartPos: 1996, + EndPos: 1997, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 84, - EndLine: 84, - StartPos: 1996, - EndPos: 1997, + EndLine: 84, + StartPos: 1996, + EndPos: 1997, }, Value: "v", }, @@ -4509,34 +4477,33 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 84, - EndLine: 84, - StartPos: 2000, - EndPos: 2001, - }, - Stmts: []node.Node{ + EndLine: 84, + StartPos: 2000, + EndPos: 2001, }, + Stmts: []node.Node{}, }, }, &stmt.Foreach{ Position: &position.Position{ StartLine: 85, - EndLine: 85, - StartPos: 2005, - EndPos: 2037, + EndLine: 85, + StartPos: 2005, + EndPos: 2037, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 85, - EndLine: 85, - StartPos: 2014, - EndPos: 2015, + EndLine: 85, + StartPos: 2014, + EndPos: 2015, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 85, - EndLine: 85, - StartPos: 2014, - EndPos: 2015, + EndLine: 85, + StartPos: 2014, + EndPos: 2015, }, Value: "a", }, @@ -4544,16 +4511,16 @@ func TestPhp5(t *testing.T) { Key: &expr.Variable{ Position: &position.Position{ StartLine: 85, - EndLine: 85, - StartPos: 2020, - EndPos: 2021, + EndLine: 85, + StartPos: 2020, + EndPos: 2021, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 85, - EndLine: 85, - StartPos: 2020, - EndPos: 2021, + EndLine: 85, + StartPos: 2020, + EndPos: 2021, }, Value: "k", }, @@ -4561,31 +4528,31 @@ func TestPhp5(t *testing.T) { Variable: &expr.List{ Position: &position.Position{ StartLine: 85, - EndLine: 85, - StartPos: 2026, - EndPos: 2033, + EndLine: 85, + StartPos: 2026, + EndPos: 2033, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 85, - EndLine: 85, - StartPos: 2031, - EndPos: 2032, + EndLine: 85, + StartPos: 2031, + EndPos: 2032, }, Val: &expr.Variable{ Position: &position.Position{ StartLine: 85, - EndLine: 85, - StartPos: 2031, - EndPos: 2032, + EndLine: 85, + StartPos: 2031, + EndPos: 2032, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 85, - EndLine: 85, - StartPos: 2031, - EndPos: 2032, + EndLine: 85, + StartPos: 2031, + EndPos: 2032, }, Value: "v", }, @@ -4596,50 +4563,48 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 85, - EndLine: 85, - StartPos: 2036, - EndPos: 2037, - }, - Stmts: []node.Node{ + EndLine: 85, + StartPos: 2036, + EndPos: 2037, }, + Stmts: []node.Node{}, }, }, &stmt.Function{ Position: &position.Position{ StartLine: 86, - EndLine: 86, - StartPos: 2041, - EndPos: 2057, + EndLine: 86, + StartPos: 2041, + EndPos: 2057, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", FunctionName: &node.Identifier{ Position: &position.Position{ StartLine: 86, - EndLine: 86, - StartPos: 2050, - EndPos: 2052, + EndLine: 86, + StartPos: 2050, + EndPos: 2052, }, Value: "foo", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Function{ Position: &position.Position{ StartLine: 88, - EndLine: 93, - StartPos: 2062, - EndPos: 2154, + EndLine: 93, + StartPos: 2062, + EndPos: 2154, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", FunctionName: &node.Identifier{ Position: &position.Position{ StartLine: 88, - EndLine: 88, - StartPos: 2071, - EndPos: 2073, + EndLine: 88, + StartPos: 2071, + EndPos: 2073, }, Value: "foo", }, @@ -4647,72 +4612,70 @@ func TestPhp5(t *testing.T) { &stmt.HaltCompiler{ Position: &position.Position{ StartLine: 89, - EndLine: 89, - StartPos: 2082, - EndPos: 2099, + EndLine: 89, + StartPos: 2082, + EndPos: 2099, }, }, &stmt.Function{ Position: &position.Position{ StartLine: 90, - EndLine: 90, - StartPos: 2104, - EndPos: 2120, + EndLine: 90, + StartPos: 2104, + EndPos: 2120, }, PhpDocComment: "", - ReturnsRef: false, + ReturnsRef: false, FunctionName: &node.Identifier{ Position: &position.Position{ StartLine: 90, - EndLine: 90, - StartPos: 2113, - EndPos: 2115, + EndLine: 90, + StartPos: 2113, + EndPos: 2115, }, Value: "bar", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Class{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2125, - EndPos: 2136, + EndLine: 91, + StartPos: 2125, + EndPos: 2136, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2131, - EndPos: 2133, + EndLine: 91, + StartPos: 2131, + EndPos: 2133, }, Value: "Baz", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Return{ Position: &position.Position{ StartLine: 92, - EndLine: 92, - StartPos: 2141, - EndPos: 2150, + EndLine: 92, + StartPos: 2141, + EndPos: 2150, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 92, - EndLine: 92, - StartPos: 2148, - EndPos: 2149, + EndLine: 92, + StartPos: 2148, + EndPos: 2149, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 92, - EndLine: 92, - StartPos: 2148, - EndPos: 2149, + EndLine: 92, + StartPos: 2148, + EndPos: 2149, }, Value: "a", }, @@ -4723,18 +4686,18 @@ func TestPhp5(t *testing.T) { &stmt.Function{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2161, - EndPos: 2205, + EndLine: 95, + StartPos: 2161, + EndPos: 2205, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", FunctionName: &node.Identifier{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2170, - EndPos: 2172, + EndLine: 95, + StartPos: 2170, + EndPos: 2172, }, Value: "foo", }, @@ -4742,34 +4705,34 @@ func TestPhp5(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2174, - EndPos: 2181, + EndLine: 95, + StartPos: 2174, + EndPos: 2181, }, - ByRef: false, + ByRef: false, Variadic: false, VariableType: &node.Identifier{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2174, - EndPos: 2178, + EndLine: 95, + StartPos: 2174, + EndPos: 2178, }, Value: "array", }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2180, - EndPos: 2181, + EndLine: 95, + StartPos: 2180, + EndPos: 2181, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2180, - EndPos: 2181, + EndLine: 95, + StartPos: 2180, + EndPos: 2181, }, Value: "a", }, @@ -4778,34 +4741,34 @@ func TestPhp5(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2184, - EndPos: 2194, + EndLine: 95, + StartPos: 2184, + EndPos: 2194, }, - ByRef: false, + ByRef: false, Variadic: false, VariableType: &node.Identifier{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2184, - EndPos: 2191, + EndLine: 95, + StartPos: 2184, + EndPos: 2191, }, Value: "callable", }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2193, - EndPos: 2194, + EndLine: 95, + StartPos: 2193, + EndPos: 2194, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2193, - EndPos: 2194, + EndLine: 95, + StartPos: 2193, + EndPos: 2194, }, Value: "b", }, @@ -4816,9 +4779,9 @@ func TestPhp5(t *testing.T) { &stmt.Return{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2198, - EndPos: 2204, + EndLine: 95, + StartPos: 2198, + EndPos: 2204, }, }, }, @@ -4826,18 +4789,18 @@ func TestPhp5(t *testing.T) { &stmt.Function{ Position: &position.Position{ StartLine: 96, - EndLine: 96, - StartPos: 2209, - EndPos: 2235, + EndLine: 96, + StartPos: 2209, + EndPos: 2235, }, - ReturnsRef: true, + ReturnsRef: true, PhpDocComment: "", FunctionName: &node.Identifier{ Position: &position.Position{ StartLine: 96, - EndLine: 96, - StartPos: 2219, - EndPos: 2221, + EndLine: 96, + StartPos: 2219, + EndPos: 2221, }, Value: "foo", }, @@ -4845,16 +4808,16 @@ func TestPhp5(t *testing.T) { &stmt.Return{ Position: &position.Position{ StartLine: 96, - EndLine: 96, - StartPos: 2226, - EndPos: 2234, + EndLine: 96, + StartPos: 2226, + EndPos: 2234, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 96, - EndLine: 96, - StartPos: 2233, - EndPos: 2233, + EndLine: 96, + StartPos: 2233, + EndPos: 2233, }, Value: "1", }, @@ -4864,45 +4827,44 @@ func TestPhp5(t *testing.T) { &stmt.Function{ Position: &position.Position{ StartLine: 97, - EndLine: 97, - StartPos: 2239, - EndPos: 2256, + EndLine: 97, + StartPos: 2239, + EndPos: 2256, }, - ReturnsRef: true, + ReturnsRef: true, PhpDocComment: "", FunctionName: &node.Identifier{ Position: &position.Position{ StartLine: 97, - EndLine: 97, - StartPos: 2249, - EndPos: 2251, + EndLine: 97, + StartPos: 2249, + EndPos: 2251, }, Value: "foo", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Global{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2260, - EndPos: 2288, + EndLine: 98, + StartPos: 2260, + EndPos: 2288, }, Vars: []node.Node{ &expr.Variable{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2267, - EndPos: 2268, + EndLine: 98, + StartPos: 2267, + EndPos: 2268, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2267, - EndPos: 2268, + EndLine: 98, + StartPos: 2267, + EndPos: 2268, }, Value: "a", }, @@ -4910,16 +4872,16 @@ func TestPhp5(t *testing.T) { &expr.Variable{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2271, - EndPos: 2272, + EndLine: 98, + StartPos: 2271, + EndPos: 2272, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2271, - EndPos: 2272, + EndLine: 98, + StartPos: 2271, + EndPos: 2272, }, Value: "b", }, @@ -4927,23 +4889,23 @@ func TestPhp5(t *testing.T) { &expr.Variable{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2275, - EndPos: 2277, + EndLine: 98, + StartPos: 2275, + EndPos: 2277, }, VarName: &expr.Variable{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2276, - EndPos: 2277, + EndLine: 98, + StartPos: 2276, + EndPos: 2277, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2276, - EndPos: 2277, + EndLine: 98, + StartPos: 2276, + EndPos: 2277, }, Value: "c", }, @@ -4952,31 +4914,31 @@ func TestPhp5(t *testing.T) { &expr.Variable{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2280, - EndPos: 2287, + EndLine: 98, + StartPos: 2280, + EndPos: 2287, }, VarName: &expr.FunctionCall{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2282, - EndPos: 2286, + EndLine: 98, + StartPos: 2282, + EndPos: 2286, }, Function: &name.Name{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2282, - EndPos: 2284, + EndLine: 98, + StartPos: 2282, + EndPos: 2284, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2282, - EndPos: 2284, + EndLine: 98, + StartPos: 2282, + EndPos: 2284, }, Value: "foo", }, @@ -4985,9 +4947,9 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2285, - EndPos: 2286, + EndLine: 98, + StartPos: 2285, + EndPos: 2286, }, }, }, @@ -4997,16 +4959,16 @@ func TestPhp5(t *testing.T) { &stmt.Label{ Position: &position.Position{ StartLine: 99, - EndLine: 99, - StartPos: 2292, - EndPos: 2293, + EndLine: 99, + StartPos: 2292, + EndPos: 2293, }, LabelName: &node.Identifier{ Position: &position.Position{ StartLine: 99, - EndLine: 99, - StartPos: 2292, - EndPos: 2292, + EndLine: 99, + StartPos: 2292, + EndPos: 2292, }, Value: "a", }, @@ -5014,16 +4976,16 @@ func TestPhp5(t *testing.T) { &stmt.Goto{ Position: &position.Position{ StartLine: 100, - EndLine: 100, - StartPos: 2298, - EndPos: 2304, + EndLine: 100, + StartPos: 2298, + EndPos: 2304, }, Label: &node.Identifier{ Position: &position.Position{ StartLine: 100, - EndLine: 100, - StartPos: 2303, - EndPos: 2303, + EndLine: 100, + StartPos: 2303, + EndPos: 2303, }, Value: "a", }, @@ -5031,31 +4993,31 @@ func TestPhp5(t *testing.T) { &stmt.HaltCompiler{ Position: &position.Position{ StartLine: 101, - EndLine: 101, - StartPos: 2308, - EndPos: 2325, + EndLine: 101, + StartPos: 2308, + EndPos: 2325, }, }, &stmt.If{ Position: &position.Position{ StartLine: 102, - EndLine: 102, - StartPos: 2329, - EndPos: 2338, + EndLine: 102, + StartPos: 2329, + EndPos: 2338, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 102, - EndLine: 102, - StartPos: 2333, - EndPos: 2334, + EndLine: 102, + StartPos: 2333, + EndPos: 2334, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 102, - EndLine: 102, - StartPos: 2333, - EndPos: 2334, + EndLine: 102, + StartPos: 2333, + EndPos: 2334, }, Value: "a", }, @@ -5063,34 +5025,33 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 102, - EndLine: 102, - StartPos: 2337, - EndPos: 2338, - }, - Stmts: []node.Node{ + EndLine: 102, + StartPos: 2337, + EndPos: 2338, }, + Stmts: []node.Node{}, }, }, &stmt.If{ Position: &position.Position{ StartLine: 103, - EndLine: 103, - StartPos: 2342, - EndPos: 2366, + EndLine: 103, + StartPos: 2342, + EndPos: 2366, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 103, - EndLine: 103, - StartPos: 2346, - EndPos: 2347, + EndLine: 103, + StartPos: 2346, + EndPos: 2347, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 103, - EndLine: 103, - StartPos: 2346, - EndPos: 2347, + EndLine: 103, + StartPos: 2346, + EndPos: 2347, }, Value: "a", }, @@ -5098,34 +5059,33 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 103, - EndLine: 103, - StartPos: 2350, - EndPos: 2351, - }, - Stmts: []node.Node{ + EndLine: 103, + StartPos: 2350, + EndPos: 2351, }, + Stmts: []node.Node{}, }, ElseIf: []node.Node{ &stmt.ElseIf{ Position: &position.Position{ StartLine: 103, - EndLine: 103, - StartPos: 2353, - EndPos: 2366, + EndLine: 103, + StartPos: 2353, + EndPos: 2366, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 103, - EndLine: 103, - StartPos: 2361, - EndPos: 2362, + EndLine: 103, + StartPos: 2361, + EndPos: 2362, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 103, - EndLine: 103, - StartPos: 2361, - EndPos: 2362, + EndLine: 103, + StartPos: 2361, + EndPos: 2362, }, Value: "b", }, @@ -5133,12 +5093,11 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 103, - EndLine: 103, - StartPos: 2365, - EndPos: 2366, - }, - Stmts: []node.Node{ + EndLine: 103, + StartPos: 2365, + EndPos: 2366, }, + Stmts: []node.Node{}, }, }, }, @@ -5146,23 +5105,23 @@ func TestPhp5(t *testing.T) { &stmt.If{ Position: &position.Position{ StartLine: 104, - EndLine: 104, - StartPos: 2370, - EndPos: 2387, + EndLine: 104, + StartPos: 2370, + EndPos: 2387, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 104, - EndLine: 104, - StartPos: 2374, - EndPos: 2375, + EndLine: 104, + StartPos: 2374, + EndPos: 2375, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 104, - EndLine: 104, - StartPos: 2374, - EndPos: 2375, + EndLine: 104, + StartPos: 2374, + EndPos: 2375, }, Value: "a", }, @@ -5170,52 +5129,50 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 104, - EndLine: 104, - StartPos: 2378, - EndPos: 2379, - }, - Stmts: []node.Node{ + EndLine: 104, + StartPos: 2378, + EndPos: 2379, }, + Stmts: []node.Node{}, }, Else: &stmt.Else{ Position: &position.Position{ StartLine: 104, - EndLine: 104, - StartPos: 2381, - EndPos: 2387, + EndLine: 104, + StartPos: 2381, + EndPos: 2387, }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 104, - EndLine: 104, - StartPos: 2386, - EndPos: 2387, - }, - Stmts: []node.Node{ + EndLine: 104, + StartPos: 2386, + EndPos: 2387, }, + Stmts: []node.Node{}, }, }, }, &stmt.If{ Position: &position.Position{ StartLine: 105, - EndLine: 105, - StartPos: 2391, - EndPos: 2438, + EndLine: 105, + StartPos: 2391, + EndPos: 2438, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 105, - EndLine: 105, - StartPos: 2395, - EndPos: 2396, + EndLine: 105, + StartPos: 2395, + EndPos: 2396, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 105, - EndLine: 105, - StartPos: 2395, - EndPos: 2396, + EndLine: 105, + StartPos: 2395, + EndPos: 2396, }, Value: "a", }, @@ -5223,34 +5180,33 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 105, - EndLine: 105, - StartPos: 2399, - EndPos: 2400, - }, - Stmts: []node.Node{ + EndLine: 105, + StartPos: 2399, + EndPos: 2400, }, + Stmts: []node.Node{}, }, ElseIf: []node.Node{ &stmt.ElseIf{ Position: &position.Position{ StartLine: 105, - EndLine: 105, - StartPos: 2402, - EndPos: 2415, + EndLine: 105, + StartPos: 2402, + EndPos: 2415, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 105, - EndLine: 105, - StartPos: 2410, - EndPos: 2411, + EndLine: 105, + StartPos: 2410, + EndPos: 2411, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 105, - EndLine: 105, - StartPos: 2410, - EndPos: 2411, + EndLine: 105, + StartPos: 2410, + EndPos: 2411, }, Value: "b", }, @@ -5258,34 +5214,33 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 105, - EndLine: 105, - StartPos: 2414, - EndPos: 2415, - }, - Stmts: []node.Node{ + EndLine: 105, + StartPos: 2414, + EndPos: 2415, }, + Stmts: []node.Node{}, }, }, &stmt.ElseIf{ Position: &position.Position{ StartLine: 105, - EndLine: 105, - StartPos: 2417, - EndPos: 2430, + EndLine: 105, + StartPos: 2417, + EndPos: 2430, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 105, - EndLine: 105, - StartPos: 2425, - EndPos: 2426, + EndLine: 105, + StartPos: 2425, + EndPos: 2426, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 105, - EndLine: 105, - StartPos: 2425, - EndPos: 2426, + EndLine: 105, + StartPos: 2425, + EndPos: 2426, }, Value: "c", }, @@ -5293,54 +5248,52 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 105, - EndLine: 105, - StartPos: 2429, - EndPos: 2430, - }, - Stmts: []node.Node{ + EndLine: 105, + StartPos: 2429, + EndPos: 2430, }, + Stmts: []node.Node{}, }, }, }, Else: &stmt.Else{ Position: &position.Position{ StartLine: 105, - EndLine: 105, - StartPos: 2432, - EndPos: 2438, + EndLine: 105, + StartPos: 2432, + EndPos: 2438, }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 105, - EndLine: 105, - StartPos: 2437, - EndPos: 2438, - }, - Stmts: []node.Node{ + EndLine: 105, + StartPos: 2437, + EndPos: 2438, }, + Stmts: []node.Node{}, }, }, }, &stmt.If{ Position: &position.Position{ StartLine: 106, - EndLine: 106, - StartPos: 2442, - EndPos: 2490, + EndLine: 106, + StartPos: 2442, + EndPos: 2490, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 106, - EndLine: 106, - StartPos: 2446, - EndPos: 2447, + EndLine: 106, + StartPos: 2446, + EndPos: 2447, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 106, - EndLine: 106, - StartPos: 2446, - EndPos: 2447, + EndLine: 106, + StartPos: 2446, + EndPos: 2447, }, Value: "a", }, @@ -5348,34 +5301,33 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 106, - EndLine: 106, - StartPos: 2450, - EndPos: 2451, - }, - Stmts: []node.Node{ + EndLine: 106, + StartPos: 2450, + EndPos: 2451, }, + Stmts: []node.Node{}, }, ElseIf: []node.Node{ &stmt.ElseIf{ Position: &position.Position{ StartLine: 106, - EndLine: 106, - StartPos: 2453, - EndPos: 2466, + EndLine: 106, + StartPos: 2453, + EndPos: 2466, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 106, - EndLine: 106, - StartPos: 2461, - EndPos: 2462, + EndLine: 106, + StartPos: 2461, + EndPos: 2462, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 106, - EndLine: 106, - StartPos: 2461, - EndPos: 2462, + EndLine: 106, + StartPos: 2461, + EndPos: 2462, }, Value: "b", }, @@ -5383,42 +5335,41 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 106, - EndLine: 106, - StartPos: 2465, - EndPos: 2466, - }, - Stmts: []node.Node{ + EndLine: 106, + StartPos: 2465, + EndPos: 2466, }, + Stmts: []node.Node{}, }, }, }, Else: &stmt.Else{ Position: &position.Position{ StartLine: 106, - EndLine: 106, - StartPos: 2468, - EndPos: 2490, + EndLine: 106, + StartPos: 2468, + EndPos: 2490, }, Stmt: &stmt.If{ Position: &position.Position{ StartLine: 106, - EndLine: 106, - StartPos: 2473, - EndPos: 2490, + EndLine: 106, + StartPos: 2473, + EndPos: 2490, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 106, - EndLine: 106, - StartPos: 2477, - EndPos: 2478, + EndLine: 106, + StartPos: 2477, + EndPos: 2478, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 106, - EndLine: 106, - StartPos: 2477, - EndPos: 2478, + EndLine: 106, + StartPos: 2477, + EndPos: 2478, }, Value: "c", }, @@ -5426,29 +5377,27 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 106, - EndLine: 106, - StartPos: 2481, - EndPos: 2482, - }, - Stmts: []node.Node{ + EndLine: 106, + StartPos: 2481, + EndPos: 2482, }, + Stmts: []node.Node{}, }, Else: &stmt.Else{ Position: &position.Position{ StartLine: 106, - EndLine: 106, - StartPos: 2484, - EndPos: 2490, + EndLine: 106, + StartPos: 2484, + EndPos: 2490, }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 106, - EndLine: 106, - StartPos: 2489, - EndPos: 2490, - }, - Stmts: []node.Node{ + EndLine: 106, + StartPos: 2489, + EndPos: 2490, }, + Stmts: []node.Node{}, }, }, }, @@ -5457,79 +5406,78 @@ func TestPhp5(t *testing.T) { &stmt.Nop{ Position: &position.Position{ StartLine: 107, - EndLine: 107, - StartPos: 2494, - EndPos: 2495, + EndLine: 107, + StartPos: 2494, + EndPos: 2495, }, }, &stmt.InlineHtml{ Position: &position.Position{ StartLine: 107, - EndLine: 107, - StartPos: 2497, - EndPos: 2508, + EndLine: 107, + StartPos: 2497, + EndPos: 2508, }, Value: "
", }, &stmt.Interface{ Position: &position.Position{ StartLine: 108, - EndLine: 108, - StartPos: 2514, - EndPos: 2529, + EndLine: 108, + StartPos: 2514, + EndPos: 2529, }, PhpDocComment: "", InterfaceName: &node.Identifier{ Position: &position.Position{ StartLine: 108, - EndLine: 108, - StartPos: 2524, - EndPos: 2526, + EndLine: 108, + StartPos: 2524, + EndPos: 2526, }, Value: "Foo", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Interface{ Position: &position.Position{ StartLine: 109, - EndLine: 109, - StartPos: 2533, - EndPos: 2560, + EndLine: 109, + StartPos: 2533, + EndPos: 2560, }, PhpDocComment: "", InterfaceName: &node.Identifier{ Position: &position.Position{ StartLine: 109, - EndLine: 109, - StartPos: 2543, - EndPos: 2545, + EndLine: 109, + StartPos: 2543, + EndPos: 2545, }, Value: "Foo", }, Extends: &stmt.InterfaceExtends{ Position: &position.Position{ StartLine: 109, - EndLine: 109, - StartPos: 2547, - EndPos: 2557, + EndLine: 109, + StartPos: 2547, + EndPos: 2557, }, InterfaceNames: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 109, - EndLine: 109, - StartPos: 2555, - EndPos: 2557, + EndLine: 109, + StartPos: 2555, + EndPos: 2557, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 109, - EndLine: 109, - StartPos: 2555, - EndPos: 2557, + EndLine: 109, + StartPos: 2555, + EndPos: 2557, }, Value: "Bar", }, @@ -5537,48 +5485,47 @@ func TestPhp5(t *testing.T) { }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Interface{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2564, - EndPos: 2596, + EndLine: 110, + StartPos: 2564, + EndPos: 2596, }, PhpDocComment: "", InterfaceName: &node.Identifier{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2574, - EndPos: 2576, + EndLine: 110, + StartPos: 2574, + EndPos: 2576, }, Value: "Foo", }, Extends: &stmt.InterfaceExtends{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2578, - EndPos: 2593, + EndLine: 110, + StartPos: 2578, + EndPos: 2593, }, InterfaceNames: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2586, - EndPos: 2588, + EndLine: 110, + StartPos: 2586, + EndPos: 2588, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2586, - EndPos: 2588, + EndLine: 110, + StartPos: 2586, + EndPos: 2588, }, Value: "Bar", }, @@ -5587,17 +5534,17 @@ func TestPhp5(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2591, - EndPos: 2593, + EndLine: 110, + StartPos: 2591, + EndPos: 2593, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2591, - EndPos: 2593, + EndLine: 110, + StartPos: 2591, + EndPos: 2593, }, Value: "Baz", }, @@ -5605,30 +5552,29 @@ func TestPhp5(t *testing.T) { }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Namespace{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2600, - EndPos: 2613, + EndLine: 111, + StartPos: 2600, + EndPos: 2613, }, NamespaceName: &name.Name{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2610, - EndPos: 2612, + EndLine: 111, + StartPos: 2610, + EndPos: 2612, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2610, - EndPos: 2612, + EndLine: 111, + StartPos: 2610, + EndPos: 2612, }, Value: "Foo", }, @@ -5638,65 +5584,63 @@ func TestPhp5(t *testing.T) { &stmt.Namespace{ Position: &position.Position{ StartLine: 112, - EndLine: 112, - StartPos: 2617, - EndPos: 2636, + EndLine: 112, + StartPos: 2617, + EndPos: 2636, }, NamespaceName: &name.Name{ Position: &position.Position{ StartLine: 112, - EndLine: 112, - StartPos: 2627, - EndPos: 2633, + EndLine: 112, + StartPos: 2627, + EndPos: 2633, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 112, - EndLine: 112, - StartPos: 2627, - EndPos: 2629, + EndLine: 112, + StartPos: 2627, + EndPos: 2629, }, Value: "Foo", }, &name.NamePart{ Position: &position.Position{ StartLine: 112, - EndLine: 112, - StartPos: 2631, - EndPos: 2633, + EndLine: 112, + StartPos: 2631, + EndPos: 2633, }, Value: "Bar", }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Namespace{ Position: &position.Position{ StartLine: 113, - EndLine: 113, - StartPos: 2640, - EndPos: 2651, - }, - Stmts: []node.Node{ + EndLine: 113, + StartPos: 2640, + EndPos: 2651, }, + Stmts: []node.Node{}, }, &stmt.Class{ Position: &position.Position{ StartLine: 114, - EndLine: 114, - StartPos: 2655, - EndPos: 2673, + EndLine: 114, + StartPos: 2655, + EndPos: 2673, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 114, - EndLine: 114, - StartPos: 2661, - EndPos: 2663, + EndLine: 114, + StartPos: 2661, + EndPos: 2663, }, Value: "foo", }, @@ -5704,17 +5648,17 @@ func TestPhp5(t *testing.T) { &stmt.PropertyList{ Position: &position.Position{ StartLine: 114, - EndLine: 114, - StartPos: 2666, - EndPos: 2672, + EndLine: 114, + StartPos: 2666, + EndPos: 2672, }, Modifiers: []node.Node{ &node.Identifier{ Position: &position.Position{ StartLine: 114, - EndLine: 114, - StartPos: 2666, - EndPos: 2668, + EndLine: 114, + StartPos: 2666, + EndPos: 2668, }, Value: "var", }, @@ -5723,24 +5667,24 @@ func TestPhp5(t *testing.T) { &stmt.Property{ Position: &position.Position{ StartLine: 114, - EndLine: 114, - StartPos: 2670, - EndPos: 2671, + EndLine: 114, + StartPos: 2670, + EndPos: 2671, }, PhpDocComment: "", Variable: &expr.Variable{ Position: &position.Position{ StartLine: 114, - EndLine: 114, - StartPos: 2670, - EndPos: 2671, + EndLine: 114, + StartPos: 2670, + EndPos: 2671, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 114, - EndLine: 114, - StartPos: 2670, - EndPos: 2671, + EndLine: 114, + StartPos: 2670, + EndPos: 2671, }, Value: "a", }, @@ -5753,17 +5697,17 @@ func TestPhp5(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2677, - EndPos: 2713, + EndLine: 115, + StartPos: 2677, + EndPos: 2713, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2683, - EndPos: 2685, + EndLine: 115, + StartPos: 2683, + EndPos: 2685, }, Value: "foo", }, @@ -5771,26 +5715,26 @@ func TestPhp5(t *testing.T) { &stmt.PropertyList{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2688, - EndPos: 2712, + EndLine: 115, + StartPos: 2688, + EndPos: 2712, }, Modifiers: []node.Node{ &node.Identifier{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2688, - EndPos: 2693, + EndLine: 115, + StartPos: 2688, + EndPos: 2693, }, Value: "public", }, &node.Identifier{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2695, - EndPos: 2700, + EndLine: 115, + StartPos: 2695, + EndPos: 2700, }, Value: "static", }, @@ -5799,24 +5743,24 @@ func TestPhp5(t *testing.T) { &stmt.Property{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2702, - EndPos: 2703, + EndLine: 115, + StartPos: 2702, + EndPos: 2703, }, PhpDocComment: "", Variable: &expr.Variable{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2702, - EndPos: 2703, + EndLine: 115, + StartPos: 2702, + EndPos: 2703, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2702, - EndPos: 2703, + EndLine: 115, + StartPos: 2702, + EndPos: 2703, }, Value: "a", }, @@ -5825,24 +5769,24 @@ func TestPhp5(t *testing.T) { &stmt.Property{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2706, - EndPos: 2711, + EndLine: 115, + StartPos: 2706, + EndPos: 2711, }, PhpDocComment: "", Variable: &expr.Variable{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2706, - EndPos: 2707, + EndLine: 115, + StartPos: 2706, + EndPos: 2707, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2706, - EndPos: 2707, + EndLine: 115, + StartPos: 2706, + EndPos: 2707, }, Value: "b", }, @@ -5850,9 +5794,9 @@ func TestPhp5(t *testing.T) { Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2711, - EndPos: 2711, + EndLine: 115, + StartPos: 2711, + EndPos: 2711, }, Value: "1", }, @@ -5864,17 +5808,17 @@ func TestPhp5(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 116, - EndLine: 116, - StartPos: 2717, - EndPos: 2753, + EndLine: 116, + StartPos: 2717, + EndPos: 2753, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 116, - EndLine: 116, - StartPos: 2723, - EndPos: 2725, + EndLine: 116, + StartPos: 2723, + EndPos: 2725, }, Value: "foo", }, @@ -5882,26 +5826,26 @@ func TestPhp5(t *testing.T) { &stmt.PropertyList{ Position: &position.Position{ StartLine: 116, - EndLine: 116, - StartPos: 2728, - EndPos: 2752, + EndLine: 116, + StartPos: 2728, + EndPos: 2752, }, Modifiers: []node.Node{ &node.Identifier{ Position: &position.Position{ StartLine: 116, - EndLine: 116, - StartPos: 2728, - EndPos: 2733, + EndLine: 116, + StartPos: 2728, + EndPos: 2733, }, Value: "public", }, &node.Identifier{ Position: &position.Position{ StartLine: 116, - EndLine: 116, - StartPos: 2735, - EndPos: 2740, + EndLine: 116, + StartPos: 2735, + EndPos: 2740, }, Value: "static", }, @@ -5910,24 +5854,24 @@ func TestPhp5(t *testing.T) { &stmt.Property{ Position: &position.Position{ StartLine: 116, - EndLine: 116, - StartPos: 2742, - EndPos: 2747, + EndLine: 116, + StartPos: 2742, + EndPos: 2747, }, PhpDocComment: "", Variable: &expr.Variable{ Position: &position.Position{ StartLine: 116, - EndLine: 116, - StartPos: 2742, - EndPos: 2743, + EndLine: 116, + StartPos: 2742, + EndPos: 2743, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 116, - EndLine: 116, - StartPos: 2742, - EndPos: 2743, + EndLine: 116, + StartPos: 2742, + EndPos: 2743, }, Value: "a", }, @@ -5935,9 +5879,9 @@ func TestPhp5(t *testing.T) { Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 116, - EndLine: 116, - StartPos: 2747, - EndPos: 2747, + EndLine: 116, + StartPos: 2747, + EndPos: 2747, }, Value: "1", }, @@ -5945,24 +5889,24 @@ func TestPhp5(t *testing.T) { &stmt.Property{ Position: &position.Position{ StartLine: 116, - EndLine: 116, - StartPos: 2750, - EndPos: 2751, + EndLine: 116, + StartPos: 2750, + EndPos: 2751, }, PhpDocComment: "", Variable: &expr.Variable{ Position: &position.Position{ StartLine: 116, - EndLine: 116, - StartPos: 2750, - EndPos: 2751, + EndLine: 116, + StartPos: 2750, + EndPos: 2751, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 116, - EndLine: 116, - StartPos: 2750, - EndPos: 2751, + EndLine: 116, + StartPos: 2750, + EndPos: 2751, }, Value: "b", }, @@ -5975,31 +5919,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 117, - EndLine: 117, - StartPos: 2757, - EndPos: 2774, + EndLine: 117, + StartPos: 2757, + EndPos: 2774, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 117, - EndLine: 117, - StartPos: 2764, - EndPos: 2765, + EndLine: 117, + StartPos: 2764, + EndPos: 2765, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 117, - EndLine: 117, - StartPos: 2764, - EndPos: 2765, + EndLine: 117, + StartPos: 2764, + EndPos: 2765, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 117, - EndLine: 117, - StartPos: 2764, - EndPos: 2765, + EndLine: 117, + StartPos: 2764, + EndPos: 2765, }, Value: "a", }, @@ -6008,23 +5952,23 @@ func TestPhp5(t *testing.T) { &stmt.StaticVar{ Position: &position.Position{ StartLine: 117, - EndLine: 117, - StartPos: 2768, - EndPos: 2773, + EndLine: 117, + StartPos: 2768, + EndPos: 2773, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 117, - EndLine: 117, - StartPos: 2768, - EndPos: 2769, + EndLine: 117, + StartPos: 2768, + EndPos: 2769, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 117, - EndLine: 117, - StartPos: 2768, - EndPos: 2769, + EndLine: 117, + StartPos: 2768, + EndPos: 2769, }, Value: "b", }, @@ -6032,9 +5976,9 @@ func TestPhp5(t *testing.T) { Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 117, - EndLine: 117, - StartPos: 2773, - EndPos: 2773, + EndLine: 117, + StartPos: 2773, + EndPos: 2773, }, Value: "1", }, @@ -6044,31 +5988,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 118, - EndLine: 118, - StartPos: 2778, - EndPos: 2795, + EndLine: 118, + StartPos: 2778, + EndPos: 2795, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 118, - EndLine: 118, - StartPos: 2785, - EndPos: 2790, + EndLine: 118, + StartPos: 2785, + EndPos: 2790, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 118, - EndLine: 118, - StartPos: 2785, - EndPos: 2786, + EndLine: 118, + StartPos: 2785, + EndPos: 2786, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 118, - EndLine: 118, - StartPos: 2785, - EndPos: 2786, + EndLine: 118, + StartPos: 2785, + EndPos: 2786, }, Value: "a", }, @@ -6076,9 +6020,9 @@ func TestPhp5(t *testing.T) { Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 118, - EndLine: 118, - StartPos: 2790, - EndPos: 2790, + EndLine: 118, + StartPos: 2790, + EndPos: 2790, }, Value: "1", }, @@ -6086,23 +6030,23 @@ func TestPhp5(t *testing.T) { &stmt.StaticVar{ Position: &position.Position{ StartLine: 118, - EndLine: 118, - StartPos: 2793, - EndPos: 2794, + EndLine: 118, + StartPos: 2793, + EndPos: 2794, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 118, - EndLine: 118, - StartPos: 2793, - EndPos: 2794, + EndLine: 118, + StartPos: 2793, + EndPos: 2794, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 118, - EndLine: 118, - StartPos: 2793, - EndPos: 2794, + EndLine: 118, + StartPos: 2793, + EndPos: 2794, }, Value: "b", }, @@ -6113,74 +6057,71 @@ func TestPhp5(t *testing.T) { &stmt.AltSwitch{ Position: &position.Position{ StartLine: 120, - EndLine: 124, - StartPos: 2800, - EndPos: 2858, + EndLine: 124, + StartPos: 2800, + EndPos: 2858, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 120, - EndLine: 120, - StartPos: 2808, - EndPos: 2808, + EndLine: 120, + StartPos: 2808, + EndPos: 2808, }, Value: "1", }, CaseList: &stmt.CaseList{ Position: &position.Position{ StartLine: 121, - EndLine: -1, - StartPos: 2816, - EndPos: -1, + EndLine: -1, + StartPos: 2816, + EndPos: -1, }, Cases: []node.Node{ &stmt.Case{ Position: &position.Position{ StartLine: 121, - EndLine: -1, - StartPos: 2816, - EndPos: -1, + EndLine: -1, + StartPos: 2816, + EndPos: -1, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 121, - EndLine: 121, - StartPos: 2821, - EndPos: 2821, + EndLine: 121, + StartPos: 2821, + EndPos: 2821, }, Value: "1", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Default{ Position: &position.Position{ StartLine: 122, - EndLine: -1, - StartPos: 2827, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: 2827, + EndPos: -1, }, + Stmts: []node.Node{}, }, &stmt.Case{ Position: &position.Position{ StartLine: 123, - EndLine: -1, - StartPos: 2839, - EndPos: -1, + EndLine: -1, + StartPos: 2839, + EndPos: -1, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 123, - EndLine: 123, - StartPos: 2844, - EndPos: 2844, + EndLine: 123, + StartPos: 2844, + EndPos: 2844, }, Value: "2", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, }, @@ -6188,64 +6129,62 @@ func TestPhp5(t *testing.T) { &stmt.AltSwitch{ Position: &position.Position{ StartLine: 126, - EndLine: 129, - StartPos: 2863, - EndPos: 2910, + EndLine: 129, + StartPos: 2863, + EndPos: 2910, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 126, - EndLine: 126, - StartPos: 2871, - EndPos: 2871, + EndLine: 126, + StartPos: 2871, + EndPos: 2871, }, Value: "1", }, CaseList: &stmt.CaseList{ Position: &position.Position{ StartLine: 127, - EndLine: -1, - StartPos: 2880, - EndPos: -1, + EndLine: -1, + StartPos: 2880, + EndPos: -1, }, Cases: []node.Node{ &stmt.Case{ Position: &position.Position{ StartLine: 127, - EndLine: -1, - StartPos: 2880, - EndPos: -1, + EndLine: -1, + StartPos: 2880, + EndPos: -1, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 127, - EndLine: 127, - StartPos: 2885, - EndPos: 2885, + EndLine: 127, + StartPos: 2885, + EndPos: 2885, }, Value: "1", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Case{ Position: &position.Position{ StartLine: 128, - EndLine: -1, - StartPos: 2891, - EndPos: -1, + EndLine: -1, + StartPos: 2891, + EndPos: -1, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 128, - EndLine: 128, - StartPos: 2896, - EndPos: 2896, + EndLine: 128, + StartPos: 2896, + EndPos: 2896, }, Value: "2", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, }, @@ -6253,40 +6192,40 @@ func TestPhp5(t *testing.T) { &stmt.Switch{ Position: &position.Position{ StartLine: 131, - EndLine: 134, - StartPos: 2917, - EndPos: 2968, + EndLine: 134, + StartPos: 2917, + EndPos: 2968, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 131, - EndLine: 131, - StartPos: 2925, - EndPos: 2925, + EndLine: 131, + StartPos: 2925, + EndPos: 2925, }, Value: "1", }, CaseList: &stmt.CaseList{ Position: &position.Position{ StartLine: 131, - EndLine: 134, - StartPos: 2928, - EndPos: 2968, + EndLine: 134, + StartPos: 2928, + EndPos: 2968, }, Cases: []node.Node{ &stmt.Case{ Position: &position.Position{ StartLine: 132, - EndLine: 132, - StartPos: 2933, - EndPos: 2946, + EndLine: 132, + StartPos: 2933, + EndPos: 2946, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 132, - EndLine: 132, - StartPos: 2938, - EndPos: 2938, + EndLine: 132, + StartPos: 2938, + EndPos: 2938, }, Value: "1", }, @@ -6294,9 +6233,9 @@ func TestPhp5(t *testing.T) { &stmt.Break{ Position: &position.Position{ StartLine: 132, - EndLine: 132, - StartPos: 2941, - EndPos: 2946, + EndLine: 132, + StartPos: 2941, + EndPos: 2946, }, }, }, @@ -6304,16 +6243,16 @@ func TestPhp5(t *testing.T) { &stmt.Case{ Position: &position.Position{ StartLine: 133, - EndLine: 133, - StartPos: 2951, - EndPos: 2964, + EndLine: 133, + StartPos: 2951, + EndPos: 2964, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 133, - EndLine: 133, - StartPos: 2956, - EndPos: 2956, + EndLine: 133, + StartPos: 2956, + EndPos: 2956, }, Value: "2", }, @@ -6321,9 +6260,9 @@ func TestPhp5(t *testing.T) { &stmt.Break{ Position: &position.Position{ StartLine: 133, - EndLine: 133, - StartPos: 2959, - EndPos: 2964, + EndLine: 133, + StartPos: 2959, + EndPos: 2964, }, }, }, @@ -6334,40 +6273,40 @@ func TestPhp5(t *testing.T) { &stmt.Switch{ Position: &position.Position{ StartLine: 136, - EndLine: 139, - StartPos: 2975, - EndPos: 3027, + EndLine: 139, + StartPos: 2975, + EndPos: 3027, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 136, - EndLine: 136, - StartPos: 2983, - EndPos: 2983, + EndLine: 136, + StartPos: 2983, + EndPos: 2983, }, Value: "1", }, CaseList: &stmt.CaseList{ Position: &position.Position{ StartLine: 136, - EndLine: 139, - StartPos: 2986, - EndPos: 3027, + EndLine: 139, + StartPos: 2986, + EndPos: 3027, }, Cases: []node.Node{ &stmt.Case{ Position: &position.Position{ StartLine: 137, - EndLine: 137, - StartPos: 2992, - EndPos: 3005, + EndLine: 137, + StartPos: 2992, + EndPos: 3005, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 137, - EndLine: 137, - StartPos: 2997, - EndPos: 2997, + EndLine: 137, + StartPos: 2997, + EndPos: 2997, }, Value: "1", }, @@ -6375,9 +6314,9 @@ func TestPhp5(t *testing.T) { &stmt.Break{ Position: &position.Position{ StartLine: 137, - EndLine: 137, - StartPos: 3000, - EndPos: 3005, + EndLine: 137, + StartPos: 3000, + EndPos: 3005, }, }, }, @@ -6385,16 +6324,16 @@ func TestPhp5(t *testing.T) { &stmt.Case{ Position: &position.Position{ StartLine: 138, - EndLine: 138, - StartPos: 3010, - EndPos: 3023, + EndLine: 138, + StartPos: 3010, + EndPos: 3023, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 138, - EndLine: 138, - StartPos: 3015, - EndPos: 3015, + EndLine: 138, + StartPos: 3015, + EndPos: 3015, }, Value: "2", }, @@ -6402,9 +6341,9 @@ func TestPhp5(t *testing.T) { &stmt.Break{ Position: &position.Position{ StartLine: 138, - EndLine: 138, - StartPos: 3018, - EndPos: 3023, + EndLine: 138, + StartPos: 3018, + EndPos: 3023, }, }, }, @@ -6415,23 +6354,23 @@ func TestPhp5(t *testing.T) { &stmt.Throw{ Position: &position.Position{ StartLine: 140, - EndLine: 140, - StartPos: 3031, - EndPos: 3039, + EndLine: 140, + StartPos: 3031, + EndPos: 3039, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 140, - EndLine: 140, - StartPos: 3037, - EndPos: 3038, + EndLine: 140, + StartPos: 3037, + EndPos: 3038, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 140, - EndLine: 140, - StartPos: 3037, - EndPos: 3038, + EndLine: 140, + StartPos: 3037, + EndPos: 3038, }, Value: "e", }, @@ -6440,37 +6379,36 @@ func TestPhp5(t *testing.T) { &stmt.Trait{ Position: &position.Position{ StartLine: 141, - EndLine: 141, - StartPos: 3043, - EndPos: 3054, + EndLine: 141, + StartPos: 3043, + EndPos: 3054, }, PhpDocComment: "", TraitName: &node.Identifier{ Position: &position.Position{ StartLine: 141, - EndLine: 141, - StartPos: 3049, - EndPos: 3051, + EndLine: 141, + StartPos: 3049, + EndPos: 3051, }, Value: "Foo", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Class{ Position: &position.Position{ StartLine: 142, - EndLine: 142, - StartPos: 3058, - EndPos: 3079, + EndLine: 142, + StartPos: 3058, + EndPos: 3079, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 142, - EndLine: 142, - StartPos: 3064, - EndPos: 3066, + EndLine: 142, + StartPos: 3064, + EndPos: 3066, }, Value: "Foo", }, @@ -6478,25 +6416,25 @@ func TestPhp5(t *testing.T) { &stmt.TraitUse{ Position: &position.Position{ StartLine: 142, - EndLine: 142, - StartPos: 3070, - EndPos: 3077, + EndLine: 142, + StartPos: 3070, + EndPos: 3077, }, Traits: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 142, - EndLine: 142, - StartPos: 3074, - EndPos: 3076, + EndLine: 142, + StartPos: 3074, + EndPos: 3076, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 142, - EndLine: 142, - StartPos: 3074, - EndPos: 3076, + EndLine: 142, + StartPos: 3074, + EndPos: 3076, }, Value: "Bar", }, @@ -6509,17 +6447,17 @@ func TestPhp5(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 143, - EndLine: 143, - StartPos: 3083, - EndPos: 3111, + EndLine: 143, + StartPos: 3083, + EndPos: 3111, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 143, - EndLine: 143, - StartPos: 3089, - EndPos: 3091, + EndLine: 143, + StartPos: 3089, + EndPos: 3091, }, Value: "Foo", }, @@ -6527,25 +6465,25 @@ func TestPhp5(t *testing.T) { &stmt.TraitUse{ Position: &position.Position{ StartLine: 143, - EndLine: 143, - StartPos: 3095, - EndPos: 3109, + EndLine: 143, + StartPos: 3095, + EndPos: 3109, }, Traits: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 143, - EndLine: 143, - StartPos: 3099, - EndPos: 3101, + EndLine: 143, + StartPos: 3099, + EndPos: 3101, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 143, - EndLine: 143, - StartPos: 3099, - EndPos: 3101, + EndLine: 143, + StartPos: 3099, + EndPos: 3101, }, Value: "Bar", }, @@ -6554,17 +6492,17 @@ func TestPhp5(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 143, - EndLine: 143, - StartPos: 3104, - EndPos: 3106, + EndLine: 143, + StartPos: 3104, + EndPos: 3106, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 143, - EndLine: 143, - StartPos: 3104, - EndPos: 3106, + EndLine: 143, + StartPos: 3104, + EndPos: 3106, }, Value: "Baz", }, @@ -6574,9 +6512,9 @@ func TestPhp5(t *testing.T) { TraitAdaptationList: &stmt.TraitAdaptationList{ Position: &position.Position{ StartLine: 143, - EndLine: 143, - StartPos: 3108, - EndPos: 3109, + EndLine: 143, + StartPos: 3108, + EndPos: 3109, }, }, }, @@ -6585,17 +6523,17 @@ func TestPhp5(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 144, - EndLine: 144, - StartPos: 3115, - EndPos: 3159, + EndLine: 144, + StartPos: 3115, + EndPos: 3159, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 144, - EndLine: 144, - StartPos: 3121, - EndPos: 3123, + EndLine: 144, + StartPos: 3121, + EndPos: 3123, }, Value: "Foo", }, @@ -6603,25 +6541,25 @@ func TestPhp5(t *testing.T) { &stmt.TraitUse{ Position: &position.Position{ StartLine: 144, - EndLine: 144, - StartPos: 3127, - EndPos: 3157, + EndLine: 144, + StartPos: 3127, + EndPos: 3157, }, Traits: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 144, - EndLine: 144, - StartPos: 3131, - EndPos: 3133, + EndLine: 144, + StartPos: 3131, + EndPos: 3133, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 144, - EndLine: 144, - StartPos: 3131, - EndPos: 3133, + EndLine: 144, + StartPos: 3131, + EndPos: 3133, }, Value: "Bar", }, @@ -6630,17 +6568,17 @@ func TestPhp5(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 144, - EndLine: 144, - StartPos: 3136, - EndPos: 3138, + EndLine: 144, + StartPos: 3136, + EndPos: 3138, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 144, - EndLine: 144, - StartPos: 3136, - EndPos: 3138, + EndLine: 144, + StartPos: 3136, + EndPos: 3138, }, Value: "Baz", }, @@ -6650,31 +6588,31 @@ func TestPhp5(t *testing.T) { TraitAdaptationList: &stmt.TraitAdaptationList{ Position: &position.Position{ StartLine: 144, - EndLine: 144, - StartPos: 3140, - EndPos: 3157, + EndLine: 144, + StartPos: 3140, + EndPos: 3157, }, Adaptations: []node.Node{ &stmt.TraitUseAlias{ Position: &position.Position{ StartLine: 144, - EndLine: 144, - StartPos: 3142, - EndPos: 3154, + EndLine: 144, + StartPos: 3142, + EndPos: 3154, }, Ref: &stmt.TraitMethodRef{ Position: &position.Position{ StartLine: 144, - EndLine: 144, - StartPos: 3142, - EndPos: 3144, + EndLine: 144, + StartPos: 3142, + EndPos: 3144, }, Method: &node.Identifier{ Position: &position.Position{ StartLine: 144, - EndLine: 144, - StartPos: 3142, - EndPos: 3144, + EndLine: 144, + StartPos: 3142, + EndPos: 3144, }, Value: "one", }, @@ -6682,9 +6620,9 @@ func TestPhp5(t *testing.T) { Modifier: &node.Identifier{ Position: &position.Position{ StartLine: 144, - EndLine: 144, - StartPos: 3149, - EndPos: 3154, + EndLine: 144, + StartPos: 3149, + EndPos: 3154, }, Value: "public", }, @@ -6697,17 +6635,17 @@ func TestPhp5(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 145, - EndLine: 145, - StartPos: 3163, - EndPos: 3211, + EndLine: 145, + StartPos: 3163, + EndPos: 3211, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 145, - EndLine: 145, - StartPos: 3169, - EndPos: 3171, + EndLine: 145, + StartPos: 3169, + EndPos: 3171, }, Value: "Foo", }, @@ -6715,25 +6653,25 @@ func TestPhp5(t *testing.T) { &stmt.TraitUse{ Position: &position.Position{ StartLine: 145, - EndLine: 145, - StartPos: 3175, - EndPos: 3209, + EndLine: 145, + StartPos: 3175, + EndPos: 3209, }, Traits: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 145, - EndLine: 145, - StartPos: 3179, - EndPos: 3181, + EndLine: 145, + StartPos: 3179, + EndPos: 3181, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 145, - EndLine: 145, - StartPos: 3179, - EndPos: 3181, + EndLine: 145, + StartPos: 3179, + EndPos: 3181, }, Value: "Bar", }, @@ -6742,17 +6680,17 @@ func TestPhp5(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 145, - EndLine: 145, - StartPos: 3184, - EndPos: 3186, + EndLine: 145, + StartPos: 3184, + EndPos: 3186, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 145, - EndLine: 145, - StartPos: 3184, - EndPos: 3186, + EndLine: 145, + StartPos: 3184, + EndPos: 3186, }, Value: "Baz", }, @@ -6762,31 +6700,31 @@ func TestPhp5(t *testing.T) { TraitAdaptationList: &stmt.TraitAdaptationList{ Position: &position.Position{ StartLine: 145, - EndLine: 145, - StartPos: 3188, - EndPos: 3209, + EndLine: 145, + StartPos: 3188, + EndPos: 3209, }, Adaptations: []node.Node{ &stmt.TraitUseAlias{ Position: &position.Position{ StartLine: 145, - EndLine: 145, - StartPos: 3190, - EndPos: 3206, + EndLine: 145, + StartPos: 3190, + EndPos: 3206, }, Ref: &stmt.TraitMethodRef{ Position: &position.Position{ StartLine: 145, - EndLine: 145, - StartPos: 3190, - EndPos: 3192, + EndLine: 145, + StartPos: 3190, + EndPos: 3192, }, Method: &node.Identifier{ Position: &position.Position{ StartLine: 145, - EndLine: 145, - StartPos: 3190, - EndPos: 3192, + EndLine: 145, + StartPos: 3190, + EndPos: 3192, }, Value: "one", }, @@ -6794,18 +6732,18 @@ func TestPhp5(t *testing.T) { Modifier: &node.Identifier{ Position: &position.Position{ StartLine: 145, - EndLine: 145, - StartPos: 3197, - EndPos: 3202, + EndLine: 145, + StartPos: 3197, + EndPos: 3202, }, Value: "public", }, Alias: &node.Identifier{ Position: &position.Position{ StartLine: 145, - EndLine: 145, - StartPos: 3204, - EndPos: 3206, + EndLine: 145, + StartPos: 3204, + EndPos: 3206, }, Value: "two", }, @@ -6818,17 +6756,17 @@ func TestPhp5(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3215, - EndPos: 3291, + EndLine: 146, + StartPos: 3215, + EndPos: 3291, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3221, - EndPos: 3223, + EndLine: 146, + StartPos: 3221, + EndPos: 3223, }, Value: "Foo", }, @@ -6836,25 +6774,25 @@ func TestPhp5(t *testing.T) { &stmt.TraitUse{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3227, - EndPos: 3289, + EndLine: 146, + StartPos: 3227, + EndPos: 3289, }, Traits: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3231, - EndPos: 3233, + EndLine: 146, + StartPos: 3231, + EndPos: 3233, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3231, - EndPos: 3233, + EndLine: 146, + StartPos: 3231, + EndPos: 3233, }, Value: "Bar", }, @@ -6863,17 +6801,17 @@ func TestPhp5(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3236, - EndPos: 3238, + EndLine: 146, + StartPos: 3236, + EndPos: 3238, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3236, - EndPos: 3238, + EndLine: 146, + StartPos: 3236, + EndPos: 3238, }, Value: "Baz", }, @@ -6883,39 +6821,39 @@ func TestPhp5(t *testing.T) { TraitAdaptationList: &stmt.TraitAdaptationList{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3240, - EndPos: 3289, + EndLine: 146, + StartPos: 3240, + EndPos: 3289, }, Adaptations: []node.Node{ &stmt.TraitUsePrecedence{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3242, - EndPos: 3269, + EndLine: 146, + StartPos: 3242, + EndPos: 3269, }, Ref: &stmt.TraitMethodRef{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3242, - EndPos: 3249, + EndLine: 146, + StartPos: 3242, + EndPos: 3249, }, Trait: &name.Name{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3242, - EndPos: 3244, + EndLine: 146, + StartPos: 3242, + EndPos: 3244, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3242, - EndPos: 3244, + EndLine: 146, + StartPos: 3242, + EndPos: 3244, }, Value: "Bar", }, @@ -6924,9 +6862,9 @@ func TestPhp5(t *testing.T) { Method: &node.Identifier{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3247, - EndPos: 3249, + EndLine: 146, + StartPos: 3247, + EndPos: 3249, }, Value: "one", }, @@ -6935,17 +6873,17 @@ func TestPhp5(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3261, - EndPos: 3263, + EndLine: 146, + StartPos: 3261, + EndPos: 3263, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3261, - EndPos: 3263, + EndLine: 146, + StartPos: 3261, + EndPos: 3263, }, Value: "Baz", }, @@ -6954,17 +6892,17 @@ func TestPhp5(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3266, - EndPos: 3269, + EndLine: 146, + StartPos: 3266, + EndPos: 3269, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3266, - EndPos: 3269, + EndLine: 146, + StartPos: 3266, + EndPos: 3269, }, Value: "Quux", }, @@ -6975,31 +6913,31 @@ func TestPhp5(t *testing.T) { &stmt.TraitUseAlias{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3272, - EndPos: 3286, + EndLine: 146, + StartPos: 3272, + EndPos: 3286, }, Ref: &stmt.TraitMethodRef{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3272, - EndPos: 3279, + EndLine: 146, + StartPos: 3272, + EndPos: 3279, }, Trait: &name.Name{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3272, - EndPos: 3274, + EndLine: 146, + StartPos: 3272, + EndPos: 3274, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3272, - EndPos: 3274, + EndLine: 146, + StartPos: 3272, + EndPos: 3274, }, Value: "Baz", }, @@ -7008,9 +6946,9 @@ func TestPhp5(t *testing.T) { Method: &node.Identifier{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3277, - EndPos: 3279, + EndLine: 146, + StartPos: 3277, + EndPos: 3279, }, Value: "one", }, @@ -7018,9 +6956,9 @@ func TestPhp5(t *testing.T) { Alias: &node.Identifier{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3284, - EndPos: 3286, + EndLine: 146, + StartPos: 3284, + EndPos: 3286, }, Value: "two", }, @@ -7033,47 +6971,44 @@ func TestPhp5(t *testing.T) { &stmt.Try{ Position: &position.Position{ StartLine: 148, - EndLine: -1, - StartPos: 3296, - EndPos: -1, - }, - Stmts: []node.Node{ - }, - Catches: []node.Node{ + EndLine: -1, + StartPos: 3296, + EndPos: -1, }, + Stmts: []node.Node{}, + Catches: []node.Node{}, }, &stmt.Try{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3305, - EndPos: 3334, - }, - Stmts: []node.Node{ + EndLine: 149, + StartPos: 3305, + EndPos: 3334, }, + Stmts: []node.Node{}, Catches: []node.Node{ &stmt.Catch{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3312, - EndPos: 3334, + EndLine: 149, + StartPos: 3312, + EndPos: 3334, }, Types: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3319, - EndPos: 3327, + EndLine: 149, + StartPos: 3319, + EndPos: 3327, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3319, - EndPos: 3327, + EndLine: 149, + StartPos: 3319, + EndPos: 3327, }, Value: "Exception", }, @@ -7083,57 +7018,55 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3329, - EndPos: 3330, + EndLine: 149, + StartPos: 3329, + EndPos: 3330, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3329, - EndPos: 3330, + EndLine: 149, + StartPos: 3329, + EndPos: 3330, }, Value: "e", }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, }, &stmt.Try{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3338, - EndPos: 3398, - }, - Stmts: []node.Node{ + EndLine: 150, + StartPos: 3338, + EndPos: 3398, }, + Stmts: []node.Node{}, Catches: []node.Node{ &stmt.Catch{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3345, - EndPos: 3367, + EndLine: 150, + StartPos: 3345, + EndPos: 3367, }, Types: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3352, - EndPos: 3360, + EndLine: 150, + StartPos: 3352, + EndPos: 3360, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3352, - EndPos: 3360, + EndLine: 150, + StartPos: 3352, + EndPos: 3360, }, Value: "Exception", }, @@ -7143,45 +7076,44 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3362, - EndPos: 3363, + EndLine: 150, + StartPos: 3362, + EndPos: 3363, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3362, - EndPos: 3363, + EndLine: 150, + StartPos: 3362, + EndPos: 3363, }, Value: "e", }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Catch{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3369, - EndPos: 3398, + EndLine: 150, + StartPos: 3369, + EndPos: 3398, }, Types: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3376, - EndPos: 3391, + EndLine: 150, + StartPos: 3376, + EndPos: 3391, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3376, - EndPos: 3391, + EndLine: 150, + StartPos: 3376, + EndPos: 3391, }, Value: "RuntimeException", }, @@ -7191,57 +7123,55 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3393, - EndPos: 3394, + EndLine: 150, + StartPos: 3393, + EndPos: 3394, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3393, - EndPos: 3394, + EndLine: 150, + StartPos: 3393, + EndPos: 3394, }, Value: "e", }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, }, &stmt.Try{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3402, - EndPos: 3505, - }, - Stmts: []node.Node{ + EndLine: 151, + StartPos: 3402, + EndPos: 3505, }, + Stmts: []node.Node{}, Catches: []node.Node{ &stmt.Catch{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3409, - EndPos: 3431, + EndLine: 151, + StartPos: 3409, + EndPos: 3431, }, Types: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3416, - EndPos: 3424, + EndLine: 151, + StartPos: 3416, + EndPos: 3424, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3416, - EndPos: 3424, + EndLine: 151, + StartPos: 3416, + EndPos: 3424, }, Value: "Exception", }, @@ -7251,45 +7181,44 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3426, - EndPos: 3427, + EndLine: 151, + StartPos: 3426, + EndPos: 3427, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3426, - EndPos: 3427, + EndLine: 151, + StartPos: 3426, + EndPos: 3427, }, Value: "e", }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Catch{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3433, - EndPos: 3463, + EndLine: 151, + StartPos: 3433, + EndPos: 3463, }, Types: []node.Node{ &name.FullyQualified{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3440, - EndPos: 3456, + EndLine: 151, + StartPos: 3440, + EndPos: 3456, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3441, - EndPos: 3456, + EndLine: 151, + StartPos: 3441, + EndPos: 3456, }, Value: "RuntimeException", }, @@ -7299,45 +7228,44 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3458, - EndPos: 3459, + EndLine: 151, + StartPos: 3458, + EndPos: 3459, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3458, - EndPos: 3459, + EndLine: 151, + StartPos: 3458, + EndPos: 3459, }, Value: "e", }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Catch{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3465, - EndPos: 3505, + EndLine: 151, + StartPos: 3465, + EndPos: 3505, }, Types: []node.Node{ &name.Relative{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3472, - EndPos: 3498, + EndLine: 151, + StartPos: 3472, + EndPos: 3498, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3482, - EndPos: 3498, + EndLine: 151, + StartPos: 3482, + EndPos: 3498, }, Value: "AdditionException", }, @@ -7347,57 +7275,55 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3500, - EndPos: 3501, + EndLine: 151, + StartPos: 3500, + EndPos: 3501, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3500, - EndPos: 3501, + EndLine: 151, + StartPos: 3500, + EndPos: 3501, }, Value: "e", }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, }, &stmt.Try{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3509, - EndPos: 3549, - }, - Stmts: []node.Node{ + EndLine: 152, + StartPos: 3509, + EndPos: 3549, }, + Stmts: []node.Node{}, Catches: []node.Node{ &stmt.Catch{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3516, - EndPos: 3538, + EndLine: 152, + StartPos: 3516, + EndPos: 3538, }, Types: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3523, - EndPos: 3531, + EndLine: 152, + StartPos: 3523, + EndPos: 3531, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3523, - EndPos: 3531, + EndLine: 152, + StartPos: 3523, + EndPos: 3531, }, Value: "Exception", }, @@ -7407,56 +7333,54 @@ func TestPhp5(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3533, - EndPos: 3534, + EndLine: 152, + StartPos: 3533, + EndPos: 3534, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3533, - EndPos: 3534, + EndLine: 152, + StartPos: 3533, + EndPos: 3534, }, Value: "e", }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, Finally: &stmt.Finally{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3540, - EndPos: 3549, - }, - Stmts: []node.Node{ + EndLine: 152, + StartPos: 3540, + EndPos: 3549, }, + Stmts: []node.Node{}, }, }, &stmt.Unset{ Position: &position.Position{ StartLine: 154, - EndLine: 154, - StartPos: 3554, - EndPos: 3567, + EndLine: 154, + StartPos: 3554, + EndPos: 3567, }, Vars: []node.Node{ &expr.Variable{ Position: &position.Position{ StartLine: 154, - EndLine: 154, - StartPos: 3560, - EndPos: 3561, + EndLine: 154, + StartPos: 3560, + EndPos: 3561, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 154, - EndLine: 154, - StartPos: 3560, - EndPos: 3561, + EndLine: 154, + StartPos: 3560, + EndPos: 3561, }, Value: "a", }, @@ -7464,16 +7388,16 @@ func TestPhp5(t *testing.T) { &expr.Variable{ Position: &position.Position{ StartLine: 154, - EndLine: 154, - StartPos: 3564, - EndPos: 3565, + EndLine: 154, + StartPos: 3564, + EndPos: 3565, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 154, - EndLine: 154, - StartPos: 3564, - EndPos: 3565, + EndLine: 154, + StartPos: 3564, + EndPos: 3565, }, Value: "b", }, @@ -7483,32 +7407,32 @@ func TestPhp5(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 156, - EndLine: 156, - StartPos: 3572, - EndPos: 3579, + EndLine: 156, + StartPos: 3572, + EndPos: 3579, }, Uses: []node.Node{ &stmt.Use{ Position: &position.Position{ StartLine: 156, - EndLine: 156, - StartPos: 3576, - EndPos: 3578, + EndLine: 156, + StartPos: 3576, + EndPos: 3578, }, Use: &name.Name{ Position: &position.Position{ StartLine: 156, - EndLine: 156, - StartPos: 3576, - EndPos: 3578, + EndLine: 156, + StartPos: 3576, + EndPos: 3578, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 156, - EndLine: 156, - StartPos: 3576, - EndPos: 3578, + EndLine: 156, + StartPos: 3576, + EndPos: 3578, }, Value: "Foo", }, @@ -7520,32 +7444,32 @@ func TestPhp5(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 157, - EndLine: 157, - StartPos: 3583, - EndPos: 3591, + EndLine: 157, + StartPos: 3583, + EndPos: 3591, }, Uses: []node.Node{ &stmt.Use{ Position: &position.Position{ StartLine: 157, - EndLine: 157, - StartPos: 3588, - EndPos: 3590, + EndLine: 157, + StartPos: 3588, + EndPos: 3590, }, Use: &name.Name{ Position: &position.Position{ StartLine: 157, - EndLine: 157, - StartPos: 3588, - EndPos: 3590, + EndLine: 157, + StartPos: 3588, + EndPos: 3590, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 157, - EndLine: 157, - StartPos: 3588, - EndPos: 3590, + EndLine: 157, + StartPos: 3588, + EndPos: 3590, }, Value: "Foo", }, @@ -7557,32 +7481,32 @@ func TestPhp5(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 158, - EndLine: 158, - StartPos: 3595, - EndPos: 3610, + EndLine: 158, + StartPos: 3595, + EndPos: 3610, }, Uses: []node.Node{ &stmt.Use{ Position: &position.Position{ StartLine: 158, - EndLine: 158, - StartPos: 3600, - EndPos: 3609, + EndLine: 158, + StartPos: 3600, + EndPos: 3609, }, Use: &name.Name{ Position: &position.Position{ StartLine: 158, - EndLine: 158, - StartPos: 3600, - EndPos: 3602, + EndLine: 158, + StartPos: 3600, + EndPos: 3602, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 158, - EndLine: 158, - StartPos: 3600, - EndPos: 3602, + EndLine: 158, + StartPos: 3600, + EndPos: 3602, }, Value: "Foo", }, @@ -7591,9 +7515,9 @@ func TestPhp5(t *testing.T) { Alias: &node.Identifier{ Position: &position.Position{ StartLine: 158, - EndLine: 158, - StartPos: 3607, - EndPos: 3609, + EndLine: 158, + StartPos: 3607, + EndPos: 3609, }, Value: "Bar", }, @@ -7603,32 +7527,32 @@ func TestPhp5(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 159, - EndLine: 159, - StartPos: 3614, - EndPos: 3626, + EndLine: 159, + StartPos: 3614, + EndPos: 3626, }, Uses: []node.Node{ &stmt.Use{ Position: &position.Position{ StartLine: 159, - EndLine: 159, - StartPos: 3618, - EndPos: 3620, + EndLine: 159, + StartPos: 3618, + EndPos: 3620, }, Use: &name.Name{ Position: &position.Position{ StartLine: 159, - EndLine: 159, - StartPos: 3618, - EndPos: 3620, + EndLine: 159, + StartPos: 3618, + EndPos: 3620, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 159, - EndLine: 159, - StartPos: 3618, - EndPos: 3620, + EndLine: 159, + StartPos: 3618, + EndPos: 3620, }, Value: "Foo", }, @@ -7638,24 +7562,24 @@ func TestPhp5(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 159, - EndLine: 159, - StartPos: 3623, - EndPos: 3625, + EndLine: 159, + StartPos: 3623, + EndPos: 3625, }, Use: &name.Name{ Position: &position.Position{ StartLine: 159, - EndLine: 159, - StartPos: 3623, - EndPos: 3625, + EndLine: 159, + StartPos: 3623, + EndPos: 3625, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 159, - EndLine: 159, - StartPos: 3623, - EndPos: 3625, + EndLine: 159, + StartPos: 3623, + EndPos: 3625, }, Value: "Bar", }, @@ -7667,32 +7591,32 @@ func TestPhp5(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 160, - EndLine: 160, - StartPos: 3630, - EndPos: 3649, + EndLine: 160, + StartPos: 3630, + EndPos: 3649, }, Uses: []node.Node{ &stmt.Use{ Position: &position.Position{ StartLine: 160, - EndLine: 160, - StartPos: 3634, - EndPos: 3636, + EndLine: 160, + StartPos: 3634, + EndPos: 3636, }, Use: &name.Name{ Position: &position.Position{ StartLine: 160, - EndLine: 160, - StartPos: 3634, - EndPos: 3636, + EndLine: 160, + StartPos: 3634, + EndPos: 3636, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 160, - EndLine: 160, - StartPos: 3634, - EndPos: 3636, + EndLine: 160, + StartPos: 3634, + EndPos: 3636, }, Value: "Foo", }, @@ -7702,24 +7626,24 @@ func TestPhp5(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 160, - EndLine: 160, - StartPos: 3639, - EndPos: 3648, + EndLine: 160, + StartPos: 3639, + EndPos: 3648, }, Use: &name.Name{ Position: &position.Position{ StartLine: 160, - EndLine: 160, - StartPos: 3639, - EndPos: 3641, + EndLine: 160, + StartPos: 3639, + EndPos: 3641, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 160, - EndLine: 160, - StartPos: 3639, - EndPos: 3641, + EndLine: 160, + StartPos: 3639, + EndPos: 3641, }, Value: "Bar", }, @@ -7728,9 +7652,9 @@ func TestPhp5(t *testing.T) { Alias: &node.Identifier{ Position: &position.Position{ StartLine: 160, - EndLine: 160, - StartPos: 3646, - EndPos: 3648, + EndLine: 160, + StartPos: 3646, + EndPos: 3648, }, Value: "Baz", }, @@ -7740,16 +7664,16 @@ func TestPhp5(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 161, - EndLine: 161, - StartPos: 3653, - EndPos: 3675, + EndLine: 161, + StartPos: 3653, + EndPos: 3675, }, UseType: &node.Identifier{ Position: &position.Position{ StartLine: 161, - EndLine: 161, - StartPos: 3657, - EndPos: 3664, + EndLine: 161, + StartPos: 3657, + EndPos: 3664, }, Value: "function", }, @@ -7757,24 +7681,24 @@ func TestPhp5(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 161, - EndLine: 161, - StartPos: 3666, - EndPos: 3668, + EndLine: 161, + StartPos: 3666, + EndPos: 3668, }, Use: &name.Name{ Position: &position.Position{ StartLine: 161, - EndLine: 161, - StartPos: 3666, - EndPos: 3668, + EndLine: 161, + StartPos: 3666, + EndPos: 3668, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 161, - EndLine: 161, - StartPos: 3666, - EndPos: 3668, + EndLine: 161, + StartPos: 3666, + EndPos: 3668, }, Value: "Foo", }, @@ -7784,24 +7708,24 @@ func TestPhp5(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 161, - EndLine: 161, - StartPos: 3672, - EndPos: 3674, + EndLine: 161, + StartPos: 3672, + EndPos: 3674, }, Use: &name.Name{ Position: &position.Position{ StartLine: 161, - EndLine: 161, - StartPos: 3672, - EndPos: 3674, + EndLine: 161, + StartPos: 3672, + EndPos: 3674, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 161, - EndLine: 161, - StartPos: 3672, - EndPos: 3674, + EndLine: 161, + StartPos: 3672, + EndPos: 3674, }, Value: "Bar", }, @@ -7813,16 +7737,16 @@ func TestPhp5(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 162, - EndLine: 162, - StartPos: 3679, - EndPos: 3715, + EndLine: 162, + StartPos: 3679, + EndPos: 3715, }, UseType: &node.Identifier{ Position: &position.Position{ StartLine: 162, - EndLine: 162, - StartPos: 3683, - EndPos: 3690, + EndLine: 162, + StartPos: 3683, + EndPos: 3690, }, Value: "function", }, @@ -7830,24 +7754,24 @@ func TestPhp5(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 162, - EndLine: 162, - StartPos: 3692, - EndPos: 3701, + EndLine: 162, + StartPos: 3692, + EndPos: 3701, }, Use: &name.Name{ Position: &position.Position{ StartLine: 162, - EndLine: 162, - StartPos: 3692, - EndPos: 3694, + EndLine: 162, + StartPos: 3692, + EndPos: 3694, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 162, - EndLine: 162, - StartPos: 3692, - EndPos: 3694, + EndLine: 162, + StartPos: 3692, + EndPos: 3694, }, Value: "Foo", }, @@ -7856,9 +7780,9 @@ func TestPhp5(t *testing.T) { Alias: &node.Identifier{ Position: &position.Position{ StartLine: 162, - EndLine: 162, - StartPos: 3699, - EndPos: 3701, + EndLine: 162, + StartPos: 3699, + EndPos: 3701, }, Value: "foo", }, @@ -7866,24 +7790,24 @@ func TestPhp5(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 162, - EndLine: 162, - StartPos: 3705, - EndPos: 3714, + EndLine: 162, + StartPos: 3705, + EndPos: 3714, }, Use: &name.Name{ Position: &position.Position{ StartLine: 162, - EndLine: 162, - StartPos: 3705, - EndPos: 3707, + EndLine: 162, + StartPos: 3705, + EndPos: 3707, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 162, - EndLine: 162, - StartPos: 3705, - EndPos: 3707, + EndLine: 162, + StartPos: 3705, + EndPos: 3707, }, Value: "Bar", }, @@ -7892,9 +7816,9 @@ func TestPhp5(t *testing.T) { Alias: &node.Identifier{ Position: &position.Position{ StartLine: 162, - EndLine: 162, - StartPos: 3712, - EndPos: 3714, + EndLine: 162, + StartPos: 3712, + EndPos: 3714, }, Value: "bar", }, @@ -7904,16 +7828,16 @@ func TestPhp5(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 163, - EndLine: 163, - StartPos: 3719, - EndPos: 3738, + EndLine: 163, + StartPos: 3719, + EndPos: 3738, }, UseType: &node.Identifier{ Position: &position.Position{ StartLine: 163, - EndLine: 163, - StartPos: 3723, - EndPos: 3727, + EndLine: 163, + StartPos: 3723, + EndPos: 3727, }, Value: "const", }, @@ -7921,24 +7845,24 @@ func TestPhp5(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 163, - EndLine: 163, - StartPos: 3729, - EndPos: 3731, + EndLine: 163, + StartPos: 3729, + EndPos: 3731, }, Use: &name.Name{ Position: &position.Position{ StartLine: 163, - EndLine: 163, - StartPos: 3729, - EndPos: 3731, + EndLine: 163, + StartPos: 3729, + EndPos: 3731, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 163, - EndLine: 163, - StartPos: 3729, - EndPos: 3731, + EndLine: 163, + StartPos: 3729, + EndPos: 3731, }, Value: "Foo", }, @@ -7948,24 +7872,24 @@ func TestPhp5(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 163, - EndLine: 163, - StartPos: 3735, - EndPos: 3737, + EndLine: 163, + StartPos: 3735, + EndPos: 3737, }, Use: &name.Name{ Position: &position.Position{ StartLine: 163, - EndLine: 163, - StartPos: 3735, - EndPos: 3737, + EndLine: 163, + StartPos: 3735, + EndPos: 3737, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 163, - EndLine: 163, - StartPos: 3735, - EndPos: 3737, + EndLine: 163, + StartPos: 3735, + EndPos: 3737, }, Value: "Bar", }, @@ -7977,16 +7901,16 @@ func TestPhp5(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 164, - EndLine: 164, - StartPos: 3742, - EndPos: 3775, + EndLine: 164, + StartPos: 3742, + EndPos: 3775, }, UseType: &node.Identifier{ Position: &position.Position{ StartLine: 164, - EndLine: 164, - StartPos: 3746, - EndPos: 3750, + EndLine: 164, + StartPos: 3746, + EndPos: 3750, }, Value: "const", }, @@ -7994,24 +7918,24 @@ func TestPhp5(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 164, - EndLine: 164, - StartPos: 3752, - EndPos: 3761, + EndLine: 164, + StartPos: 3752, + EndPos: 3761, }, Use: &name.Name{ Position: &position.Position{ StartLine: 164, - EndLine: 164, - StartPos: 3752, - EndPos: 3754, + EndLine: 164, + StartPos: 3752, + EndPos: 3754, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 164, - EndLine: 164, - StartPos: 3752, - EndPos: 3754, + EndLine: 164, + StartPos: 3752, + EndPos: 3754, }, Value: "Foo", }, @@ -8020,9 +7944,9 @@ func TestPhp5(t *testing.T) { Alias: &node.Identifier{ Position: &position.Position{ StartLine: 164, - EndLine: 164, - StartPos: 3759, - EndPos: 3761, + EndLine: 164, + StartPos: 3759, + EndPos: 3761, }, Value: "foo", }, @@ -8030,24 +7954,24 @@ func TestPhp5(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 164, - EndLine: 164, - StartPos: 3765, - EndPos: 3774, + EndLine: 164, + StartPos: 3765, + EndPos: 3774, }, Use: &name.Name{ Position: &position.Position{ StartLine: 164, - EndLine: 164, - StartPos: 3765, - EndPos: 3767, + EndLine: 164, + StartPos: 3765, + EndPos: 3767, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 164, - EndLine: 164, - StartPos: 3765, - EndPos: 3767, + EndLine: 164, + StartPos: 3765, + EndPos: 3767, }, Value: "Bar", }, @@ -8056,9 +7980,9 @@ func TestPhp5(t *testing.T) { Alias: &node.Identifier{ Position: &position.Position{ StartLine: 164, - EndLine: 164, - StartPos: 3772, - EndPos: 3774, + EndLine: 164, + StartPos: 3772, + EndPos: 3774, }, Value: "bar", }, @@ -8068,30 +7992,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 166, - EndLine: 166, - StartPos: 3780, - EndPos: 3785, + EndLine: 166, + StartPos: 3780, + EndPos: 3785, }, Expr: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 166, - EndLine: 166, - StartPos: 3780, - EndPos: 3784, + EndLine: 166, + StartPos: 3780, + EndPos: 3784, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 166, - EndLine: 166, - StartPos: 3780, - EndPos: 3781, + EndLine: 166, + StartPos: 3780, + EndPos: 3781, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 166, - EndLine: 166, - StartPos: 3780, - EndPos: 3781, + EndLine: 166, + StartPos: 3780, + EndPos: 3781, }, Value: "a", }, @@ -8099,9 +8023,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 166, - EndLine: 166, - StartPos: 3783, - EndPos: 3783, + EndLine: 166, + StartPos: 3783, + EndPos: 3783, }, Value: "1", }, @@ -8110,37 +8034,37 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 167, - EndLine: 167, - StartPos: 3789, - EndPos: 3797, + EndLine: 167, + StartPos: 3789, + EndPos: 3797, }, Expr: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 167, - EndLine: 167, - StartPos: 3789, - EndPos: 3796, + EndLine: 167, + StartPos: 3789, + EndPos: 3796, }, Variable: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 167, - EndLine: 167, - StartPos: 3789, - EndPos: 3793, + EndLine: 167, + StartPos: 3789, + EndPos: 3793, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 167, - EndLine: 167, - StartPos: 3789, - EndPos: 3790, + EndLine: 167, + StartPos: 3789, + EndPos: 3790, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 167, - EndLine: 167, - StartPos: 3789, - EndPos: 3790, + EndLine: 167, + StartPos: 3789, + EndPos: 3790, }, Value: "a", }, @@ -8148,9 +8072,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 167, - EndLine: 167, - StartPos: 3792, - EndPos: 3792, + EndLine: 167, + StartPos: 3792, + EndPos: 3792, }, Value: "1", }, @@ -8158,9 +8082,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 167, - EndLine: 167, - StartPos: 3795, - EndPos: 3795, + EndLine: 167, + StartPos: 3795, + EndPos: 3795, }, Value: "2", }, @@ -8169,49 +8093,48 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 168, - EndLine: 168, - StartPos: 3801, - EndPos: 3808, + EndLine: 168, + StartPos: 3801, + EndPos: 3808, }, Expr: &expr.Array{ Position: &position.Position{ StartLine: 168, - EndLine: 168, - StartPos: 3801, - EndPos: 3807, - }, - Items: []node.Node{ + EndLine: 168, + StartPos: 3801, + EndPos: 3807, }, + Items: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 169, - EndLine: 169, - StartPos: 3812, - EndPos: 3820, + EndLine: 169, + StartPos: 3812, + EndPos: 3820, }, Expr: &expr.Array{ Position: &position.Position{ StartLine: 169, - EndLine: 169, - StartPos: 3812, - EndPos: 3819, + EndLine: 169, + StartPos: 3812, + EndPos: 3819, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 169, - EndLine: 169, - StartPos: 3818, - EndPos: 3818, + EndLine: 169, + StartPos: 3818, + EndPos: 3818, }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 169, - EndLine: 169, - StartPos: 3818, - EndPos: 3818, + EndLine: 169, + StartPos: 3818, + EndPos: 3818, }, Value: "1", }, @@ -8222,40 +8145,40 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3824, - EndPos: 3841, + EndLine: 170, + StartPos: 3824, + EndPos: 3841, }, Expr: &expr.Array{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3824, - EndPos: 3840, + EndLine: 170, + StartPos: 3824, + EndPos: 3840, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3830, - EndPos: 3833, + EndLine: 170, + StartPos: 3830, + EndPos: 3833, }, Key: &scalar.Lnumber{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3830, - EndPos: 3830, + EndLine: 170, + StartPos: 3830, + EndPos: 3830, }, Value: "1", }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3833, - EndPos: 3833, + EndLine: 170, + StartPos: 3833, + EndPos: 3833, }, Value: "1", }, @@ -8263,92 +8186,91 @@ func TestPhp5(t *testing.T) { &expr.ArrayItem{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3836, - EndPos: 3838, + EndLine: 170, + StartPos: 3836, + EndPos: 3838, }, Val: &expr.Reference{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3836, - EndPos: 3838, + EndLine: 170, + StartPos: 3836, + EndPos: 3838, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3837, - EndPos: 3838, + EndLine: 170, + StartPos: 3837, + EndPos: 3838, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3837, - EndPos: 3838, + EndLine: 170, + StartPos: 3837, + EndPos: 3838, }, Value: "b", }, }, }, }, - &expr.ArrayItem{ - }, + &expr.ArrayItem{}, }, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 171, - EndLine: 171, - StartPos: 3845, - EndPos: 3859, + EndLine: 171, + StartPos: 3845, + EndPos: 3859, }, Expr: &expr.Array{ Position: &position.Position{ StartLine: 171, - EndLine: 171, - StartPos: 3845, - EndPos: 3858, + EndLine: 171, + StartPos: 3845, + EndPos: 3858, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 171, - EndLine: 171, - StartPos: 3851, - EndPos: 3857, + EndLine: 171, + StartPos: 3851, + EndPos: 3857, }, Key: &scalar.Lnumber{ Position: &position.Position{ StartLine: 171, - EndLine: 171, - StartPos: 3851, - EndPos: 3851, + EndLine: 171, + StartPos: 3851, + EndPos: 3851, }, Value: "3", }, Val: &expr.Reference{ Position: &position.Position{ StartLine: 171, - EndLine: 171, - StartPos: 3855, - EndPos: 3857, + EndLine: 171, + StartPos: 3855, + EndPos: 3857, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 171, - EndLine: 171, - StartPos: 3856, - EndPos: 3857, + EndLine: 171, + StartPos: 3856, + EndPos: 3857, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 171, - EndLine: 171, - StartPos: 3856, - EndPos: 3857, + EndLine: 171, + StartPos: 3856, + EndPos: 3857, }, Value: "b", }, @@ -8361,45 +8283,45 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3863, - EndPos: 3891, + EndLine: 172, + StartPos: 3863, + EndPos: 3891, }, Expr: &expr.Array{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3863, - EndPos: 3890, + EndLine: 172, + StartPos: 3863, + EndPos: 3890, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3869, - EndPos: 3871, + EndLine: 172, + StartPos: 3869, + EndPos: 3871, }, Val: &expr.Reference{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3869, - EndPos: 3871, + EndLine: 172, + StartPos: 3869, + EndPos: 3871, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3870, - EndPos: 3871, + EndLine: 172, + StartPos: 3870, + EndPos: 3871, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3870, - EndPos: 3871, + EndLine: 172, + StartPos: 3870, + EndPos: 3871, }, Value: "b", }, @@ -8409,25 +8331,25 @@ func TestPhp5(t *testing.T) { &expr.ArrayItem{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3874, - EndPos: 3877, + EndLine: 172, + StartPos: 3874, + EndPos: 3877, }, Key: &scalar.Lnumber{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3874, - EndPos: 3874, + EndLine: 172, + StartPos: 3874, + EndPos: 3874, }, Value: "1", }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3877, - EndPos: 3877, + EndLine: 172, + StartPos: 3877, + EndPos: 3877, }, Value: "1", }, @@ -8435,16 +8357,16 @@ func TestPhp5(t *testing.T) { &expr.ArrayItem{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3880, - EndPos: 3880, + EndLine: 172, + StartPos: 3880, + EndPos: 3880, }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3880, - EndPos: 3880, + EndLine: 172, + StartPos: 3880, + EndPos: 3880, }, Value: "1", }, @@ -8452,39 +8374,39 @@ func TestPhp5(t *testing.T) { &expr.ArrayItem{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3883, - EndPos: 3889, + EndLine: 172, + StartPos: 3883, + EndPos: 3889, }, Key: &scalar.Lnumber{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3883, - EndPos: 3883, + EndLine: 172, + StartPos: 3883, + EndPos: 3883, }, Value: "3", }, Val: &expr.Reference{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3887, - EndPos: 3889, + EndLine: 172, + StartPos: 3887, + EndPos: 3889, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3888, - EndPos: 3889, + EndLine: 172, + StartPos: 3888, + EndPos: 3889, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3888, - EndPos: 3889, + EndLine: 172, + StartPos: 3888, + EndPos: 3889, }, Value: "b", }, @@ -8497,30 +8419,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 173, - EndLine: 173, - StartPos: 3895, - EndPos: 3898, + EndLine: 173, + StartPos: 3895, + EndPos: 3898, }, Expr: &expr.BitwiseNot{ Position: &position.Position{ StartLine: 173, - EndLine: 173, - StartPos: 3895, - EndPos: 3897, + EndLine: 173, + StartPos: 3895, + EndPos: 3897, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 173, - EndLine: 173, - StartPos: 3896, - EndPos: 3897, + EndLine: 173, + StartPos: 3896, + EndPos: 3897, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 173, - EndLine: 173, - StartPos: 3896, - EndPos: 3897, + EndLine: 173, + StartPos: 3896, + EndPos: 3897, }, Value: "a", }, @@ -8530,30 +8452,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 174, - EndLine: 174, - StartPos: 3902, - EndPos: 3905, + EndLine: 174, + StartPos: 3902, + EndPos: 3905, }, Expr: &expr.BooleanNot{ Position: &position.Position{ StartLine: 174, - EndLine: 174, - StartPos: 3902, - EndPos: 3904, + EndLine: 174, + StartPos: 3902, + EndPos: 3904, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 174, - EndLine: 174, - StartPos: 3903, - EndPos: 3904, + EndLine: 174, + StartPos: 3903, + EndPos: 3904, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 174, - EndLine: 174, - StartPos: 3903, - EndPos: 3904, + EndLine: 174, + StartPos: 3903, + EndPos: 3904, }, Value: "a", }, @@ -8563,31 +8485,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 176, - EndLine: 176, - StartPos: 3910, - EndPos: 3918, + EndLine: 176, + StartPos: 3910, + EndPos: 3918, }, Expr: &expr.ClassConstFetch{ Position: &position.Position{ StartLine: 176, - EndLine: 176, - StartPos: 3910, - EndPos: 3917, + EndLine: 176, + StartPos: 3910, + EndPos: 3917, }, Class: &name.Name{ Position: &position.Position{ StartLine: 176, - EndLine: 176, - StartPos: 3910, - EndPos: 3912, + EndLine: 176, + StartPos: 3910, + EndPos: 3912, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 176, - EndLine: 176, - StartPos: 3910, - EndPos: 3912, + EndLine: 176, + StartPos: 3910, + EndPos: 3912, }, Value: "Foo", }, @@ -8596,9 +8518,9 @@ func TestPhp5(t *testing.T) { ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 176, - EndLine: 176, - StartPos: 3915, - EndPos: 3917, + EndLine: 176, + StartPos: 3915, + EndPos: 3917, }, Value: "Bar", }, @@ -8607,30 +8529,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 177, - EndLine: 177, - StartPos: 3922, - EndPos: 3931, + EndLine: 177, + StartPos: 3922, + EndPos: 3931, }, Expr: &expr.Clone{ Position: &position.Position{ StartLine: 177, - EndLine: 177, - StartPos: 3922, - EndPos: 3929, + EndLine: 177, + StartPos: 3922, + EndPos: 3929, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 177, - EndLine: 177, - StartPos: 3928, - EndPos: 3929, + EndLine: 177, + StartPos: 3928, + EndPos: 3929, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 177, - EndLine: 177, - StartPos: 3928, - EndPos: 3929, + EndLine: 177, + StartPos: 3928, + EndPos: 3929, }, Value: "a", }, @@ -8640,30 +8562,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 178, - EndLine: 178, - StartPos: 3935, - EndPos: 3943, + EndLine: 178, + StartPos: 3935, + EndPos: 3943, }, Expr: &expr.Clone{ Position: &position.Position{ StartLine: 178, - EndLine: 178, - StartPos: 3935, - EndPos: 3942, + EndLine: 178, + StartPos: 3935, + EndPos: 3942, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 178, - EndLine: 178, - StartPos: 3941, - EndPos: 3942, + EndLine: 178, + StartPos: 3941, + EndPos: 3942, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 178, - EndLine: 178, - StartPos: 3941, - EndPos: 3942, + EndLine: 178, + StartPos: 3941, + EndPos: 3942, }, Value: "a", }, @@ -8673,64 +8595,63 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 179, - EndLine: 179, - StartPos: 3947, - EndPos: 3959, + EndLine: 179, + StartPos: 3947, + EndPos: 3959, }, Expr: &expr.Closure{ Position: &position.Position{ StartLine: 179, - EndLine: 179, - StartPos: 3947, - EndPos: 3958, + EndLine: 179, + StartPos: 3947, + EndPos: 3958, }, - ReturnsRef: false, - Static: false, + ReturnsRef: false, + Static: false, PhpDocComment: "", - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 180, - EndLine: 180, - StartPos: 3963, - EndPos: 3996, + EndLine: 180, + StartPos: 3963, + EndPos: 3996, }, Expr: &expr.Closure{ Position: &position.Position{ StartLine: 180, - EndLine: 180, - StartPos: 3963, - EndPos: 3995, + EndLine: 180, + StartPos: 3963, + EndPos: 3995, }, - ReturnsRef: false, - Static: false, + ReturnsRef: false, + Static: false, PhpDocComment: "", Params: []node.Node{ &node.Parameter{ Position: &position.Position{ StartLine: 180, - EndLine: 180, - StartPos: 3972, - EndPos: 3973, + EndLine: 180, + StartPos: 3972, + EndPos: 3973, }, - ByRef: false, + ByRef: false, Variadic: false, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 180, - EndLine: 180, - StartPos: 3972, - EndPos: 3973, + EndLine: 180, + StartPos: 3972, + EndPos: 3973, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 180, - EndLine: 180, - StartPos: 3972, - EndPos: 3973, + EndLine: 180, + StartPos: 3972, + EndPos: 3973, }, Value: "a", }, @@ -8739,25 +8660,25 @@ func TestPhp5(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 180, - EndLine: 180, - StartPos: 3976, - EndPos: 3977, + EndLine: 180, + StartPos: 3976, + EndPos: 3977, }, - ByRef: false, + ByRef: false, Variadic: false, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 180, - EndLine: 180, - StartPos: 3976, - EndPos: 3977, + EndLine: 180, + StartPos: 3976, + EndPos: 3977, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 180, - EndLine: 180, - StartPos: 3976, - EndPos: 3977, + EndLine: 180, + StartPos: 3976, + EndPos: 3977, }, Value: "b", }, @@ -8767,24 +8688,24 @@ func TestPhp5(t *testing.T) { ClosureUse: &expr.ClosureUse{ Position: &position.Position{ StartLine: 180, - EndLine: 180, - StartPos: 3980, - EndPos: 3992, + EndLine: 180, + StartPos: 3980, + EndPos: 3992, }, Uses: []node.Node{ &expr.Variable{ Position: &position.Position{ StartLine: 180, - EndLine: 180, - StartPos: 3985, - EndPos: 3986, + EndLine: 180, + StartPos: 3985, + EndPos: 3986, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 180, - EndLine: 180, - StartPos: 3985, - EndPos: 3986, + EndLine: 180, + StartPos: 3985, + EndPos: 3986, }, Value: "c", }, @@ -8792,23 +8713,23 @@ func TestPhp5(t *testing.T) { &expr.Reference{ Position: &position.Position{ StartLine: 180, - EndLine: 180, - StartPos: 3989, - EndPos: 3991, + EndLine: 180, + StartPos: 3989, + EndPos: 3991, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 180, - EndLine: 180, - StartPos: 3990, - EndPos: 3991, + EndLine: 180, + StartPos: 3990, + EndPos: 3991, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 180, - EndLine: 180, - StartPos: 3990, - EndPos: 3991, + EndLine: 180, + StartPos: 3990, + EndPos: 3991, }, Value: "d", }, @@ -8816,50 +8737,49 @@ func TestPhp5(t *testing.T) { }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4000, - EndPos: 4033, + EndLine: 181, + StartPos: 4000, + EndPos: 4033, }, Expr: &expr.Closure{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4000, - EndPos: 4032, + EndLine: 181, + StartPos: 4000, + EndPos: 4032, }, - ReturnsRef: false, - Static: false, + ReturnsRef: false, + Static: false, PhpDocComment: "", Params: []node.Node{ &node.Parameter{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4009, - EndPos: 4010, + EndLine: 181, + StartPos: 4009, + EndPos: 4010, }, - ByRef: false, + ByRef: false, Variadic: false, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4009, - EndPos: 4010, + EndLine: 181, + StartPos: 4009, + EndPos: 4010, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4009, - EndPos: 4010, + EndLine: 181, + StartPos: 4009, + EndPos: 4010, }, Value: "a", }, @@ -8868,25 +8788,25 @@ func TestPhp5(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4013, - EndPos: 4014, + EndLine: 181, + StartPos: 4013, + EndPos: 4014, }, - ByRef: false, + ByRef: false, Variadic: false, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4013, - EndPos: 4014, + EndLine: 181, + StartPos: 4013, + EndPos: 4014, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4013, - EndPos: 4014, + EndLine: 181, + StartPos: 4013, + EndPos: 4014, }, Value: "b", }, @@ -8896,31 +8816,31 @@ func TestPhp5(t *testing.T) { ClosureUse: &expr.ClosureUse{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4017, - EndPos: 4029, + EndLine: 181, + StartPos: 4017, + EndPos: 4029, }, Uses: []node.Node{ &expr.Reference{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4022, - EndPos: 4024, + EndLine: 181, + StartPos: 4022, + EndPos: 4024, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4023, - EndPos: 4024, + EndLine: 181, + StartPos: 4023, + EndPos: 4024, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4023, - EndPos: 4024, + EndLine: 181, + StartPos: 4023, + EndPos: 4024, }, Value: "c", }, @@ -8929,75 +8849,73 @@ func TestPhp5(t *testing.T) { &expr.Variable{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4027, - EndPos: 4028, + EndLine: 181, + StartPos: 4027, + EndPos: 4028, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4027, - EndPos: 4028, + EndLine: 181, + StartPos: 4027, + EndPos: 4028, }, Value: "d", }, }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 182, - EndLine: 182, - StartPos: 4037, - EndPos: 4050, + EndLine: 182, + StartPos: 4037, + EndPos: 4050, }, Expr: &expr.Closure{ Position: &position.Position{ StartLine: 182, - EndLine: 182, - StartPos: 4037, - EndPos: 4049, + EndLine: 182, + StartPos: 4037, + EndPos: 4049, }, - ReturnsRef: false, - Static: false, + ReturnsRef: false, + Static: false, PhpDocComment: "", - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 183, - EndLine: 183, - StartPos: 4054, - EndPos: 4057, + EndLine: 183, + StartPos: 4054, + EndPos: 4057, }, Expr: &expr.ConstFetch{ Position: &position.Position{ StartLine: 183, - EndLine: 183, - StartPos: 4054, - EndPos: 4056, + EndLine: 183, + StartPos: 4054, + EndPos: 4056, }, Constant: &name.Name{ Position: &position.Position{ StartLine: 183, - EndLine: 183, - StartPos: 4054, - EndPos: 4056, + EndLine: 183, + StartPos: 4054, + EndPos: 4056, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 183, - EndLine: 183, - StartPos: 4054, - EndPos: 4056, + EndLine: 183, + StartPos: 4054, + EndPos: 4056, }, Value: "foo", }, @@ -9008,31 +8926,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 184, - EndLine: 184, - StartPos: 4061, - EndPos: 4074, + EndLine: 184, + StartPos: 4061, + EndPos: 4074, }, Expr: &expr.ConstFetch{ Position: &position.Position{ StartLine: 184, - EndLine: 184, - StartPos: 4061, - EndPos: 4073, + EndLine: 184, + StartPos: 4061, + EndPos: 4073, }, Constant: &name.Relative{ Position: &position.Position{ StartLine: 184, - EndLine: 184, - StartPos: 4061, - EndPos: 4073, + EndLine: 184, + StartPos: 4061, + EndPos: 4073, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 184, - EndLine: 184, - StartPos: 4071, - EndPos: 4073, + EndLine: 184, + StartPos: 4071, + EndPos: 4073, }, Value: "foo", }, @@ -9043,31 +8961,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 185, - EndLine: 185, - StartPos: 4078, - EndPos: 4082, + EndLine: 185, + StartPos: 4078, + EndPos: 4082, }, Expr: &expr.ConstFetch{ Position: &position.Position{ StartLine: 185, - EndLine: 185, - StartPos: 4078, - EndPos: 4081, + EndLine: 185, + StartPos: 4078, + EndPos: 4081, }, Constant: &name.FullyQualified{ Position: &position.Position{ StartLine: 185, - EndLine: 185, - StartPos: 4078, - EndPos: 4081, + EndLine: 185, + StartPos: 4078, + EndPos: 4081, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 185, - EndLine: 185, - StartPos: 4079, - EndPos: 4081, + EndLine: 185, + StartPos: 4079, + EndPos: 4081, }, Value: "foo", }, @@ -9078,30 +8996,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 187, - EndLine: 187, - StartPos: 4087, - EndPos: 4096, + EndLine: 187, + StartPos: 4087, + EndPos: 4096, }, Expr: &expr.Empty{ Position: &position.Position{ StartLine: 187, - EndLine: 187, - StartPos: 4087, - EndPos: 4095, + EndLine: 187, + StartPos: 4087, + EndPos: 4095, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 187, - EndLine: 187, - StartPos: 4093, - EndPos: 4094, + EndLine: 187, + StartPos: 4093, + EndPos: 4094, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 187, - EndLine: 187, - StartPos: 4093, - EndPos: 4094, + EndLine: 187, + StartPos: 4093, + EndPos: 4094, }, Value: "a", }, @@ -9111,38 +9029,38 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 188, - EndLine: 188, - StartPos: 4100, - EndPos: 4110, + EndLine: 188, + StartPos: 4100, + EndPos: 4110, }, Expr: &expr.Empty{ Position: &position.Position{ StartLine: 188, - EndLine: 188, - StartPos: 4100, - EndPos: 4109, + EndLine: 188, + StartPos: 4100, + EndPos: 4109, }, Expr: &expr.ConstFetch{ Position: &position.Position{ StartLine: 188, - EndLine: 188, - StartPos: 4106, - EndPos: 4108, + EndLine: 188, + StartPos: 4106, + EndPos: 4108, }, Constant: &name.Name{ Position: &position.Position{ StartLine: 188, - EndLine: 188, - StartPos: 4106, - EndPos: 4108, + EndLine: 188, + StartPos: 4106, + EndPos: 4108, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 188, - EndLine: 188, - StartPos: 4106, - EndPos: 4108, + EndLine: 188, + StartPos: 4106, + EndPos: 4108, }, Value: "Foo", }, @@ -9154,30 +9072,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 189, - EndLine: 189, - StartPos: 4114, - EndPos: 4117, + EndLine: 189, + StartPos: 4114, + EndPos: 4117, }, Expr: &expr.ErrorSuppress{ Position: &position.Position{ StartLine: 189, - EndLine: 189, - StartPos: 4114, - EndPos: 4116, + EndLine: 189, + StartPos: 4114, + EndPos: 4116, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 189, - EndLine: 189, - StartPos: 4115, - EndPos: 4116, + EndLine: 189, + StartPos: 4115, + EndPos: 4116, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 189, - EndLine: 189, - StartPos: 4115, - EndPos: 4116, + EndLine: 189, + StartPos: 4115, + EndPos: 4116, }, Value: "a", }, @@ -9187,30 +9105,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 190, - EndLine: 190, - StartPos: 4121, - EndPos: 4129, + EndLine: 190, + StartPos: 4121, + EndPos: 4129, }, Expr: &expr.Eval{ Position: &position.Position{ StartLine: 190, - EndLine: 190, - StartPos: 4121, - EndPos: 4128, + EndLine: 190, + StartPos: 4121, + EndPos: 4128, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 190, - EndLine: 190, - StartPos: 4126, - EndPos: 4127, + EndLine: 190, + StartPos: 4126, + EndPos: 4127, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 190, - EndLine: 190, - StartPos: 4126, - EndPos: 4127, + EndLine: 190, + StartPos: 4126, + EndPos: 4127, }, Value: "a", }, @@ -9220,46 +9138,46 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 191, - EndLine: 191, - StartPos: 4133, - EndPos: 4137, + EndLine: 191, + StartPos: 4133, + EndPos: 4137, }, Expr: &expr.Exit{ Position: &position.Position{ StartLine: 191, - EndLine: 191, - StartPos: 4133, - EndPos: 4136, + EndLine: 191, + StartPos: 4133, + EndPos: 4136, }, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 192, - EndLine: 192, - StartPos: 4141, - EndPos: 4149, + EndLine: 192, + StartPos: 4141, + EndPos: 4149, }, Expr: &expr.Exit{ Position: &position.Position{ StartLine: 192, - EndLine: 192, - StartPos: 4141, - EndPos: 4148, + EndLine: 192, + StartPos: 4141, + EndPos: 4148, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 192, - EndLine: 192, - StartPos: 4146, - EndPos: 4147, + EndLine: 192, + StartPos: 4146, + EndPos: 4147, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 192, - EndLine: 192, - StartPos: 4146, - EndPos: 4147, + EndLine: 192, + StartPos: 4146, + EndPos: 4147, }, Value: "a", }, @@ -9269,46 +9187,46 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 193, - EndLine: 193, - StartPos: 4153, - EndPos: 4158, + EndLine: 193, + StartPos: 4153, + EndPos: 4158, }, Expr: &expr.Die{ Position: &position.Position{ StartLine: 193, - EndLine: 193, - StartPos: 4153, - EndPos: 4157, + EndLine: 193, + StartPos: 4153, + EndPos: 4157, }, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 194, - EndLine: 194, - StartPos: 4162, - EndPos: 4169, + EndLine: 194, + StartPos: 4162, + EndPos: 4169, }, Expr: &expr.Die{ Position: &position.Position{ StartLine: 194, - EndLine: 194, - StartPos: 4162, - EndPos: 4168, + EndLine: 194, + StartPos: 4162, + EndPos: 4168, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 194, - EndLine: 194, - StartPos: 4166, - EndPos: 4167, + EndLine: 194, + StartPos: 4166, + EndPos: 4167, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 194, - EndLine: 194, - StartPos: 4166, - EndPos: 4167, + EndLine: 194, + StartPos: 4166, + EndPos: 4167, }, Value: "a", }, @@ -9318,31 +9236,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 195, - EndLine: 195, - StartPos: 4173, - EndPos: 4178, + EndLine: 195, + StartPos: 4173, + EndPos: 4178, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 195, - EndLine: 195, - StartPos: 4173, - EndPos: 4177, + EndLine: 195, + StartPos: 4173, + EndPos: 4177, }, Function: &name.Name{ Position: &position.Position{ StartLine: 195, - EndLine: 195, - StartPos: 4173, - EndPos: 4175, + EndLine: 195, + StartPos: 4173, + EndPos: 4175, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 195, - EndLine: 195, - StartPos: 4173, - EndPos: 4175, + EndLine: 195, + StartPos: 4173, + EndPos: 4175, }, Value: "foo", }, @@ -9351,9 +9269,9 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 195, - EndLine: 195, - StartPos: 4176, - EndPos: 4177, + EndLine: 195, + StartPos: 4176, + EndPos: 4177, }, }, }, @@ -9361,31 +9279,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 196, - EndLine: 196, - StartPos: 4182, - EndPos: 4200, + EndLine: 196, + StartPos: 4182, + EndPos: 4200, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 196, - EndLine: 196, - StartPos: 4182, - EndPos: 4199, + EndLine: 196, + StartPos: 4182, + EndPos: 4199, }, Function: &name.Relative{ Position: &position.Position{ StartLine: 196, - EndLine: 196, - StartPos: 4182, - EndPos: 4194, + EndLine: 196, + StartPos: 4182, + EndPos: 4194, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 196, - EndLine: 196, - StartPos: 4192, - EndPos: 4194, + EndLine: 196, + StartPos: 4192, + EndPos: 4194, }, Value: "foo", }, @@ -9394,33 +9312,33 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 196, - EndLine: 196, - StartPos: 4195, - EndPos: 4199, + EndLine: 196, + StartPos: 4195, + EndPos: 4199, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 196, - EndLine: 196, - StartPos: 4197, - EndPos: 4198, + EndLine: 196, + StartPos: 4197, + EndPos: 4198, }, - Variadic: false, + Variadic: false, IsReference: true, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 196, - EndLine: 196, - StartPos: 4197, - EndPos: 4198, + EndLine: 196, + StartPos: 4197, + EndPos: 4198, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 196, - EndLine: 196, - StartPos: 4197, - EndPos: 4198, + EndLine: 196, + StartPos: 4197, + EndPos: 4198, }, Value: "a", }, @@ -9433,31 +9351,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 197, - EndLine: 197, - StartPos: 4204, - EndPos: 4212, + EndLine: 197, + StartPos: 4204, + EndPos: 4212, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 197, - EndLine: 197, - StartPos: 4204, - EndPos: 4211, + EndLine: 197, + StartPos: 4204, + EndPos: 4211, }, Function: &name.FullyQualified{ Position: &position.Position{ StartLine: 197, - EndLine: 197, - StartPos: 4204, - EndPos: 4207, + EndLine: 197, + StartPos: 4204, + EndPos: 4207, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 197, - EndLine: 197, - StartPos: 4205, - EndPos: 4207, + EndLine: 197, + StartPos: 4205, + EndPos: 4207, }, Value: "foo", }, @@ -9466,29 +9384,28 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 197, - EndLine: 197, - StartPos: 4208, - EndPos: 4211, + EndLine: 197, + StartPos: 4208, + EndPos: 4211, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 197, - EndLine: 197, - StartPos: 4209, - EndPos: 4210, + EndLine: 197, + StartPos: 4209, + EndPos: 4210, }, - Variadic: false, + Variadic: false, IsReference: false, Expr: &expr.ShortArray{ Position: &position.Position{ StartLine: 197, - EndLine: 197, - StartPos: 4209, - EndPos: 4210, - }, - Items: []node.Node{ + EndLine: 197, + StartPos: 4209, + EndPos: 4210, }, + Items: []node.Node{}, }, }, }, @@ -9498,30 +9415,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 198, - EndLine: 198, - StartPos: 4216, - EndPos: 4230, + EndLine: 198, + StartPos: 4216, + EndPos: 4230, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 198, - EndLine: 198, - StartPos: 4216, - EndPos: 4229, + EndLine: 198, + StartPos: 4216, + EndPos: 4229, }, Function: &expr.Variable{ Position: &position.Position{ StartLine: 198, - EndLine: 198, - StartPos: 4216, - EndPos: 4219, + EndLine: 198, + StartPos: 4216, + EndPos: 4219, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 198, - EndLine: 198, - StartPos: 4216, - EndPos: 4219, + EndLine: 198, + StartPos: 4216, + EndPos: 4219, }, Value: "foo", }, @@ -9529,40 +9446,40 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 198, - EndLine: 198, - StartPos: 4220, - EndPos: 4229, + EndLine: 198, + StartPos: 4220, + EndPos: 4229, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 198, - EndLine: 198, - StartPos: 4221, - EndPos: 4228, + EndLine: 198, + StartPos: 4221, + EndPos: 4228, }, - Variadic: false, + Variadic: false, IsReference: false, Expr: &expr.Yield{ Position: &position.Position{ StartLine: 198, - EndLine: 198, - StartPos: 4221, - EndPos: 4228, + EndLine: 198, + StartPos: 4221, + EndPos: 4228, }, Value: &expr.Variable{ Position: &position.Position{ StartLine: 198, - EndLine: 198, - StartPos: 4227, - EndPos: 4228, + EndLine: 198, + StartPos: 4227, + EndPos: 4228, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 198, - EndLine: 198, - StartPos: 4227, - EndPos: 4228, + EndLine: 198, + StartPos: 4227, + EndPos: 4228, }, Value: "a", }, @@ -9576,30 +9493,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 200, - EndLine: 200, - StartPos: 4235, - EndPos: 4239, + EndLine: 200, + StartPos: 4235, + EndPos: 4239, }, Expr: &expr.PostDec{ Position: &position.Position{ StartLine: 200, - EndLine: 200, - StartPos: 4235, - EndPos: 4238, + EndLine: 200, + StartPos: 4235, + EndPos: 4238, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 200, - EndLine: 200, - StartPos: 4235, - EndPos: 4236, + EndLine: 200, + StartPos: 4235, + EndPos: 4236, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 200, - EndLine: 200, - StartPos: 4235, - EndPos: 4236, + EndLine: 200, + StartPos: 4235, + EndPos: 4236, }, Value: "a", }, @@ -9609,30 +9526,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 201, - EndLine: 201, - StartPos: 4243, - EndPos: 4247, + EndLine: 201, + StartPos: 4243, + EndPos: 4247, }, Expr: &expr.PostInc{ Position: &position.Position{ StartLine: 201, - EndLine: 201, - StartPos: 4243, - EndPos: 4246, + EndLine: 201, + StartPos: 4243, + EndPos: 4246, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 201, - EndLine: 201, - StartPos: 4243, - EndPos: 4244, + EndLine: 201, + StartPos: 4243, + EndPos: 4244, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 201, - EndLine: 201, - StartPos: 4243, - EndPos: 4244, + EndLine: 201, + StartPos: 4243, + EndPos: 4244, }, Value: "a", }, @@ -9642,30 +9559,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 202, - EndLine: 202, - StartPos: 4251, - EndPos: 4255, + EndLine: 202, + StartPos: 4251, + EndPos: 4255, }, Expr: &expr.PreDec{ Position: &position.Position{ StartLine: 202, - EndLine: 202, - StartPos: 4251, - EndPos: 4254, + EndLine: 202, + StartPos: 4251, + EndPos: 4254, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 202, - EndLine: 202, - StartPos: 4253, - EndPos: 4254, + EndLine: 202, + StartPos: 4253, + EndPos: 4254, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 202, - EndLine: 202, - StartPos: 4253, - EndPos: 4254, + EndLine: 202, + StartPos: 4253, + EndPos: 4254, }, Value: "a", }, @@ -9675,30 +9592,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 203, - EndLine: 203, - StartPos: 4259, - EndPos: 4263, + EndLine: 203, + StartPos: 4259, + EndPos: 4263, }, Expr: &expr.PreInc{ Position: &position.Position{ StartLine: 203, - EndLine: 203, - StartPos: 4259, - EndPos: 4262, + EndLine: 203, + StartPos: 4259, + EndPos: 4262, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 203, - EndLine: 203, - StartPos: 4261, - EndPos: 4262, + EndLine: 203, + StartPos: 4261, + EndPos: 4262, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 203, - EndLine: 203, - StartPos: 4261, - EndPos: 4262, + EndLine: 203, + StartPos: 4261, + EndPos: 4262, }, Value: "a", }, @@ -9708,30 +9625,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 205, - EndLine: 205, - StartPos: 4268, - EndPos: 4278, + EndLine: 205, + StartPos: 4268, + EndPos: 4278, }, Expr: &expr.Include{ Position: &position.Position{ StartLine: 205, - EndLine: 205, - StartPos: 4268, - EndPos: 4277, + EndLine: 205, + StartPos: 4268, + EndPos: 4277, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 205, - EndLine: 205, - StartPos: 4276, - EndPos: 4277, + EndLine: 205, + StartPos: 4276, + EndPos: 4277, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 205, - EndLine: 205, - StartPos: 4276, - EndPos: 4277, + EndLine: 205, + StartPos: 4276, + EndPos: 4277, }, Value: "a", }, @@ -9741,30 +9658,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 206, - EndLine: 206, - StartPos: 4282, - EndPos: 4297, + EndLine: 206, + StartPos: 4282, + EndPos: 4297, }, Expr: &expr.IncludeOnce{ Position: &position.Position{ StartLine: 206, - EndLine: 206, - StartPos: 4282, - EndPos: 4296, + EndLine: 206, + StartPos: 4282, + EndPos: 4296, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 206, - EndLine: 206, - StartPos: 4295, - EndPos: 4296, + EndLine: 206, + StartPos: 4295, + EndPos: 4296, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 206, - EndLine: 206, - StartPos: 4295, - EndPos: 4296, + EndLine: 206, + StartPos: 4295, + EndPos: 4296, }, Value: "a", }, @@ -9774,30 +9691,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 207, - EndLine: 207, - StartPos: 4301, - EndPos: 4311, + EndLine: 207, + StartPos: 4301, + EndPos: 4311, }, Expr: &expr.Require{ Position: &position.Position{ StartLine: 207, - EndLine: 207, - StartPos: 4301, - EndPos: 4310, + EndLine: 207, + StartPos: 4301, + EndPos: 4310, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 207, - EndLine: 207, - StartPos: 4309, - EndPos: 4310, + EndLine: 207, + StartPos: 4309, + EndPos: 4310, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 207, - EndLine: 207, - StartPos: 4309, - EndPos: 4310, + EndLine: 207, + StartPos: 4309, + EndPos: 4310, }, Value: "a", }, @@ -9807,30 +9724,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 208, - EndLine: 208, - StartPos: 4315, - EndPos: 4330, + EndLine: 208, + StartPos: 4315, + EndPos: 4330, }, Expr: &expr.RequireOnce{ Position: &position.Position{ StartLine: 208, - EndLine: 208, - StartPos: 4315, - EndPos: 4329, + EndLine: 208, + StartPos: 4315, + EndPos: 4329, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 208, - EndLine: 208, - StartPos: 4328, - EndPos: 4329, + EndLine: 208, + StartPos: 4328, + EndPos: 4329, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 208, - EndLine: 208, - StartPos: 4328, - EndPos: 4329, + EndLine: 208, + StartPos: 4328, + EndPos: 4329, }, Value: "a", }, @@ -9840,30 +9757,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 210, - EndLine: 210, - StartPos: 4335, - EndPos: 4352, + EndLine: 210, + StartPos: 4335, + EndPos: 4352, }, Expr: &expr.InstanceOf{ Position: &position.Position{ StartLine: 210, - EndLine: 210, - StartPos: 4335, - EndPos: 4351, + EndLine: 210, + StartPos: 4335, + EndPos: 4351, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 210, - EndLine: 210, - StartPos: 4335, - EndPos: 4336, + EndLine: 210, + StartPos: 4335, + EndPos: 4336, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 210, - EndLine: 210, - StartPos: 4335, - EndPos: 4336, + EndLine: 210, + StartPos: 4335, + EndPos: 4336, }, Value: "a", }, @@ -9871,17 +9788,17 @@ func TestPhp5(t *testing.T) { Class: &name.Name{ Position: &position.Position{ StartLine: 210, - EndLine: 210, - StartPos: 4349, - EndPos: 4351, + EndLine: 210, + StartPos: 4349, + EndPos: 4351, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 210, - EndLine: 210, - StartPos: 4349, - EndPos: 4351, + EndLine: 210, + StartPos: 4349, + EndPos: 4351, }, Value: "Foo", }, @@ -9892,30 +9809,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 211, - EndLine: 211, - StartPos: 4356, - EndPos: 4383, + EndLine: 211, + StartPos: 4356, + EndPos: 4383, }, Expr: &expr.InstanceOf{ Position: &position.Position{ StartLine: 211, - EndLine: 211, - StartPos: 4356, - EndPos: 4382, + EndLine: 211, + StartPos: 4356, + EndPos: 4382, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 211, - EndLine: 211, - StartPos: 4356, - EndPos: 4357, + EndLine: 211, + StartPos: 4356, + EndPos: 4357, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 211, - EndLine: 211, - StartPos: 4356, - EndPos: 4357, + EndLine: 211, + StartPos: 4356, + EndPos: 4357, }, Value: "a", }, @@ -9923,17 +9840,17 @@ func TestPhp5(t *testing.T) { Class: &name.Relative{ Position: &position.Position{ StartLine: 211, - EndLine: 211, - StartPos: 4370, - EndPos: 4382, + EndLine: 211, + StartPos: 4370, + EndPos: 4382, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 211, - EndLine: 211, - StartPos: 4380, - EndPos: 4382, + EndLine: 211, + StartPos: 4380, + EndPos: 4382, }, Value: "Foo", }, @@ -9944,30 +9861,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 212, - EndLine: 212, - StartPos: 4387, - EndPos: 4405, + EndLine: 212, + StartPos: 4387, + EndPos: 4405, }, Expr: &expr.InstanceOf{ Position: &position.Position{ StartLine: 212, - EndLine: 212, - StartPos: 4387, - EndPos: 4404, + EndLine: 212, + StartPos: 4387, + EndPos: 4404, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 212, - EndLine: 212, - StartPos: 4387, - EndPos: 4388, + EndLine: 212, + StartPos: 4387, + EndPos: 4388, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 212, - EndLine: 212, - StartPos: 4387, - EndPos: 4388, + EndLine: 212, + StartPos: 4387, + EndPos: 4388, }, Value: "a", }, @@ -9975,17 +9892,17 @@ func TestPhp5(t *testing.T) { Class: &name.FullyQualified{ Position: &position.Position{ StartLine: 212, - EndLine: 212, - StartPos: 4401, - EndPos: 4404, + EndLine: 212, + StartPos: 4401, + EndPos: 4404, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 212, - EndLine: 212, - StartPos: 4402, - EndPos: 4404, + EndLine: 212, + StartPos: 4402, + EndPos: 4404, }, Value: "Foo", }, @@ -9996,31 +9913,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 214, - EndLine: 214, - StartPos: 4410, - EndPos: 4423, + EndLine: 214, + StartPos: 4410, + EndPos: 4423, }, Expr: &expr.Isset{ Position: &position.Position{ StartLine: 214, - EndLine: 214, - StartPos: 4410, - EndPos: 4422, + EndLine: 214, + StartPos: 4410, + EndPos: 4422, }, Variables: []node.Node{ &expr.Variable{ Position: &position.Position{ StartLine: 214, - EndLine: 214, - StartPos: 4416, - EndPos: 4417, + EndLine: 214, + StartPos: 4416, + EndPos: 4417, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 214, - EndLine: 214, - StartPos: 4416, - EndPos: 4417, + EndLine: 214, + StartPos: 4416, + EndPos: 4417, }, Value: "a", }, @@ -10028,16 +9945,16 @@ func TestPhp5(t *testing.T) { &expr.Variable{ Position: &position.Position{ StartLine: 214, - EndLine: 214, - StartPos: 4420, - EndPos: 4421, + EndLine: 214, + StartPos: 4420, + EndPos: 4421, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 214, - EndLine: 214, - StartPos: 4420, - EndPos: 4421, + EndLine: 214, + StartPos: 4420, + EndPos: 4421, }, Value: "b", }, @@ -10048,39 +9965,39 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 215, - EndLine: 215, - StartPos: 4427, - EndPos: 4437, + EndLine: 215, + StartPos: 4427, + EndPos: 4437, }, Expr: &expr.Isset{ Position: &position.Position{ StartLine: 215, - EndLine: 215, - StartPos: 4427, - EndPos: 4436, + EndLine: 215, + StartPos: 4427, + EndPos: 4436, }, Variables: []node.Node{ &expr.ConstFetch{ Position: &position.Position{ StartLine: 215, - EndLine: 215, - StartPos: 4433, - EndPos: 4435, + EndLine: 215, + StartPos: 4433, + EndPos: 4435, }, Constant: &name.Name{ Position: &position.Position{ StartLine: 215, - EndLine: 215, - StartPos: 4433, - EndPos: 4435, + EndLine: 215, + StartPos: 4433, + EndPos: 4435, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 215, - EndLine: 215, - StartPos: 4433, - EndPos: 4435, + EndLine: 215, + StartPos: 4433, + EndPos: 4435, }, Value: "Foo", }, @@ -10093,40 +10010,39 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 216, - EndLine: 216, - StartPos: 4441, - EndPos: 4452, + EndLine: 216, + StartPos: 4441, + EndPos: 4452, }, Expr: &assign.Assign{ Position: &position.Position{ StartLine: 216, - EndLine: 216, - StartPos: 4441, - EndPos: 4451, + EndLine: 216, + StartPos: 4441, + EndPos: 4451, }, Variable: &expr.List{ Position: &position.Position{ StartLine: 216, - EndLine: 216, - StartPos: 4441, - EndPos: 4446, - }, - Items: []node.Node{ + EndLine: 216, + StartPos: 4441, + EndPos: 4446, }, + Items: []node.Node{}, }, Expression: &expr.Variable{ Position: &position.Position{ StartLine: 216, - EndLine: 216, - StartPos: 4450, - EndPos: 4451, + EndLine: 216, + StartPos: 4450, + EndPos: 4451, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 216, - EndLine: 216, - StartPos: 4450, - EndPos: 4451, + EndLine: 216, + StartPos: 4450, + EndPos: 4451, }, Value: "b", }, @@ -10136,45 +10052,45 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 217, - EndLine: 217, - StartPos: 4456, - EndPos: 4473, + EndLine: 217, + StartPos: 4456, + EndPos: 4473, }, Expr: &assign.Assign{ Position: &position.Position{ StartLine: 217, - EndLine: 217, - StartPos: 4456, - EndPos: 4472, + EndLine: 217, + StartPos: 4456, + EndPos: 4472, }, Variable: &expr.List{ Position: &position.Position{ StartLine: 217, - EndLine: 217, - StartPos: 4456, - EndPos: 4467, + EndLine: 217, + StartPos: 4456, + EndPos: 4467, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 217, - EndLine: 217, - StartPos: 4461, - EndPos: 4462, + EndLine: 217, + StartPos: 4461, + EndPos: 4462, }, Val: &expr.Variable{ Position: &position.Position{ StartLine: 217, - EndLine: 217, - StartPos: 4461, - EndPos: 4462, + EndLine: 217, + StartPos: 4461, + EndPos: 4462, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 217, - EndLine: 217, - StartPos: 4461, - EndPos: 4462, + EndLine: 217, + StartPos: 4461, + EndPos: 4462, }, Value: "a", }, @@ -10183,23 +10099,23 @@ func TestPhp5(t *testing.T) { &expr.ArrayItem{ Position: &position.Position{ StartLine: 217, - EndLine: 217, - StartPos: 4465, - EndPos: 4466, + EndLine: 217, + StartPos: 4465, + EndPos: 4466, }, Val: &expr.Variable{ Position: &position.Position{ StartLine: 217, - EndLine: 217, - StartPos: 4465, - EndPos: 4466, + EndLine: 217, + StartPos: 4465, + EndPos: 4466, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 217, - EndLine: 217, - StartPos: 4465, - EndPos: 4466, + EndLine: 217, + StartPos: 4465, + EndPos: 4466, }, Value: "b", }, @@ -10210,16 +10126,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 217, - EndLine: 217, - StartPos: 4471, - EndPos: 4472, + EndLine: 217, + StartPos: 4471, + EndPos: 4472, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 217, - EndLine: 217, - StartPos: 4471, - EndPos: 4472, + EndLine: 217, + StartPos: 4471, + EndPos: 4472, }, Value: "b", }, @@ -10229,52 +10145,52 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 218, - EndLine: 218, - StartPos: 4477, - EndPos: 4492, + EndLine: 218, + StartPos: 4477, + EndPos: 4492, }, Expr: &assign.Assign{ Position: &position.Position{ StartLine: 218, - EndLine: 218, - StartPos: 4477, - EndPos: 4491, + EndLine: 218, + StartPos: 4477, + EndPos: 4491, }, Variable: &expr.List{ Position: &position.Position{ StartLine: 218, - EndLine: 218, - StartPos: 4477, - EndPos: 4486, + EndLine: 218, + StartPos: 4477, + EndPos: 4486, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 218, - EndLine: 218, - StartPos: 4482, - EndPos: 4485, + EndLine: 218, + StartPos: 4482, + EndPos: 4485, }, Val: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 218, - EndLine: 218, - StartPos: 4482, - EndPos: 4485, + EndLine: 218, + StartPos: 4482, + EndPos: 4485, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 218, - EndLine: 218, - StartPos: 4482, - EndPos: 4483, + EndLine: 218, + StartPos: 4482, + EndPos: 4483, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 218, - EndLine: 218, - StartPos: 4482, - EndPos: 4483, + EndLine: 218, + StartPos: 4482, + EndPos: 4483, }, Value: "a", }, @@ -10286,16 +10202,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 218, - EndLine: 218, - StartPos: 4490, - EndPos: 4491, + EndLine: 218, + StartPos: 4490, + EndPos: 4491, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 218, - EndLine: 218, - StartPos: 4490, - EndPos: 4491, + EndLine: 218, + StartPos: 4490, + EndPos: 4491, }, Value: "b", }, @@ -10305,60 +10221,60 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 219, - EndLine: 219, - StartPos: 4496, - EndPos: 4515, + EndLine: 219, + StartPos: 4496, + EndPos: 4515, }, Expr: &assign.Assign{ Position: &position.Position{ StartLine: 219, - EndLine: 219, - StartPos: 4496, - EndPos: 4514, + EndLine: 219, + StartPos: 4496, + EndPos: 4514, }, Variable: &expr.List{ Position: &position.Position{ StartLine: 219, - EndLine: 219, - StartPos: 4496, - EndPos: 4509, + EndLine: 219, + StartPos: 4496, + EndPos: 4509, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 219, - EndLine: 219, - StartPos: 4501, - EndPos: 4508, + EndLine: 219, + StartPos: 4501, + EndPos: 4508, }, Val: &expr.List{ Position: &position.Position{ StartLine: 219, - EndLine: 219, - StartPos: 4501, - EndPos: 4508, + EndLine: 219, + StartPos: 4501, + EndPos: 4508, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 219, - EndLine: 219, - StartPos: 4506, - EndPos: 4507, + EndLine: 219, + StartPos: 4506, + EndPos: 4507, }, Val: &expr.Variable{ Position: &position.Position{ StartLine: 219, - EndLine: 219, - StartPos: 4506, - EndPos: 4507, + EndLine: 219, + StartPos: 4506, + EndPos: 4507, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 219, - EndLine: 219, - StartPos: 4506, - EndPos: 4507, + EndLine: 219, + StartPos: 4506, + EndPos: 4507, }, Value: "a", }, @@ -10372,16 +10288,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 219, - EndLine: 219, - StartPos: 4513, - EndPos: 4514, + EndLine: 219, + StartPos: 4513, + EndPos: 4514, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 219, - EndLine: 219, - StartPos: 4513, - EndPos: 4514, + EndLine: 219, + StartPos: 4513, + EndPos: 4514, }, Value: "b", }, @@ -10391,30 +10307,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 221, - EndLine: 221, - StartPos: 4520, - EndPos: 4529, + EndLine: 221, + StartPos: 4520, + EndPos: 4529, }, Expr: &expr.MethodCall{ Position: &position.Position{ StartLine: 221, - EndLine: 221, - StartPos: 4520, - EndPos: 4528, + EndLine: 221, + StartPos: 4520, + EndPos: 4528, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 221, - EndLine: 221, - StartPos: 4520, - EndPos: 4521, + EndLine: 221, + StartPos: 4520, + EndPos: 4521, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 221, - EndLine: 221, - StartPos: 4520, - EndPos: 4521, + EndLine: 221, + StartPos: 4520, + EndPos: 4521, }, Value: "a", }, @@ -10422,18 +10338,18 @@ func TestPhp5(t *testing.T) { Method: &node.Identifier{ Position: &position.Position{ StartLine: 221, - EndLine: 221, - StartPos: 4524, - EndPos: 4526, + EndLine: 221, + StartPos: 4524, + EndPos: 4526, }, Value: "foo", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 221, - EndLine: 221, - StartPos: 4527, - EndPos: 4528, + EndLine: 221, + StartPos: 4527, + EndPos: 4528, }, }, }, @@ -10441,31 +10357,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 222, - EndLine: 222, - StartPos: 4533, - EndPos: 4540, + EndLine: 222, + StartPos: 4533, + EndPos: 4540, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 222, - EndLine: 222, - StartPos: 4533, - EndPos: 4539, + EndLine: 222, + StartPos: 4533, + EndPos: 4539, }, Class: &name.Name{ Position: &position.Position{ StartLine: 222, - EndLine: 222, - StartPos: 4537, - EndPos: 4539, + EndLine: 222, + StartPos: 4537, + EndPos: 4539, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 222, - EndLine: 222, - StartPos: 4537, - EndPos: 4539, + EndLine: 222, + StartPos: 4537, + EndPos: 4539, }, Value: "Foo", }, @@ -10476,31 +10392,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 223, - EndLine: 223, - StartPos: 4544, - EndPos: 4563, + EndLine: 223, + StartPos: 4544, + EndPos: 4563, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 223, - EndLine: 223, - StartPos: 4544, - EndPos: 4562, + EndLine: 223, + StartPos: 4544, + EndPos: 4562, }, Class: &name.Relative{ Position: &position.Position{ StartLine: 223, - EndLine: 223, - StartPos: 4548, - EndPos: 4560, + EndLine: 223, + StartPos: 4548, + EndPos: 4560, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 223, - EndLine: 223, - StartPos: 4558, - EndPos: 4560, + EndLine: 223, + StartPos: 4558, + EndPos: 4560, }, Value: "Foo", }, @@ -10509,9 +10425,9 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 223, - EndLine: 223, - StartPos: 4561, - EndPos: 4562, + EndLine: 223, + StartPos: 4561, + EndPos: 4562, }, }, }, @@ -10519,31 +10435,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 224, - EndLine: 224, - StartPos: 4567, - EndPos: 4577, + EndLine: 224, + StartPos: 4567, + EndPos: 4577, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 224, - EndLine: 224, - StartPos: 4567, - EndPos: 4576, + EndLine: 224, + StartPos: 4567, + EndPos: 4576, }, Class: &name.FullyQualified{ Position: &position.Position{ StartLine: 224, - EndLine: 224, - StartPos: 4571, - EndPos: 4574, + EndLine: 224, + StartPos: 4571, + EndPos: 4574, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 224, - EndLine: 224, - StartPos: 4572, - EndPos: 4574, + EndLine: 224, + StartPos: 4572, + EndPos: 4574, }, Value: "Foo", }, @@ -10552,9 +10468,9 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 224, - EndLine: 224, - StartPos: 4575, - EndPos: 4576, + EndLine: 224, + StartPos: 4575, + EndPos: 4576, }, }, }, @@ -10562,30 +10478,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 225, - EndLine: 225, - StartPos: 4581, - EndPos: 4590, + EndLine: 225, + StartPos: 4581, + EndPos: 4590, }, Expr: &expr.Print{ Position: &position.Position{ StartLine: 225, - EndLine: 225, - StartPos: 4581, - EndPos: 4588, + EndLine: 225, + StartPos: 4581, + EndPos: 4588, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 225, - EndLine: 225, - StartPos: 4587, - EndPos: 4588, + EndLine: 225, + StartPos: 4587, + EndPos: 4588, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 225, - EndLine: 225, - StartPos: 4587, - EndPos: 4588, + EndLine: 225, + StartPos: 4587, + EndPos: 4588, }, Value: "a", }, @@ -10595,30 +10511,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 226, - EndLine: 226, - StartPos: 4594, - EndPos: 4601, + EndLine: 226, + StartPos: 4594, + EndPos: 4601, }, Expr: &expr.PropertyFetch{ Position: &position.Position{ StartLine: 226, - EndLine: 226, - StartPos: 4594, - EndPos: 4600, + EndLine: 226, + StartPos: 4594, + EndPos: 4600, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 226, - EndLine: 226, - StartPos: 4594, - EndPos: 4595, + EndLine: 226, + StartPos: 4594, + EndPos: 4595, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 226, - EndLine: 226, - StartPos: 4594, - EndPos: 4595, + EndLine: 226, + StartPos: 4594, + EndPos: 4595, }, Value: "a", }, @@ -10626,9 +10542,9 @@ func TestPhp5(t *testing.T) { Property: &node.Identifier{ Position: &position.Position{ StartLine: 226, - EndLine: 226, - StartPos: 4598, - EndPos: 4600, + EndLine: 226, + StartPos: 4598, + EndPos: 4600, }, Value: "foo", }, @@ -10637,37 +10553,37 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 227, - EndLine: 227, - StartPos: 4605, - EndPos: 4615, + EndLine: 227, + StartPos: 4605, + EndPos: 4615, }, Expr: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 227, - EndLine: 227, - StartPos: 4605, - EndPos: 4613, + EndLine: 227, + StartPos: 4605, + EndPos: 4613, }, Variable: &expr.PropertyFetch{ Position: &position.Position{ StartLine: 227, - EndLine: 227, - StartPos: 4605, - EndPos: 4611, + EndLine: 227, + StartPos: 4605, + EndPos: 4611, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 227, - EndLine: 227, - StartPos: 4605, - EndPos: 4606, + EndLine: 227, + StartPos: 4605, + EndPos: 4606, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 227, - EndLine: 227, - StartPos: 4605, - EndPos: 4606, + EndLine: 227, + StartPos: 4605, + EndPos: 4606, }, Value: "a", }, @@ -10675,9 +10591,9 @@ func TestPhp5(t *testing.T) { Property: &node.Identifier{ Position: &position.Position{ StartLine: 227, - EndLine: 227, - StartPos: 4609, - EndPos: 4611, + EndLine: 227, + StartPos: 4609, + EndPos: 4611, }, Value: "foo", }, @@ -10685,9 +10601,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 227, - EndLine: 227, - StartPos: 4613, - EndPos: 4613, + EndLine: 227, + StartPos: 4613, + EndPos: 4613, }, Value: "1", }, @@ -10696,58 +10612,58 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4619, - EndPos: 4647, + EndLine: 228, + StartPos: 4619, + EndPos: 4647, }, Expr: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4619, - EndPos: 4645, + EndLine: 228, + StartPos: 4619, + EndPos: 4645, }, Variable: &expr.PropertyFetch{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4619, - EndPos: 4643, + EndLine: 228, + StartPos: 4619, + EndPos: 4643, }, Variable: &expr.MethodCall{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4619, - EndPos: 4637, + EndLine: 228, + StartPos: 4619, + EndPos: 4637, }, Variable: &expr.PropertyFetch{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4619, - EndPos: 4630, + EndLine: 228, + StartPos: 4619, + EndPos: 4630, }, Variable: &expr.PropertyFetch{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4619, - EndPos: 4625, + EndLine: 228, + StartPos: 4619, + EndPos: 4625, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4619, - EndPos: 4620, + EndLine: 228, + StartPos: 4619, + EndPos: 4620, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4619, - EndPos: 4620, + EndLine: 228, + StartPos: 4619, + EndPos: 4620, }, Value: "a", }, @@ -10755,9 +10671,9 @@ func TestPhp5(t *testing.T) { Property: &node.Identifier{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4623, - EndPos: 4625, + EndLine: 228, + StartPos: 4623, + EndPos: 4625, }, Value: "foo", }, @@ -10765,9 +10681,9 @@ func TestPhp5(t *testing.T) { Property: &node.Identifier{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4628, - EndPos: 4630, + EndLine: 228, + StartPos: 4628, + EndPos: 4630, }, Value: "bar", }, @@ -10775,27 +10691,27 @@ func TestPhp5(t *testing.T) { Method: &node.Identifier{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4633, - EndPos: 4635, + EndLine: 228, + StartPos: 4633, + EndPos: 4635, }, Value: "baz", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4636, - EndPos: 4637, + EndLine: 228, + StartPos: 4636, + EndPos: 4637, }, }, }, Property: &node.Identifier{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4640, - EndPos: 4643, + EndLine: 228, + StartPos: 4640, + EndPos: 4643, }, Value: "quux", }, @@ -10803,9 +10719,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4645, - EndPos: 4645, + EndLine: 228, + StartPos: 4645, + EndPos: 4645, }, Value: "0", }, @@ -10814,44 +10730,44 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 229, - EndLine: 229, - StartPos: 4651, - EndPos: 4666, + EndLine: 229, + StartPos: 4651, + EndPos: 4666, }, Expr: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 229, - EndLine: 229, - StartPos: 4651, - EndPos: 4664, + EndLine: 229, + StartPos: 4651, + EndPos: 4664, }, Variable: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 229, - EndLine: 229, - StartPos: 4651, - EndPos: 4661, + EndLine: 229, + StartPos: 4651, + EndPos: 4661, }, Variable: &expr.MethodCall{ Position: &position.Position{ StartLine: 229, - EndLine: 229, - StartPos: 4651, - EndPos: 4659, + EndLine: 229, + StartPos: 4651, + EndPos: 4659, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 229, - EndLine: 229, - StartPos: 4651, - EndPos: 4652, + EndLine: 229, + StartPos: 4651, + EndPos: 4652, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 229, - EndLine: 229, - StartPos: 4651, - EndPos: 4652, + EndLine: 229, + StartPos: 4651, + EndPos: 4652, }, Value: "a", }, @@ -10859,27 +10775,27 @@ func TestPhp5(t *testing.T) { Method: &node.Identifier{ Position: &position.Position{ StartLine: 229, - EndLine: 229, - StartPos: 4655, - EndPos: 4657, + EndLine: 229, + StartPos: 4655, + EndPos: 4657, }, Value: "foo", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 229, - EndLine: 229, - StartPos: 4658, - EndPos: 4659, + EndLine: 229, + StartPos: 4658, + EndPos: 4659, }, }, }, Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 229, - EndLine: 229, - StartPos: 4661, - EndPos: 4661, + EndLine: 229, + StartPos: 4661, + EndPos: 4661, }, Value: "1", }, @@ -10887,9 +10803,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 229, - EndLine: 229, - StartPos: 4664, - EndPos: 4664, + EndLine: 229, + StartPos: 4664, + EndPos: 4664, }, Value: "1", }, @@ -10898,40 +10814,40 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 230, - EndLine: 230, - StartPos: 4670, - EndPos: 4678, + EndLine: 230, + StartPos: 4670, + EndPos: 4678, }, Expr: &expr.ShellExec{ Position: &position.Position{ StartLine: 230, - EndLine: 230, - StartPos: 4670, - EndPos: 4677, + EndLine: 230, + StartPos: 4670, + EndPos: 4677, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 230, - EndLine: 230, - StartPos: 4671, - EndPos: 4674, + EndLine: 230, + StartPos: 4671, + EndPos: 4674, }, Value: "cmd ", }, &expr.Variable{ Position: &position.Position{ StartLine: 230, - EndLine: 230, - StartPos: 4675, - EndPos: 4676, + EndLine: 230, + StartPos: 4675, + EndPos: 4676, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 230, - EndLine: 230, - StartPos: 4675, - EndPos: 4676, + EndLine: 230, + StartPos: 4675, + EndPos: 4676, }, Value: "a", }, @@ -10942,16 +10858,16 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 231, - EndLine: 231, - StartPos: 4682, - EndPos: 4687, + EndLine: 231, + StartPos: 4682, + EndPos: 4687, }, Expr: &expr.ShellExec{ Position: &position.Position{ StartLine: 231, - EndLine: 231, - StartPos: 4682, - EndPos: 4686, + EndLine: 231, + StartPos: 4682, + EndPos: 4686, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ @@ -10963,67 +10879,65 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 232, - EndLine: 232, - StartPos: 4691, - EndPos: 4693, + EndLine: 232, + StartPos: 4691, + EndPos: 4693, }, Expr: &expr.ShellExec{ Position: &position.Position{ StartLine: 232, - EndLine: 232, - StartPos: 4691, - EndPos: 4692, - }, - Parts: []node.Node{ + EndLine: 232, + StartPos: 4691, + EndPos: 4692, }, + Parts: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 233, - EndLine: 233, - StartPos: 4697, - EndPos: 4699, + EndLine: 233, + StartPos: 4697, + EndPos: 4699, }, Expr: &expr.ShortArray{ Position: &position.Position{ StartLine: 233, - EndLine: 233, - StartPos: 4697, - EndPos: 4698, - }, - Items: []node.Node{ + EndLine: 233, + StartPos: 4697, + EndPos: 4698, }, + Items: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 234, - EndLine: 234, - StartPos: 4703, - EndPos: 4706, + EndLine: 234, + StartPos: 4703, + EndPos: 4706, }, Expr: &expr.ShortArray{ Position: &position.Position{ StartLine: 234, - EndLine: 234, - StartPos: 4703, - EndPos: 4705, + EndLine: 234, + StartPos: 4703, + EndPos: 4705, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 234, - EndLine: 234, - StartPos: 4704, - EndPos: 4704, + EndLine: 234, + StartPos: 4704, + EndPos: 4704, }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 234, - EndLine: 234, - StartPos: 4704, - EndPos: 4704, + EndLine: 234, + StartPos: 4704, + EndPos: 4704, }, Value: "1", }, @@ -11034,40 +10948,40 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 235, - EndLine: 235, - StartPos: 4710, - EndPos: 4722, + EndLine: 235, + StartPos: 4710, + EndPos: 4722, }, Expr: &expr.ShortArray{ Position: &position.Position{ StartLine: 235, - EndLine: 235, - StartPos: 4710, - EndPos: 4721, + EndLine: 235, + StartPos: 4710, + EndPos: 4721, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 235, - EndLine: 235, - StartPos: 4711, - EndPos: 4714, + EndLine: 235, + StartPos: 4711, + EndPos: 4714, }, Key: &scalar.Lnumber{ Position: &position.Position{ StartLine: 235, - EndLine: 235, - StartPos: 4711, - EndPos: 4711, + EndLine: 235, + StartPos: 4711, + EndPos: 4711, }, Value: "1", }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 235, - EndLine: 235, - StartPos: 4714, - EndPos: 4714, + EndLine: 235, + StartPos: 4714, + EndPos: 4714, }, Value: "1", }, @@ -11075,69 +10989,68 @@ func TestPhp5(t *testing.T) { &expr.ArrayItem{ Position: &position.Position{ StartLine: 235, - EndLine: 235, - StartPos: 4717, - EndPos: 4719, + EndLine: 235, + StartPos: 4717, + EndPos: 4719, }, Val: &expr.Reference{ Position: &position.Position{ StartLine: 235, - EndLine: 235, - StartPos: 4717, - EndPos: 4719, + EndLine: 235, + StartPos: 4717, + EndPos: 4719, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 235, - EndLine: 235, - StartPos: 4718, - EndPos: 4719, + EndLine: 235, + StartPos: 4718, + EndPos: 4719, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 235, - EndLine: 235, - StartPos: 4718, - EndPos: 4719, + EndLine: 235, + StartPos: 4718, + EndPos: 4719, }, Value: "b", }, }, }, }, - &expr.ArrayItem{ - }, + &expr.ArrayItem{}, }, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 237, - EndLine: 237, - StartPos: 4727, - EndPos: 4737, + EndLine: 237, + StartPos: 4727, + EndPos: 4737, }, Expr: &expr.StaticCall{ Position: &position.Position{ StartLine: 237, - EndLine: 237, - StartPos: 4727, - EndPos: 4736, + EndLine: 237, + StartPos: 4727, + EndPos: 4736, }, Class: &name.Name{ Position: &position.Position{ StartLine: 237, - EndLine: 237, - StartPos: 4727, - EndPos: 4729, + EndLine: 237, + StartPos: 4727, + EndPos: 4729, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 237, - EndLine: 237, - StartPos: 4727, - EndPos: 4729, + EndLine: 237, + StartPos: 4727, + EndPos: 4729, }, Value: "Foo", }, @@ -11146,18 +11059,18 @@ func TestPhp5(t *testing.T) { Call: &node.Identifier{ Position: &position.Position{ StartLine: 237, - EndLine: 237, - StartPos: 4732, - EndPos: 4734, + EndLine: 237, + StartPos: 4732, + EndPos: 4734, }, Value: "bar", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 237, - EndLine: 237, - StartPos: 4735, - EndPos: 4736, + EndLine: 237, + StartPos: 4735, + EndPos: 4736, }, }, }, @@ -11165,31 +11078,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 238, - EndLine: 238, - StartPos: 4741, - EndPos: 4761, + EndLine: 238, + StartPos: 4741, + EndPos: 4761, }, Expr: &expr.StaticCall{ Position: &position.Position{ StartLine: 238, - EndLine: 238, - StartPos: 4741, - EndPos: 4760, + EndLine: 238, + StartPos: 4741, + EndPos: 4760, }, Class: &name.Relative{ Position: &position.Position{ StartLine: 238, - EndLine: 238, - StartPos: 4741, - EndPos: 4753, + EndLine: 238, + StartPos: 4741, + EndPos: 4753, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 238, - EndLine: 238, - StartPos: 4751, - EndPos: 4753, + EndLine: 238, + StartPos: 4751, + EndPos: 4753, }, Value: "Foo", }, @@ -11198,18 +11111,18 @@ func TestPhp5(t *testing.T) { Call: &node.Identifier{ Position: &position.Position{ StartLine: 238, - EndLine: 238, - StartPos: 4756, - EndPos: 4758, + EndLine: 238, + StartPos: 4756, + EndPos: 4758, }, Value: "bar", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 238, - EndLine: 238, - StartPos: 4759, - EndPos: 4760, + EndLine: 238, + StartPos: 4759, + EndPos: 4760, }, }, }, @@ -11217,31 +11130,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 239, - EndLine: 239, - StartPos: 4765, - EndPos: 4776, + EndLine: 239, + StartPos: 4765, + EndPos: 4776, }, Expr: &expr.StaticCall{ Position: &position.Position{ StartLine: 239, - EndLine: 239, - StartPos: 4765, - EndPos: 4775, + EndLine: 239, + StartPos: 4765, + EndPos: 4775, }, Class: &name.FullyQualified{ Position: &position.Position{ StartLine: 239, - EndLine: 239, - StartPos: 4765, - EndPos: 4768, + EndLine: 239, + StartPos: 4765, + EndPos: 4768, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 239, - EndLine: 239, - StartPos: 4766, - EndPos: 4768, + EndLine: 239, + StartPos: 4766, + EndPos: 4768, }, Value: "Foo", }, @@ -11250,18 +11163,18 @@ func TestPhp5(t *testing.T) { Call: &node.Identifier{ Position: &position.Position{ StartLine: 239, - EndLine: 239, - StartPos: 4771, - EndPos: 4773, + EndLine: 239, + StartPos: 4771, + EndPos: 4773, }, Value: "bar", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 239, - EndLine: 239, - StartPos: 4774, - EndPos: 4775, + EndLine: 239, + StartPos: 4774, + EndPos: 4775, }, }, }, @@ -11269,31 +11182,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 240, - EndLine: 240, - StartPos: 4780, - EndPos: 4791, + EndLine: 240, + StartPos: 4780, + EndPos: 4791, }, Expr: &expr.StaticCall{ Position: &position.Position{ StartLine: 240, - EndLine: 240, - StartPos: 4780, - EndPos: 4790, + EndLine: 240, + StartPos: 4780, + EndPos: 4790, }, Class: &name.Name{ Position: &position.Position{ StartLine: 240, - EndLine: 240, - StartPos: 4780, - EndPos: 4782, + EndLine: 240, + StartPos: 4780, + EndPos: 4782, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 240, - EndLine: 240, - StartPos: 4780, - EndPos: 4782, + EndLine: 240, + StartPos: 4780, + EndPos: 4782, }, Value: "Foo", }, @@ -11302,16 +11215,16 @@ func TestPhp5(t *testing.T) { Call: &expr.Variable{ Position: &position.Position{ StartLine: 240, - EndLine: 240, - StartPos: 4785, - EndPos: 4788, + EndLine: 240, + StartPos: 4785, + EndPos: 4788, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 240, - EndLine: 240, - StartPos: 4785, - EndPos: 4788, + EndLine: 240, + StartPos: 4785, + EndPos: 4788, }, Value: "bar", }, @@ -11319,9 +11232,9 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 240, - EndLine: 240, - StartPos: 4789, - EndPos: 4790, + EndLine: 240, + StartPos: 4789, + EndPos: 4790, }, }, }, @@ -11329,30 +11242,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 241, - EndLine: 241, - StartPos: 4795, - EndPos: 4807, + EndLine: 241, + StartPos: 4795, + EndPos: 4807, }, Expr: &expr.StaticCall{ Position: &position.Position{ StartLine: 241, - EndLine: 241, - StartPos: 4795, - EndPos: 4806, + EndLine: 241, + StartPos: 4795, + EndPos: 4806, }, Class: &expr.Variable{ Position: &position.Position{ StartLine: 241, - EndLine: 241, - StartPos: 4795, - EndPos: 4798, + EndLine: 241, + StartPos: 4795, + EndPos: 4798, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 241, - EndLine: 241, - StartPos: 4795, - EndPos: 4798, + EndLine: 241, + StartPos: 4795, + EndPos: 4798, }, Value: "foo", }, @@ -11360,16 +11273,16 @@ func TestPhp5(t *testing.T) { Call: &expr.Variable{ Position: &position.Position{ StartLine: 241, - EndLine: 241, - StartPos: 4801, - EndPos: 4804, + EndLine: 241, + StartPos: 4801, + EndPos: 4804, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 241, - EndLine: 241, - StartPos: 4801, - EndPos: 4804, + EndLine: 241, + StartPos: 4801, + EndPos: 4804, }, Value: "bar", }, @@ -11377,9 +11290,9 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 241, - EndLine: 241, - StartPos: 4805, - EndPos: 4806, + EndLine: 241, + StartPos: 4805, + EndPos: 4806, }, }, }, @@ -11387,31 +11300,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 242, - EndLine: 242, - StartPos: 4811, - EndPos: 4820, + EndLine: 242, + StartPos: 4811, + EndPos: 4820, }, Expr: &expr.StaticPropertyFetch{ Position: &position.Position{ StartLine: 242, - EndLine: 242, - StartPos: 4811, - EndPos: 4819, + EndLine: 242, + StartPos: 4811, + EndPos: 4819, }, Class: &name.Name{ Position: &position.Position{ StartLine: 242, - EndLine: 242, - StartPos: 4811, - EndPos: 4813, + EndLine: 242, + StartPos: 4811, + EndPos: 4813, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 242, - EndLine: 242, - StartPos: 4811, - EndPos: 4813, + EndLine: 242, + StartPos: 4811, + EndPos: 4813, }, Value: "Foo", }, @@ -11420,16 +11333,16 @@ func TestPhp5(t *testing.T) { Property: &expr.Variable{ Position: &position.Position{ StartLine: 242, - EndLine: 242, - StartPos: 4816, - EndPos: 4819, + EndLine: 242, + StartPos: 4816, + EndPos: 4819, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 242, - EndLine: 242, - StartPos: 4816, - EndPos: 4819, + EndLine: 242, + StartPos: 4816, + EndPos: 4819, }, Value: "bar", }, @@ -11439,31 +11352,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 243, - EndLine: 243, - StartPos: 4824, - EndPos: 4843, + EndLine: 243, + StartPos: 4824, + EndPos: 4843, }, Expr: &expr.StaticPropertyFetch{ Position: &position.Position{ StartLine: 243, - EndLine: 243, - StartPos: 4824, - EndPos: 4842, + EndLine: 243, + StartPos: 4824, + EndPos: 4842, }, Class: &name.Relative{ Position: &position.Position{ StartLine: 243, - EndLine: 243, - StartPos: 4824, - EndPos: 4836, + EndLine: 243, + StartPos: 4824, + EndPos: 4836, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 243, - EndLine: 243, - StartPos: 4834, - EndPos: 4836, + EndLine: 243, + StartPos: 4834, + EndPos: 4836, }, Value: "Foo", }, @@ -11472,16 +11385,16 @@ func TestPhp5(t *testing.T) { Property: &expr.Variable{ Position: &position.Position{ StartLine: 243, - EndLine: 243, - StartPos: 4839, - EndPos: 4842, + EndLine: 243, + StartPos: 4839, + EndPos: 4842, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 243, - EndLine: 243, - StartPos: 4839, - EndPos: 4842, + EndLine: 243, + StartPos: 4839, + EndPos: 4842, }, Value: "bar", }, @@ -11491,31 +11404,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 244, - EndLine: 244, - StartPos: 4847, - EndPos: 4857, + EndLine: 244, + StartPos: 4847, + EndPos: 4857, }, Expr: &expr.StaticPropertyFetch{ Position: &position.Position{ StartLine: 244, - EndLine: 244, - StartPos: 4847, - EndPos: 4856, + EndLine: 244, + StartPos: 4847, + EndPos: 4856, }, Class: &name.FullyQualified{ Position: &position.Position{ StartLine: 244, - EndLine: 244, - StartPos: 4847, - EndPos: 4850, + EndLine: 244, + StartPos: 4847, + EndPos: 4850, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 244, - EndLine: 244, - StartPos: 4848, - EndPos: 4850, + EndLine: 244, + StartPos: 4848, + EndPos: 4850, }, Value: "Foo", }, @@ -11524,16 +11437,16 @@ func TestPhp5(t *testing.T) { Property: &expr.Variable{ Position: &position.Position{ StartLine: 244, - EndLine: 244, - StartPos: 4853, - EndPos: 4856, + EndLine: 244, + StartPos: 4853, + EndPos: 4856, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 244, - EndLine: 244, - StartPos: 4853, - EndPos: 4856, + EndLine: 244, + StartPos: 4853, + EndPos: 4856, }, Value: "bar", }, @@ -11543,30 +11456,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 245, - EndLine: 245, - StartPos: 4861, - EndPos: 4873, + EndLine: 245, + StartPos: 4861, + EndPos: 4873, }, Expr: &expr.Ternary{ Position: &position.Position{ StartLine: 245, - EndLine: 245, - StartPos: 4861, - EndPos: 4872, + EndLine: 245, + StartPos: 4861, + EndPos: 4872, }, Condition: &expr.Variable{ Position: &position.Position{ StartLine: 245, - EndLine: 245, - StartPos: 4861, - EndPos: 4862, + EndLine: 245, + StartPos: 4861, + EndPos: 4862, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 245, - EndLine: 245, - StartPos: 4861, - EndPos: 4862, + EndLine: 245, + StartPos: 4861, + EndPos: 4862, }, Value: "a", }, @@ -11574,16 +11487,16 @@ func TestPhp5(t *testing.T) { IfTrue: &expr.Variable{ Position: &position.Position{ StartLine: 245, - EndLine: 245, - StartPos: 4866, - EndPos: 4867, + EndLine: 245, + StartPos: 4866, + EndPos: 4867, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 245, - EndLine: 245, - StartPos: 4866, - EndPos: 4867, + EndLine: 245, + StartPos: 4866, + EndPos: 4867, }, Value: "b", }, @@ -11591,16 +11504,16 @@ func TestPhp5(t *testing.T) { IfFalse: &expr.Variable{ Position: &position.Position{ StartLine: 245, - EndLine: 245, - StartPos: 4871, - EndPos: 4872, + EndLine: 245, + StartPos: 4871, + EndPos: 4872, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 245, - EndLine: 245, - StartPos: 4871, - EndPos: 4872, + EndLine: 245, + StartPos: 4871, + EndPos: 4872, }, Value: "c", }, @@ -11610,30 +11523,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 246, - EndLine: 246, - StartPos: 4877, - EndPos: 4886, + EndLine: 246, + StartPos: 4877, + EndPos: 4886, }, Expr: &expr.Ternary{ Position: &position.Position{ StartLine: 246, - EndLine: 246, - StartPos: 4877, - EndPos: 4885, + EndLine: 246, + StartPos: 4877, + EndPos: 4885, }, Condition: &expr.Variable{ Position: &position.Position{ StartLine: 246, - EndLine: 246, - StartPos: 4877, - EndPos: 4878, + EndLine: 246, + StartPos: 4877, + EndPos: 4878, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 246, - EndLine: 246, - StartPos: 4877, - EndPos: 4878, + EndLine: 246, + StartPos: 4877, + EndPos: 4878, }, Value: "a", }, @@ -11641,16 +11554,16 @@ func TestPhp5(t *testing.T) { IfFalse: &expr.Variable{ Position: &position.Position{ StartLine: 246, - EndLine: 246, - StartPos: 4884, - EndPos: 4885, + EndLine: 246, + StartPos: 4884, + EndPos: 4885, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 246, - EndLine: 246, - StartPos: 4884, - EndPos: 4885, + EndLine: 246, + StartPos: 4884, + EndPos: 4885, }, Value: "c", }, @@ -11660,30 +11573,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4890, - EndPos: 4912, + EndLine: 247, + StartPos: 4890, + EndPos: 4912, }, Expr: &expr.Ternary{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4890, - EndPos: 4911, + EndLine: 247, + StartPos: 4890, + EndPos: 4911, }, Condition: &expr.Variable{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4890, - EndPos: 4891, + EndLine: 247, + StartPos: 4890, + EndPos: 4891, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4890, - EndPos: 4891, + EndLine: 247, + StartPos: 4890, + EndPos: 4891, }, Value: "a", }, @@ -11691,23 +11604,23 @@ func TestPhp5(t *testing.T) { IfTrue: &expr.Ternary{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4895, - EndPos: 4906, + EndLine: 247, + StartPos: 4895, + EndPos: 4906, }, Condition: &expr.Variable{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4895, - EndPos: 4896, + EndLine: 247, + StartPos: 4895, + EndPos: 4896, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4895, - EndPos: 4896, + EndLine: 247, + StartPos: 4895, + EndPos: 4896, }, Value: "b", }, @@ -11715,16 +11628,16 @@ func TestPhp5(t *testing.T) { IfTrue: &expr.Variable{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4900, - EndPos: 4901, + EndLine: 247, + StartPos: 4900, + EndPos: 4901, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4900, - EndPos: 4901, + EndLine: 247, + StartPos: 4900, + EndPos: 4901, }, Value: "c", }, @@ -11732,16 +11645,16 @@ func TestPhp5(t *testing.T) { IfFalse: &expr.Variable{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4905, - EndPos: 4906, + EndLine: 247, + StartPos: 4905, + EndPos: 4906, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4905, - EndPos: 4906, + EndLine: 247, + StartPos: 4905, + EndPos: 4906, }, Value: "d", }, @@ -11750,16 +11663,16 @@ func TestPhp5(t *testing.T) { IfFalse: &expr.Variable{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4910, - EndPos: 4911, + EndLine: 247, + StartPos: 4910, + EndPos: 4911, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4910, - EndPos: 4911, + EndLine: 247, + StartPos: 4910, + EndPos: 4911, }, Value: "e", }, @@ -11769,37 +11682,37 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4916, - EndPos: 4938, + EndLine: 248, + StartPos: 4916, + EndPos: 4938, }, Expr: &expr.Ternary{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4916, - EndPos: 4937, + EndLine: 248, + StartPos: 4916, + EndPos: 4937, }, Condition: &expr.Ternary{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4916, - EndPos: 4927, + EndLine: 248, + StartPos: 4916, + EndPos: 4927, }, Condition: &expr.Variable{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4916, - EndPos: 4917, + EndLine: 248, + StartPos: 4916, + EndPos: 4917, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4916, - EndPos: 4917, + EndLine: 248, + StartPos: 4916, + EndPos: 4917, }, Value: "a", }, @@ -11807,16 +11720,16 @@ func TestPhp5(t *testing.T) { IfTrue: &expr.Variable{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4921, - EndPos: 4922, + EndLine: 248, + StartPos: 4921, + EndPos: 4922, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4921, - EndPos: 4922, + EndLine: 248, + StartPos: 4921, + EndPos: 4922, }, Value: "b", }, @@ -11824,16 +11737,16 @@ func TestPhp5(t *testing.T) { IfFalse: &expr.Variable{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4926, - EndPos: 4927, + EndLine: 248, + StartPos: 4926, + EndPos: 4927, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4926, - EndPos: 4927, + EndLine: 248, + StartPos: 4926, + EndPos: 4927, }, Value: "c", }, @@ -11842,16 +11755,16 @@ func TestPhp5(t *testing.T) { IfTrue: &expr.Variable{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4931, - EndPos: 4932, + EndLine: 248, + StartPos: 4931, + EndPos: 4932, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4931, - EndPos: 4932, + EndLine: 248, + StartPos: 4931, + EndPos: 4932, }, Value: "d", }, @@ -11859,16 +11772,16 @@ func TestPhp5(t *testing.T) { IfFalse: &expr.Variable{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4936, - EndPos: 4937, + EndLine: 248, + StartPos: 4936, + EndPos: 4937, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4936, - EndPos: 4937, + EndLine: 248, + StartPos: 4936, + EndPos: 4937, }, Value: "e", }, @@ -11878,30 +11791,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 249, - EndLine: 249, - StartPos: 4942, - EndPos: 4945, + EndLine: 249, + StartPos: 4942, + EndPos: 4945, }, Expr: &expr.UnaryMinus{ Position: &position.Position{ StartLine: 249, - EndLine: 249, - StartPos: 4942, - EndPos: 4944, + EndLine: 249, + StartPos: 4942, + EndPos: 4944, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 249, - EndLine: 249, - StartPos: 4943, - EndPos: 4944, + EndLine: 249, + StartPos: 4943, + EndPos: 4944, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 249, - EndLine: 249, - StartPos: 4943, - EndPos: 4944, + EndLine: 249, + StartPos: 4943, + EndPos: 4944, }, Value: "a", }, @@ -11911,30 +11824,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 250, - EndLine: 250, - StartPos: 4949, - EndPos: 4952, + EndLine: 250, + StartPos: 4949, + EndPos: 4952, }, Expr: &expr.UnaryPlus{ Position: &position.Position{ StartLine: 250, - EndLine: 250, - StartPos: 4949, - EndPos: 4951, + EndLine: 250, + StartPos: 4949, + EndPos: 4951, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 250, - EndLine: 250, - StartPos: 4950, - EndPos: 4951, + EndLine: 250, + StartPos: 4950, + EndPos: 4951, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 250, - EndLine: 250, - StartPos: 4950, - EndPos: 4951, + EndLine: 250, + StartPos: 4950, + EndPos: 4951, }, Value: "a", }, @@ -11944,30 +11857,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 251, - EndLine: 251, - StartPos: 4956, - EndPos: 4959, + EndLine: 251, + StartPos: 4956, + EndPos: 4959, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 251, - EndLine: 251, - StartPos: 4956, - EndPos: 4958, + EndLine: 251, + StartPos: 4956, + EndPos: 4958, }, VarName: &expr.Variable{ Position: &position.Position{ StartLine: 251, - EndLine: 251, - StartPos: 4957, - EndPos: 4958, + EndLine: 251, + StartPos: 4957, + EndPos: 4958, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 251, - EndLine: 251, - StartPos: 4957, - EndPos: 4958, + EndLine: 251, + StartPos: 4957, + EndPos: 4958, }, Value: "a", }, @@ -11977,37 +11890,37 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 252, - EndLine: 252, - StartPos: 4963, - EndPos: 4967, + EndLine: 252, + StartPos: 4963, + EndPos: 4967, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 252, - EndLine: 252, - StartPos: 4963, - EndPos: 4966, + EndLine: 252, + StartPos: 4963, + EndPos: 4966, }, VarName: &expr.Variable{ Position: &position.Position{ StartLine: 252, - EndLine: 252, - StartPos: 4964, - EndPos: 4966, + EndLine: 252, + StartPos: 4964, + EndPos: 4966, }, VarName: &expr.Variable{ Position: &position.Position{ StartLine: 252, - EndLine: 252, - StartPos: 4965, - EndPos: 4966, + EndLine: 252, + StartPos: 4965, + EndPos: 4966, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 252, - EndLine: 252, - StartPos: 4965, - EndPos: 4966, + EndLine: 252, + StartPos: 4965, + EndPos: 4966, }, Value: "a", }, @@ -12018,46 +11931,46 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 253, - EndLine: 253, - StartPos: 4971, - EndPos: 4976, + EndLine: 253, + StartPos: 4971, + EndPos: 4976, }, Expr: &expr.Yield{ Position: &position.Position{ StartLine: 253, - EndLine: 253, - StartPos: 4971, - EndPos: 4975, + EndLine: 253, + StartPos: 4971, + EndPos: 4975, }, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 4980, - EndPos: 4988, + EndLine: 254, + StartPos: 4980, + EndPos: 4988, }, Expr: &expr.Yield{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 4980, - EndPos: 4987, + EndLine: 254, + StartPos: 4980, + EndPos: 4987, }, Value: &expr.Variable{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 4986, - EndPos: 4987, + EndLine: 254, + StartPos: 4986, + EndPos: 4987, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 4986, - EndPos: 4987, + EndLine: 254, + StartPos: 4986, + EndPos: 4987, }, Value: "a", }, @@ -12067,30 +11980,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 4992, - EndPos: 5006, + EndLine: 255, + StartPos: 4992, + EndPos: 5006, }, Expr: &expr.Yield{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 4992, - EndPos: 5005, + EndLine: 255, + StartPos: 4992, + EndPos: 5005, }, Key: &expr.Variable{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 4998, - EndPos: 4999, + EndLine: 255, + StartPos: 4998, + EndPos: 4999, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 4998, - EndPos: 4999, + EndLine: 255, + StartPos: 4998, + EndPos: 4999, }, Value: "a", }, @@ -12098,16 +12011,16 @@ func TestPhp5(t *testing.T) { Value: &expr.Variable{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 5004, - EndPos: 5005, + EndLine: 255, + StartPos: 5004, + EndPos: 5005, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 5004, - EndPos: 5005, + EndLine: 255, + StartPos: 5004, + EndPos: 5005, }, Value: "b", }, @@ -12117,38 +12030,38 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 256, - EndLine: 256, - StartPos: 5010, - EndPos: 5026, + EndLine: 256, + StartPos: 5010, + EndPos: 5026, }, Expr: &expr.Yield{ Position: &position.Position{ StartLine: 256, - EndLine: 256, - StartPos: 5010, - EndPos: 5025, + EndLine: 256, + StartPos: 5010, + EndPos: 5025, }, Value: &expr.ClassConstFetch{ Position: &position.Position{ StartLine: 256, - EndLine: 256, - StartPos: 5016, - EndPos: 5025, + EndLine: 256, + StartPos: 5016, + EndPos: 5025, }, Class: &name.Name{ Position: &position.Position{ StartLine: 256, - EndLine: 256, - StartPos: 5016, - EndPos: 5018, + EndLine: 256, + StartPos: 5016, + EndPos: 5018, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 256, - EndLine: 256, - StartPos: 5016, - EndPos: 5018, + EndLine: 256, + StartPos: 5016, + EndPos: 5018, }, Value: "Foo", }, @@ -12157,9 +12070,9 @@ func TestPhp5(t *testing.T) { ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 256, - EndLine: 256, - StartPos: 5021, - EndPos: 5025, + EndLine: 256, + StartPos: 5021, + EndPos: 5025, }, Value: "class", }, @@ -12169,30 +12082,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 257, - EndLine: 257, - StartPos: 5030, - EndPos: 5052, + EndLine: 257, + StartPos: 5030, + EndPos: 5052, }, Expr: &expr.Yield{ Position: &position.Position{ StartLine: 257, - EndLine: 257, - StartPos: 5030, - EndPos: 5051, + EndLine: 257, + StartPos: 5030, + EndPos: 5051, }, Key: &expr.Variable{ Position: &position.Position{ StartLine: 257, - EndLine: 257, - StartPos: 5036, - EndPos: 5037, + EndLine: 257, + StartPos: 5036, + EndPos: 5037, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 257, - EndLine: 257, - StartPos: 5036, - EndPos: 5037, + EndLine: 257, + StartPos: 5036, + EndPos: 5037, }, Value: "a", }, @@ -12200,24 +12113,24 @@ func TestPhp5(t *testing.T) { Value: &expr.ClassConstFetch{ Position: &position.Position{ StartLine: 257, - EndLine: 257, - StartPos: 5042, - EndPos: 5051, + EndLine: 257, + StartPos: 5042, + EndPos: 5051, }, Class: &name.Name{ Position: &position.Position{ StartLine: 257, - EndLine: 257, - StartPos: 5042, - EndPos: 5044, + EndLine: 257, + StartPos: 5042, + EndPos: 5044, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 257, - EndLine: 257, - StartPos: 5042, - EndPos: 5044, + EndLine: 257, + StartPos: 5042, + EndPos: 5044, }, Value: "Foo", }, @@ -12226,9 +12139,9 @@ func TestPhp5(t *testing.T) { ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 257, - EndLine: 257, - StartPos: 5047, - EndPos: 5051, + EndLine: 257, + StartPos: 5047, + EndPos: 5051, }, Value: "class", }, @@ -12238,30 +12151,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 259, - EndLine: 259, - StartPos: 5059, - EndPos: 5068, + EndLine: 259, + StartPos: 5059, + EndPos: 5068, }, Expr: &cast.Array{ Position: &position.Position{ StartLine: 259, - EndLine: 259, - StartPos: 5059, - EndPos: 5067, + EndLine: 259, + StartPos: 5059, + EndPos: 5067, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 259, - EndLine: 259, - StartPos: 5066, - EndPos: 5067, + EndLine: 259, + StartPos: 5066, + EndPos: 5067, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 259, - EndLine: 259, - StartPos: 5066, - EndPos: 5067, + EndLine: 259, + StartPos: 5066, + EndPos: 5067, }, Value: "a", }, @@ -12271,30 +12184,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 260, - EndLine: 260, - StartPos: 5072, - EndPos: 5083, + EndLine: 260, + StartPos: 5072, + EndPos: 5083, }, Expr: &cast.Bool{ Position: &position.Position{ StartLine: 260, - EndLine: 260, - StartPos: 5072, - EndPos: 5082, + EndLine: 260, + StartPos: 5072, + EndPos: 5082, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 260, - EndLine: 260, - StartPos: 5081, - EndPos: 5082, + EndLine: 260, + StartPos: 5081, + EndPos: 5082, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 260, - EndLine: 260, - StartPos: 5081, - EndPos: 5082, + EndLine: 260, + StartPos: 5081, + EndPos: 5082, }, Value: "a", }, @@ -12304,30 +12217,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 261, - EndLine: 261, - StartPos: 5087, - EndPos: 5095, + EndLine: 261, + StartPos: 5087, + EndPos: 5095, }, Expr: &cast.Bool{ Position: &position.Position{ StartLine: 261, - EndLine: 261, - StartPos: 5087, - EndPos: 5094, + EndLine: 261, + StartPos: 5087, + EndPos: 5094, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 261, - EndLine: 261, - StartPos: 5093, - EndPos: 5094, + EndLine: 261, + StartPos: 5093, + EndPos: 5094, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 261, - EndLine: 261, - StartPos: 5093, - EndPos: 5094, + EndLine: 261, + StartPos: 5093, + EndPos: 5094, }, Value: "a", }, @@ -12337,30 +12250,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 262, - EndLine: 262, - StartPos: 5099, - EndPos: 5109, + EndLine: 262, + StartPos: 5099, + EndPos: 5109, }, Expr: &cast.Double{ Position: &position.Position{ StartLine: 262, - EndLine: 262, - StartPos: 5099, - EndPos: 5108, + EndLine: 262, + StartPos: 5099, + EndPos: 5108, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 262, - EndLine: 262, - StartPos: 5107, - EndPos: 5108, + EndLine: 262, + StartPos: 5107, + EndPos: 5108, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 262, - EndLine: 262, - StartPos: 5107, - EndPos: 5108, + EndLine: 262, + StartPos: 5107, + EndPos: 5108, }, Value: "a", }, @@ -12370,30 +12283,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 263, - EndLine: 263, - StartPos: 5113, - EndPos: 5122, + EndLine: 263, + StartPos: 5113, + EndPos: 5122, }, Expr: &cast.Double{ Position: &position.Position{ StartLine: 263, - EndLine: 263, - StartPos: 5113, - EndPos: 5121, + EndLine: 263, + StartPos: 5113, + EndPos: 5121, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 263, - EndLine: 263, - StartPos: 5120, - EndPos: 5121, + EndLine: 263, + StartPos: 5120, + EndPos: 5121, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 263, - EndLine: 263, - StartPos: 5120, - EndPos: 5121, + EndLine: 263, + StartPos: 5120, + EndPos: 5121, }, Value: "a", }, @@ -12403,30 +12316,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 264, - EndLine: 264, - StartPos: 5126, - EndPos: 5137, + EndLine: 264, + StartPos: 5126, + EndPos: 5137, }, Expr: &cast.Int{ Position: &position.Position{ StartLine: 264, - EndLine: 264, - StartPos: 5126, - EndPos: 5136, + EndLine: 264, + StartPos: 5126, + EndPos: 5136, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 264, - EndLine: 264, - StartPos: 5135, - EndPos: 5136, + EndLine: 264, + StartPos: 5135, + EndPos: 5136, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 264, - EndLine: 264, - StartPos: 5135, - EndPos: 5136, + EndLine: 264, + StartPos: 5135, + EndPos: 5136, }, Value: "a", }, @@ -12436,30 +12349,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 265, - EndLine: 265, - StartPos: 5141, - EndPos: 5148, + EndLine: 265, + StartPos: 5141, + EndPos: 5148, }, Expr: &cast.Int{ Position: &position.Position{ StartLine: 265, - EndLine: 265, - StartPos: 5141, - EndPos: 5147, + EndLine: 265, + StartPos: 5141, + EndPos: 5147, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 265, - EndLine: 265, - StartPos: 5146, - EndPos: 5147, + EndLine: 265, + StartPos: 5146, + EndPos: 5147, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 265, - EndLine: 265, - StartPos: 5146, - EndPos: 5147, + EndLine: 265, + StartPos: 5146, + EndPos: 5147, }, Value: "a", }, @@ -12469,30 +12382,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 266, - EndLine: 266, - StartPos: 5152, - EndPos: 5162, + EndLine: 266, + StartPos: 5152, + EndPos: 5162, }, Expr: &cast.Object{ Position: &position.Position{ StartLine: 266, - EndLine: 266, - StartPos: 5152, - EndPos: 5161, + EndLine: 266, + StartPos: 5152, + EndPos: 5161, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 266, - EndLine: 266, - StartPos: 5160, - EndPos: 5161, + EndLine: 266, + StartPos: 5160, + EndPos: 5161, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 266, - EndLine: 266, - StartPos: 5160, - EndPos: 5161, + EndLine: 266, + StartPos: 5160, + EndPos: 5161, }, Value: "a", }, @@ -12502,30 +12415,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 267, - EndLine: 267, - StartPos: 5166, - EndPos: 5176, + EndLine: 267, + StartPos: 5166, + EndPos: 5176, }, Expr: &cast.String{ Position: &position.Position{ StartLine: 267, - EndLine: 267, - StartPos: 5166, - EndPos: 5175, + EndLine: 267, + StartPos: 5166, + EndPos: 5175, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 267, - EndLine: 267, - StartPos: 5174, - EndPos: 5175, + EndLine: 267, + StartPos: 5174, + EndPos: 5175, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 267, - EndLine: 267, - StartPos: 5174, - EndPos: 5175, + EndLine: 267, + StartPos: 5174, + EndPos: 5175, }, Value: "a", }, @@ -12535,30 +12448,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 268, - EndLine: 268, - StartPos: 5180, - EndPos: 5189, + EndLine: 268, + StartPos: 5180, + EndPos: 5189, }, Expr: &cast.Unset{ Position: &position.Position{ StartLine: 268, - EndLine: 268, - StartPos: 5180, - EndPos: 5188, + EndLine: 268, + StartPos: 5180, + EndPos: 5188, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 268, - EndLine: 268, - StartPos: 5187, - EndPos: 5188, + EndLine: 268, + StartPos: 5187, + EndPos: 5188, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 268, - EndLine: 268, - StartPos: 5187, - EndPos: 5188, + EndLine: 268, + StartPos: 5187, + EndPos: 5188, }, Value: "a", }, @@ -12568,30 +12481,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 270, - EndLine: 270, - StartPos: 5194, - EndPos: 5201, + EndLine: 270, + StartPos: 5194, + EndPos: 5201, }, Expr: &binary.BitwiseAnd{ Position: &position.Position{ StartLine: 270, - EndLine: 270, - StartPos: 5194, - EndPos: 5200, + EndLine: 270, + StartPos: 5194, + EndPos: 5200, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 270, - EndLine: 270, - StartPos: 5194, - EndPos: 5195, + EndLine: 270, + StartPos: 5194, + EndPos: 5195, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 270, - EndLine: 270, - StartPos: 5194, - EndPos: 5195, + EndLine: 270, + StartPos: 5194, + EndPos: 5195, }, Value: "a", }, @@ -12599,16 +12512,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 270, - EndLine: 270, - StartPos: 5199, - EndPos: 5200, + EndLine: 270, + StartPos: 5199, + EndPos: 5200, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 270, - EndLine: 270, - StartPos: 5199, - EndPos: 5200, + EndLine: 270, + StartPos: 5199, + EndPos: 5200, }, Value: "b", }, @@ -12618,30 +12531,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 271, - EndLine: 271, - StartPos: 5205, - EndPos: 5212, + EndLine: 271, + StartPos: 5205, + EndPos: 5212, }, Expr: &binary.BitwiseOr{ Position: &position.Position{ StartLine: 271, - EndLine: 271, - StartPos: 5205, - EndPos: 5211, + EndLine: 271, + StartPos: 5205, + EndPos: 5211, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 271, - EndLine: 271, - StartPos: 5205, - EndPos: 5206, + EndLine: 271, + StartPos: 5205, + EndPos: 5206, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 271, - EndLine: 271, - StartPos: 5205, - EndPos: 5206, + EndLine: 271, + StartPos: 5205, + EndPos: 5206, }, Value: "a", }, @@ -12649,16 +12562,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 271, - EndLine: 271, - StartPos: 5210, - EndPos: 5211, + EndLine: 271, + StartPos: 5210, + EndPos: 5211, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 271, - EndLine: 271, - StartPos: 5210, - EndPos: 5211, + EndLine: 271, + StartPos: 5210, + EndPos: 5211, }, Value: "b", }, @@ -12668,30 +12581,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 272, - EndLine: 272, - StartPos: 5216, - EndPos: 5223, + EndLine: 272, + StartPos: 5216, + EndPos: 5223, }, Expr: &binary.BitwiseXor{ Position: &position.Position{ StartLine: 272, - EndLine: 272, - StartPos: 5216, - EndPos: 5222, + EndLine: 272, + StartPos: 5216, + EndPos: 5222, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 272, - EndLine: 272, - StartPos: 5216, - EndPos: 5217, + EndLine: 272, + StartPos: 5216, + EndPos: 5217, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 272, - EndLine: 272, - StartPos: 5216, - EndPos: 5217, + EndLine: 272, + StartPos: 5216, + EndPos: 5217, }, Value: "a", }, @@ -12699,16 +12612,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 272, - EndLine: 272, - StartPos: 5221, - EndPos: 5222, + EndLine: 272, + StartPos: 5221, + EndPos: 5222, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 272, - EndLine: 272, - StartPos: 5221, - EndPos: 5222, + EndLine: 272, + StartPos: 5221, + EndPos: 5222, }, Value: "b", }, @@ -12718,30 +12631,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 273, - EndLine: 273, - StartPos: 5227, - EndPos: 5235, + EndLine: 273, + StartPos: 5227, + EndPos: 5235, }, Expr: &binary.BooleanAnd{ Position: &position.Position{ StartLine: 273, - EndLine: 273, - StartPos: 5227, - EndPos: 5234, + EndLine: 273, + StartPos: 5227, + EndPos: 5234, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 273, - EndLine: 273, - StartPos: 5227, - EndPos: 5228, + EndLine: 273, + StartPos: 5227, + EndPos: 5228, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 273, - EndLine: 273, - StartPos: 5227, - EndPos: 5228, + EndLine: 273, + StartPos: 5227, + EndPos: 5228, }, Value: "a", }, @@ -12749,16 +12662,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 273, - EndLine: 273, - StartPos: 5233, - EndPos: 5234, + EndLine: 273, + StartPos: 5233, + EndPos: 5234, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 273, - EndLine: 273, - StartPos: 5233, - EndPos: 5234, + EndLine: 273, + StartPos: 5233, + EndPos: 5234, }, Value: "b", }, @@ -12768,30 +12681,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 274, - EndLine: 274, - StartPos: 5239, - EndPos: 5247, + EndLine: 274, + StartPos: 5239, + EndPos: 5247, }, Expr: &binary.BooleanOr{ Position: &position.Position{ StartLine: 274, - EndLine: 274, - StartPos: 5239, - EndPos: 5246, + EndLine: 274, + StartPos: 5239, + EndPos: 5246, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 274, - EndLine: 274, - StartPos: 5239, - EndPos: 5240, + EndLine: 274, + StartPos: 5239, + EndPos: 5240, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 274, - EndLine: 274, - StartPos: 5239, - EndPos: 5240, + EndLine: 274, + StartPos: 5239, + EndPos: 5240, }, Value: "a", }, @@ -12799,16 +12712,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 274, - EndLine: 274, - StartPos: 5245, - EndPos: 5246, + EndLine: 274, + StartPos: 5245, + EndPos: 5246, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 274, - EndLine: 274, - StartPos: 5245, - EndPos: 5246, + EndLine: 274, + StartPos: 5245, + EndPos: 5246, }, Value: "b", }, @@ -12818,30 +12731,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 275, - EndLine: 275, - StartPos: 5251, - EndPos: 5258, + EndLine: 275, + StartPos: 5251, + EndPos: 5258, }, Expr: &binary.Concat{ Position: &position.Position{ StartLine: 275, - EndLine: 275, - StartPos: 5251, - EndPos: 5257, + EndLine: 275, + StartPos: 5251, + EndPos: 5257, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 275, - EndLine: 275, - StartPos: 5251, - EndPos: 5252, + EndLine: 275, + StartPos: 5251, + EndPos: 5252, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 275, - EndLine: 275, - StartPos: 5251, - EndPos: 5252, + EndLine: 275, + StartPos: 5251, + EndPos: 5252, }, Value: "a", }, @@ -12849,16 +12762,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 275, - EndLine: 275, - StartPos: 5256, - EndPos: 5257, + EndLine: 275, + StartPos: 5256, + EndPos: 5257, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 275, - EndLine: 275, - StartPos: 5256, - EndPos: 5257, + EndLine: 275, + StartPos: 5256, + EndPos: 5257, }, Value: "b", }, @@ -12868,30 +12781,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 276, - EndLine: 276, - StartPos: 5262, - EndPos: 5269, + EndLine: 276, + StartPos: 5262, + EndPos: 5269, }, Expr: &binary.Div{ Position: &position.Position{ StartLine: 276, - EndLine: 276, - StartPos: 5262, - EndPos: 5268, + EndLine: 276, + StartPos: 5262, + EndPos: 5268, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 276, - EndLine: 276, - StartPos: 5262, - EndPos: 5263, + EndLine: 276, + StartPos: 5262, + EndPos: 5263, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 276, - EndLine: 276, - StartPos: 5262, - EndPos: 5263, + EndLine: 276, + StartPos: 5262, + EndPos: 5263, }, Value: "a", }, @@ -12899,16 +12812,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 276, - EndLine: 276, - StartPos: 5267, - EndPos: 5268, + EndLine: 276, + StartPos: 5267, + EndPos: 5268, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 276, - EndLine: 276, - StartPos: 5267, - EndPos: 5268, + EndLine: 276, + StartPos: 5267, + EndPos: 5268, }, Value: "b", }, @@ -12918,30 +12831,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 277, - EndLine: 277, - StartPos: 5273, - EndPos: 5281, + EndLine: 277, + StartPos: 5273, + EndPos: 5281, }, Expr: &binary.Equal{ Position: &position.Position{ StartLine: 277, - EndLine: 277, - StartPos: 5273, - EndPos: 5280, + EndLine: 277, + StartPos: 5273, + EndPos: 5280, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 277, - EndLine: 277, - StartPos: 5273, - EndPos: 5274, + EndLine: 277, + StartPos: 5273, + EndPos: 5274, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 277, - EndLine: 277, - StartPos: 5273, - EndPos: 5274, + EndLine: 277, + StartPos: 5273, + EndPos: 5274, }, Value: "a", }, @@ -12949,16 +12862,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 277, - EndLine: 277, - StartPos: 5279, - EndPos: 5280, + EndLine: 277, + StartPos: 5279, + EndPos: 5280, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 277, - EndLine: 277, - StartPos: 5279, - EndPos: 5280, + EndLine: 277, + StartPos: 5279, + EndPos: 5280, }, Value: "b", }, @@ -12968,30 +12881,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 278, - EndLine: 278, - StartPos: 5285, - EndPos: 5293, + EndLine: 278, + StartPos: 5285, + EndPos: 5293, }, Expr: &binary.GreaterOrEqual{ Position: &position.Position{ StartLine: 278, - EndLine: 278, - StartPos: 5285, - EndPos: 5292, + EndLine: 278, + StartPos: 5285, + EndPos: 5292, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 278, - EndLine: 278, - StartPos: 5285, - EndPos: 5286, + EndLine: 278, + StartPos: 5285, + EndPos: 5286, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 278, - EndLine: 278, - StartPos: 5285, - EndPos: 5286, + EndLine: 278, + StartPos: 5285, + EndPos: 5286, }, Value: "a", }, @@ -12999,16 +12912,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 278, - EndLine: 278, - StartPos: 5291, - EndPos: 5292, + EndLine: 278, + StartPos: 5291, + EndPos: 5292, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 278, - EndLine: 278, - StartPos: 5291, - EndPos: 5292, + EndLine: 278, + StartPos: 5291, + EndPos: 5292, }, Value: "b", }, @@ -13018,30 +12931,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 279, - EndLine: 279, - StartPos: 5297, - EndPos: 5304, + EndLine: 279, + StartPos: 5297, + EndPos: 5304, }, Expr: &binary.Greater{ Position: &position.Position{ StartLine: 279, - EndLine: 279, - StartPos: 5297, - EndPos: 5303, + EndLine: 279, + StartPos: 5297, + EndPos: 5303, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 279, - EndLine: 279, - StartPos: 5297, - EndPos: 5298, + EndLine: 279, + StartPos: 5297, + EndPos: 5298, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 279, - EndLine: 279, - StartPos: 5297, - EndPos: 5298, + EndLine: 279, + StartPos: 5297, + EndPos: 5298, }, Value: "a", }, @@ -13049,16 +12962,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 279, - EndLine: 279, - StartPos: 5302, - EndPos: 5303, + EndLine: 279, + StartPos: 5302, + EndPos: 5303, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 279, - EndLine: 279, - StartPos: 5302, - EndPos: 5303, + EndLine: 279, + StartPos: 5302, + EndPos: 5303, }, Value: "b", }, @@ -13068,30 +12981,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 280, - EndLine: 280, - StartPos: 5308, - EndPos: 5317, + EndLine: 280, + StartPos: 5308, + EndPos: 5317, }, Expr: &binary.Identical{ Position: &position.Position{ StartLine: 280, - EndLine: 280, - StartPos: 5308, - EndPos: 5316, + EndLine: 280, + StartPos: 5308, + EndPos: 5316, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 280, - EndLine: 280, - StartPos: 5308, - EndPos: 5309, + EndLine: 280, + StartPos: 5308, + EndPos: 5309, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 280, - EndLine: 280, - StartPos: 5308, - EndPos: 5309, + EndLine: 280, + StartPos: 5308, + EndPos: 5309, }, Value: "a", }, @@ -13099,16 +13012,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 280, - EndLine: 280, - StartPos: 5315, - EndPos: 5316, + EndLine: 280, + StartPos: 5315, + EndPos: 5316, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 280, - EndLine: 280, - StartPos: 5315, - EndPos: 5316, + EndLine: 280, + StartPos: 5315, + EndPos: 5316, }, Value: "b", }, @@ -13118,30 +13031,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 281, - EndLine: 281, - StartPos: 5321, - EndPos: 5330, + EndLine: 281, + StartPos: 5321, + EndPos: 5330, }, Expr: &binary.LogicalAnd{ Position: &position.Position{ StartLine: 281, - EndLine: 281, - StartPos: 5321, - EndPos: 5329, + EndLine: 281, + StartPos: 5321, + EndPos: 5329, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 281, - EndLine: 281, - StartPos: 5321, - EndPos: 5322, + EndLine: 281, + StartPos: 5321, + EndPos: 5322, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 281, - EndLine: 281, - StartPos: 5321, - EndPos: 5322, + EndLine: 281, + StartPos: 5321, + EndPos: 5322, }, Value: "a", }, @@ -13149,16 +13062,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 281, - EndLine: 281, - StartPos: 5328, - EndPos: 5329, + EndLine: 281, + StartPos: 5328, + EndPos: 5329, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 281, - EndLine: 281, - StartPos: 5328, - EndPos: 5329, + EndLine: 281, + StartPos: 5328, + EndPos: 5329, }, Value: "b", }, @@ -13168,30 +13081,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 282, - EndLine: 282, - StartPos: 5334, - EndPos: 5342, + EndLine: 282, + StartPos: 5334, + EndPos: 5342, }, Expr: &binary.LogicalOr{ Position: &position.Position{ StartLine: 282, - EndLine: 282, - StartPos: 5334, - EndPos: 5341, + EndLine: 282, + StartPos: 5334, + EndPos: 5341, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 282, - EndLine: 282, - StartPos: 5334, - EndPos: 5335, + EndLine: 282, + StartPos: 5334, + EndPos: 5335, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 282, - EndLine: 282, - StartPos: 5334, - EndPos: 5335, + EndLine: 282, + StartPos: 5334, + EndPos: 5335, }, Value: "a", }, @@ -13199,16 +13112,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 282, - EndLine: 282, - StartPos: 5340, - EndPos: 5341, + EndLine: 282, + StartPos: 5340, + EndPos: 5341, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 282, - EndLine: 282, - StartPos: 5340, - EndPos: 5341, + EndLine: 282, + StartPos: 5340, + EndPos: 5341, }, Value: "b", }, @@ -13218,30 +13131,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 283, - EndLine: 283, - StartPos: 5346, - EndPos: 5355, + EndLine: 283, + StartPos: 5346, + EndPos: 5355, }, Expr: &binary.LogicalXor{ Position: &position.Position{ StartLine: 283, - EndLine: 283, - StartPos: 5346, - EndPos: 5354, + EndLine: 283, + StartPos: 5346, + EndPos: 5354, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 283, - EndLine: 283, - StartPos: 5346, - EndPos: 5347, + EndLine: 283, + StartPos: 5346, + EndPos: 5347, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 283, - EndLine: 283, - StartPos: 5346, - EndPos: 5347, + EndLine: 283, + StartPos: 5346, + EndPos: 5347, }, Value: "a", }, @@ -13249,16 +13162,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 283, - EndLine: 283, - StartPos: 5353, - EndPos: 5354, + EndLine: 283, + StartPos: 5353, + EndPos: 5354, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 283, - EndLine: 283, - StartPos: 5353, - EndPos: 5354, + EndLine: 283, + StartPos: 5353, + EndPos: 5354, }, Value: "b", }, @@ -13268,30 +13181,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 284, - EndLine: 284, - StartPos: 5359, - EndPos: 5366, + EndLine: 284, + StartPos: 5359, + EndPos: 5366, }, Expr: &binary.Minus{ Position: &position.Position{ StartLine: 284, - EndLine: 284, - StartPos: 5359, - EndPos: 5365, + EndLine: 284, + StartPos: 5359, + EndPos: 5365, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 284, - EndLine: 284, - StartPos: 5359, - EndPos: 5360, + EndLine: 284, + StartPos: 5359, + EndPos: 5360, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 284, - EndLine: 284, - StartPos: 5359, - EndPos: 5360, + EndLine: 284, + StartPos: 5359, + EndPos: 5360, }, Value: "a", }, @@ -13299,16 +13212,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 284, - EndLine: 284, - StartPos: 5364, - EndPos: 5365, + EndLine: 284, + StartPos: 5364, + EndPos: 5365, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 284, - EndLine: 284, - StartPos: 5364, - EndPos: 5365, + EndLine: 284, + StartPos: 5364, + EndPos: 5365, }, Value: "b", }, @@ -13318,30 +13231,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 285, - EndLine: 285, - StartPos: 5370, - EndPos: 5377, + EndLine: 285, + StartPos: 5370, + EndPos: 5377, }, Expr: &binary.Mod{ Position: &position.Position{ StartLine: 285, - EndLine: 285, - StartPos: 5370, - EndPos: 5376, + EndLine: 285, + StartPos: 5370, + EndPos: 5376, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 285, - EndLine: 285, - StartPos: 5370, - EndPos: 5371, + EndLine: 285, + StartPos: 5370, + EndPos: 5371, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 285, - EndLine: 285, - StartPos: 5370, - EndPos: 5371, + EndLine: 285, + StartPos: 5370, + EndPos: 5371, }, Value: "a", }, @@ -13349,16 +13262,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 285, - EndLine: 285, - StartPos: 5375, - EndPos: 5376, + EndLine: 285, + StartPos: 5375, + EndPos: 5376, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 285, - EndLine: 285, - StartPos: 5375, - EndPos: 5376, + EndLine: 285, + StartPos: 5375, + EndPos: 5376, }, Value: "b", }, @@ -13368,30 +13281,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 286, - EndLine: 286, - StartPos: 5381, - EndPos: 5388, + EndLine: 286, + StartPos: 5381, + EndPos: 5388, }, Expr: &binary.Mul{ Position: &position.Position{ StartLine: 286, - EndLine: 286, - StartPos: 5381, - EndPos: 5387, + EndLine: 286, + StartPos: 5381, + EndPos: 5387, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 286, - EndLine: 286, - StartPos: 5381, - EndPos: 5382, + EndLine: 286, + StartPos: 5381, + EndPos: 5382, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 286, - EndLine: 286, - StartPos: 5381, - EndPos: 5382, + EndLine: 286, + StartPos: 5381, + EndPos: 5382, }, Value: "a", }, @@ -13399,16 +13312,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 286, - EndLine: 286, - StartPos: 5386, - EndPos: 5387, + EndLine: 286, + StartPos: 5386, + EndPos: 5387, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 286, - EndLine: 286, - StartPos: 5386, - EndPos: 5387, + EndLine: 286, + StartPos: 5386, + EndPos: 5387, }, Value: "b", }, @@ -13418,30 +13331,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 287, - EndLine: 287, - StartPos: 5392, - EndPos: 5400, + EndLine: 287, + StartPos: 5392, + EndPos: 5400, }, Expr: &binary.NotEqual{ Position: &position.Position{ StartLine: 287, - EndLine: 287, - StartPos: 5392, - EndPos: 5399, + EndLine: 287, + StartPos: 5392, + EndPos: 5399, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 287, - EndLine: 287, - StartPos: 5392, - EndPos: 5393, + EndLine: 287, + StartPos: 5392, + EndPos: 5393, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 287, - EndLine: 287, - StartPos: 5392, - EndPos: 5393, + EndLine: 287, + StartPos: 5392, + EndPos: 5393, }, Value: "a", }, @@ -13449,16 +13362,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 287, - EndLine: 287, - StartPos: 5398, - EndPos: 5399, + EndLine: 287, + StartPos: 5398, + EndPos: 5399, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 287, - EndLine: 287, - StartPos: 5398, - EndPos: 5399, + EndLine: 287, + StartPos: 5398, + EndPos: 5399, }, Value: "b", }, @@ -13468,30 +13381,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 288, - EndLine: 288, - StartPos: 5404, - EndPos: 5413, + EndLine: 288, + StartPos: 5404, + EndPos: 5413, }, Expr: &binary.NotIdentical{ Position: &position.Position{ StartLine: 288, - EndLine: 288, - StartPos: 5404, - EndPos: 5412, + EndLine: 288, + StartPos: 5404, + EndPos: 5412, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 288, - EndLine: 288, - StartPos: 5404, - EndPos: 5405, + EndLine: 288, + StartPos: 5404, + EndPos: 5405, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 288, - EndLine: 288, - StartPos: 5404, - EndPos: 5405, + EndLine: 288, + StartPos: 5404, + EndPos: 5405, }, Value: "a", }, @@ -13499,16 +13412,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 288, - EndLine: 288, - StartPos: 5411, - EndPos: 5412, + EndLine: 288, + StartPos: 5411, + EndPos: 5412, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 288, - EndLine: 288, - StartPos: 5411, - EndPos: 5412, + EndLine: 288, + StartPos: 5411, + EndPos: 5412, }, Value: "b", }, @@ -13518,30 +13431,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 289, - EndLine: 289, - StartPos: 5417, - EndPos: 5424, + EndLine: 289, + StartPos: 5417, + EndPos: 5424, }, Expr: &binary.Plus{ Position: &position.Position{ StartLine: 289, - EndLine: 289, - StartPos: 5417, - EndPos: 5423, + EndLine: 289, + StartPos: 5417, + EndPos: 5423, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 289, - EndLine: 289, - StartPos: 5417, - EndPos: 5418, + EndLine: 289, + StartPos: 5417, + EndPos: 5418, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 289, - EndLine: 289, - StartPos: 5417, - EndPos: 5418, + EndLine: 289, + StartPos: 5417, + EndPos: 5418, }, Value: "a", }, @@ -13549,16 +13462,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 289, - EndLine: 289, - StartPos: 5422, - EndPos: 5423, + EndLine: 289, + StartPos: 5422, + EndPos: 5423, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 289, - EndLine: 289, - StartPos: 5422, - EndPos: 5423, + EndLine: 289, + StartPos: 5422, + EndPos: 5423, }, Value: "b", }, @@ -13568,30 +13481,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 290, - EndLine: 290, - StartPos: 5428, - EndPos: 5436, + EndLine: 290, + StartPos: 5428, + EndPos: 5436, }, Expr: &binary.Pow{ Position: &position.Position{ StartLine: 290, - EndLine: 290, - StartPos: 5428, - EndPos: 5435, + EndLine: 290, + StartPos: 5428, + EndPos: 5435, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 290, - EndLine: 290, - StartPos: 5428, - EndPos: 5429, + EndLine: 290, + StartPos: 5428, + EndPos: 5429, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 290, - EndLine: 290, - StartPos: 5428, - EndPos: 5429, + EndLine: 290, + StartPos: 5428, + EndPos: 5429, }, Value: "a", }, @@ -13599,16 +13512,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 290, - EndLine: 290, - StartPos: 5434, - EndPos: 5435, + EndLine: 290, + StartPos: 5434, + EndPos: 5435, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 290, - EndLine: 290, - StartPos: 5434, - EndPos: 5435, + EndLine: 290, + StartPos: 5434, + EndPos: 5435, }, Value: "b", }, @@ -13618,30 +13531,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 291, - EndLine: 291, - StartPos: 5440, - EndPos: 5448, + EndLine: 291, + StartPos: 5440, + EndPos: 5448, }, Expr: &binary.ShiftLeft{ Position: &position.Position{ StartLine: 291, - EndLine: 291, - StartPos: 5440, - EndPos: 5447, + EndLine: 291, + StartPos: 5440, + EndPos: 5447, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 291, - EndLine: 291, - StartPos: 5440, - EndPos: 5441, + EndLine: 291, + StartPos: 5440, + EndPos: 5441, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 291, - EndLine: 291, - StartPos: 5440, - EndPos: 5441, + EndLine: 291, + StartPos: 5440, + EndPos: 5441, }, Value: "a", }, @@ -13649,16 +13562,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 291, - EndLine: 291, - StartPos: 5446, - EndPos: 5447, + EndLine: 291, + StartPos: 5446, + EndPos: 5447, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 291, - EndLine: 291, - StartPos: 5446, - EndPos: 5447, + EndLine: 291, + StartPos: 5446, + EndPos: 5447, }, Value: "b", }, @@ -13668,30 +13581,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 292, - EndLine: 292, - StartPos: 5452, - EndPos: 5460, + EndLine: 292, + StartPos: 5452, + EndPos: 5460, }, Expr: &binary.ShiftRight{ Position: &position.Position{ StartLine: 292, - EndLine: 292, - StartPos: 5452, - EndPos: 5459, + EndLine: 292, + StartPos: 5452, + EndPos: 5459, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 292, - EndLine: 292, - StartPos: 5452, - EndPos: 5453, + EndLine: 292, + StartPos: 5452, + EndPos: 5453, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 292, - EndLine: 292, - StartPos: 5452, - EndPos: 5453, + EndLine: 292, + StartPos: 5452, + EndPos: 5453, }, Value: "a", }, @@ -13699,16 +13612,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 292, - EndLine: 292, - StartPos: 5458, - EndPos: 5459, + EndLine: 292, + StartPos: 5458, + EndPos: 5459, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 292, - EndLine: 292, - StartPos: 5458, - EndPos: 5459, + EndLine: 292, + StartPos: 5458, + EndPos: 5459, }, Value: "b", }, @@ -13718,30 +13631,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 293, - EndLine: 293, - StartPos: 5464, - EndPos: 5472, + EndLine: 293, + StartPos: 5464, + EndPos: 5472, }, Expr: &binary.SmallerOrEqual{ Position: &position.Position{ StartLine: 293, - EndLine: 293, - StartPos: 5464, - EndPos: 5471, + EndLine: 293, + StartPos: 5464, + EndPos: 5471, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 293, - EndLine: 293, - StartPos: 5464, - EndPos: 5465, + EndLine: 293, + StartPos: 5464, + EndPos: 5465, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 293, - EndLine: 293, - StartPos: 5464, - EndPos: 5465, + EndLine: 293, + StartPos: 5464, + EndPos: 5465, }, Value: "a", }, @@ -13749,16 +13662,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 293, - EndLine: 293, - StartPos: 5470, - EndPos: 5471, + EndLine: 293, + StartPos: 5470, + EndPos: 5471, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 293, - EndLine: 293, - StartPos: 5470, - EndPos: 5471, + EndLine: 293, + StartPos: 5470, + EndPos: 5471, }, Value: "b", }, @@ -13768,30 +13681,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 294, - EndLine: 294, - StartPos: 5476, - EndPos: 5483, + EndLine: 294, + StartPos: 5476, + EndPos: 5483, }, Expr: &binary.Smaller{ Position: &position.Position{ StartLine: 294, - EndLine: 294, - StartPos: 5476, - EndPos: 5482, + EndLine: 294, + StartPos: 5476, + EndPos: 5482, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 294, - EndLine: 294, - StartPos: 5476, - EndPos: 5477, + EndLine: 294, + StartPos: 5476, + EndPos: 5477, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 294, - EndLine: 294, - StartPos: 5476, - EndPos: 5477, + EndLine: 294, + StartPos: 5476, + EndPos: 5477, }, Value: "a", }, @@ -13799,16 +13712,16 @@ func TestPhp5(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 294, - EndLine: 294, - StartPos: 5481, - EndPos: 5482, + EndLine: 294, + StartPos: 5481, + EndPos: 5482, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 294, - EndLine: 294, - StartPos: 5481, - EndPos: 5482, + EndLine: 294, + StartPos: 5481, + EndPos: 5482, }, Value: "b", }, @@ -13818,30 +13731,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 296, - EndLine: 296, - StartPos: 5488, - EndPos: 5496, + EndLine: 296, + StartPos: 5488, + EndPos: 5496, }, Expr: &assign.Reference{ Position: &position.Position{ StartLine: 296, - EndLine: 296, - StartPos: 5488, - EndPos: 5495, + EndLine: 296, + StartPos: 5488, + EndPos: 5495, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 296, - EndLine: 296, - StartPos: 5488, - EndPos: 5489, + EndLine: 296, + StartPos: 5488, + EndPos: 5489, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 296, - EndLine: 296, - StartPos: 5488, - EndPos: 5489, + EndLine: 296, + StartPos: 5488, + EndPos: 5489, }, Value: "a", }, @@ -13849,16 +13762,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 296, - EndLine: 296, - StartPos: 5494, - EndPos: 5495, + EndLine: 296, + StartPos: 5494, + EndPos: 5495, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 296, - EndLine: 296, - StartPos: 5494, - EndPos: 5495, + EndLine: 296, + StartPos: 5494, + EndPos: 5495, }, Value: "b", }, @@ -13868,30 +13781,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 297, - EndLine: 297, - StartPos: 5500, - EndPos: 5513, + EndLine: 297, + StartPos: 5500, + EndPos: 5513, }, Expr: &assign.Reference{ Position: &position.Position{ StartLine: 297, - EndLine: 297, - StartPos: 5500, - EndPos: 5512, + EndLine: 297, + StartPos: 5500, + EndPos: 5512, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 297, - EndLine: 297, - StartPos: 5500, - EndPos: 5501, + EndLine: 297, + StartPos: 5500, + EndPos: 5501, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 297, - EndLine: 297, - StartPos: 5500, - EndPos: 5501, + EndLine: 297, + StartPos: 5500, + EndPos: 5501, }, Value: "a", }, @@ -13899,24 +13812,24 @@ func TestPhp5(t *testing.T) { Expression: &expr.New{ Position: &position.Position{ StartLine: 297, - EndLine: 297, - StartPos: 5506, - EndPos: 5512, + EndLine: 297, + StartPos: 5506, + EndPos: 5512, }, Class: &name.Name{ Position: &position.Position{ StartLine: 297, - EndLine: 297, - StartPos: 5510, - EndPos: 5512, + EndLine: 297, + StartPos: 5510, + EndPos: 5512, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 297, - EndLine: 297, - StartPos: 5510, - EndPos: 5512, + EndLine: 297, + StartPos: 5510, + EndPos: 5512, }, Value: "Foo", }, @@ -13928,30 +13841,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5517, - EndPos: 5534, + EndLine: 298, + StartPos: 5517, + EndPos: 5534, }, Expr: &assign.Reference{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5517, - EndPos: 5533, + EndLine: 298, + StartPos: 5517, + EndPos: 5533, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5517, - EndPos: 5518, + EndLine: 298, + StartPos: 5517, + EndPos: 5518, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5517, - EndPos: 5518, + EndLine: 298, + StartPos: 5517, + EndPos: 5518, }, Value: "a", }, @@ -13959,24 +13872,24 @@ func TestPhp5(t *testing.T) { Expression: &expr.New{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5523, - EndPos: 5533, + EndLine: 298, + StartPos: 5523, + EndPos: 5533, }, Class: &name.Name{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5527, - EndPos: 5529, + EndLine: 298, + StartPos: 5527, + EndPos: 5529, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5527, - EndPos: 5529, + EndLine: 298, + StartPos: 5527, + EndPos: 5529, }, Value: "Foo", }, @@ -13985,33 +13898,33 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5530, - EndPos: 5533, + EndLine: 298, + StartPos: 5530, + EndPos: 5533, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5531, - EndPos: 5532, + EndLine: 298, + StartPos: 5531, + EndPos: 5532, }, - Variadic: false, + Variadic: false, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5531, - EndPos: 5532, + EndLine: 298, + StartPos: 5531, + EndPos: 5532, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5531, - EndPos: 5532, + EndLine: 298, + StartPos: 5531, + EndPos: 5532, }, Value: "b", }, @@ -14025,30 +13938,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 299, - EndLine: 299, - StartPos: 5538, - EndPos: 5545, + EndLine: 299, + StartPos: 5538, + EndPos: 5545, }, Expr: &assign.Assign{ Position: &position.Position{ StartLine: 299, - EndLine: 299, - StartPos: 5538, - EndPos: 5544, + EndLine: 299, + StartPos: 5538, + EndPos: 5544, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 299, - EndLine: 299, - StartPos: 5538, - EndPos: 5539, + EndLine: 299, + StartPos: 5538, + EndPos: 5539, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 299, - EndLine: 299, - StartPos: 5538, - EndPos: 5539, + EndLine: 299, + StartPos: 5538, + EndPos: 5539, }, Value: "a", }, @@ -14056,16 +13969,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 299, - EndLine: 299, - StartPos: 5543, - EndPos: 5544, + EndLine: 299, + StartPos: 5543, + EndPos: 5544, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 299, - EndLine: 299, - StartPos: 5543, - EndPos: 5544, + EndLine: 299, + StartPos: 5543, + EndPos: 5544, }, Value: "b", }, @@ -14075,30 +13988,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 300, - EndLine: 300, - StartPos: 5549, - EndPos: 5557, + EndLine: 300, + StartPos: 5549, + EndPos: 5557, }, Expr: &assign.BitwiseAnd{ Position: &position.Position{ StartLine: 300, - EndLine: 300, - StartPos: 5549, - EndPos: 5556, + EndLine: 300, + StartPos: 5549, + EndPos: 5556, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 300, - EndLine: 300, - StartPos: 5549, - EndPos: 5550, + EndLine: 300, + StartPos: 5549, + EndPos: 5550, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 300, - EndLine: 300, - StartPos: 5549, - EndPos: 5550, + EndLine: 300, + StartPos: 5549, + EndPos: 5550, }, Value: "a", }, @@ -14106,16 +14019,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 300, - EndLine: 300, - StartPos: 5555, - EndPos: 5556, + EndLine: 300, + StartPos: 5555, + EndPos: 5556, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 300, - EndLine: 300, - StartPos: 5555, - EndPos: 5556, + EndLine: 300, + StartPos: 5555, + EndPos: 5556, }, Value: "b", }, @@ -14125,30 +14038,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 301, - EndLine: 301, - StartPos: 5561, - EndPos: 5569, + EndLine: 301, + StartPos: 5561, + EndPos: 5569, }, Expr: &assign.BitwiseOr{ Position: &position.Position{ StartLine: 301, - EndLine: 301, - StartPos: 5561, - EndPos: 5568, + EndLine: 301, + StartPos: 5561, + EndPos: 5568, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 301, - EndLine: 301, - StartPos: 5561, - EndPos: 5562, + EndLine: 301, + StartPos: 5561, + EndPos: 5562, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 301, - EndLine: 301, - StartPos: 5561, - EndPos: 5562, + EndLine: 301, + StartPos: 5561, + EndPos: 5562, }, Value: "a", }, @@ -14156,16 +14069,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 301, - EndLine: 301, - StartPos: 5567, - EndPos: 5568, + EndLine: 301, + StartPos: 5567, + EndPos: 5568, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 301, - EndLine: 301, - StartPos: 5567, - EndPos: 5568, + EndLine: 301, + StartPos: 5567, + EndPos: 5568, }, Value: "b", }, @@ -14175,30 +14088,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 302, - EndLine: 302, - StartPos: 5573, - EndPos: 5581, + EndLine: 302, + StartPos: 5573, + EndPos: 5581, }, Expr: &assign.BitwiseXor{ Position: &position.Position{ StartLine: 302, - EndLine: 302, - StartPos: 5573, - EndPos: 5580, + EndLine: 302, + StartPos: 5573, + EndPos: 5580, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 302, - EndLine: 302, - StartPos: 5573, - EndPos: 5574, + EndLine: 302, + StartPos: 5573, + EndPos: 5574, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 302, - EndLine: 302, - StartPos: 5573, - EndPos: 5574, + EndLine: 302, + StartPos: 5573, + EndPos: 5574, }, Value: "a", }, @@ -14206,16 +14119,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 302, - EndLine: 302, - StartPos: 5579, - EndPos: 5580, + EndLine: 302, + StartPos: 5579, + EndPos: 5580, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 302, - EndLine: 302, - StartPos: 5579, - EndPos: 5580, + EndLine: 302, + StartPos: 5579, + EndPos: 5580, }, Value: "b", }, @@ -14225,30 +14138,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 303, - EndLine: 303, - StartPos: 5585, - EndPos: 5593, + EndLine: 303, + StartPos: 5585, + EndPos: 5593, }, Expr: &assign.Concat{ Position: &position.Position{ StartLine: 303, - EndLine: 303, - StartPos: 5585, - EndPos: 5592, + EndLine: 303, + StartPos: 5585, + EndPos: 5592, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 303, - EndLine: 303, - StartPos: 5585, - EndPos: 5586, + EndLine: 303, + StartPos: 5585, + EndPos: 5586, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 303, - EndLine: 303, - StartPos: 5585, - EndPos: 5586, + EndLine: 303, + StartPos: 5585, + EndPos: 5586, }, Value: "a", }, @@ -14256,16 +14169,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 303, - EndLine: 303, - StartPos: 5591, - EndPos: 5592, + EndLine: 303, + StartPos: 5591, + EndPos: 5592, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 303, - EndLine: 303, - StartPos: 5591, - EndPos: 5592, + EndLine: 303, + StartPos: 5591, + EndPos: 5592, }, Value: "b", }, @@ -14275,30 +14188,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 304, - EndLine: 304, - StartPos: 5597, - EndPos: 5605, + EndLine: 304, + StartPos: 5597, + EndPos: 5605, }, Expr: &assign.Div{ Position: &position.Position{ StartLine: 304, - EndLine: 304, - StartPos: 5597, - EndPos: 5604, + EndLine: 304, + StartPos: 5597, + EndPos: 5604, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 304, - EndLine: 304, - StartPos: 5597, - EndPos: 5598, + EndLine: 304, + StartPos: 5597, + EndPos: 5598, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 304, - EndLine: 304, - StartPos: 5597, - EndPos: 5598, + EndLine: 304, + StartPos: 5597, + EndPos: 5598, }, Value: "a", }, @@ -14306,16 +14219,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 304, - EndLine: 304, - StartPos: 5603, - EndPos: 5604, + EndLine: 304, + StartPos: 5603, + EndPos: 5604, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 304, - EndLine: 304, - StartPos: 5603, - EndPos: 5604, + EndLine: 304, + StartPos: 5603, + EndPos: 5604, }, Value: "b", }, @@ -14325,30 +14238,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 305, - EndLine: 305, - StartPos: 5609, - EndPos: 5617, + EndLine: 305, + StartPos: 5609, + EndPos: 5617, }, Expr: &assign.Minus{ Position: &position.Position{ StartLine: 305, - EndLine: 305, - StartPos: 5609, - EndPos: 5616, + EndLine: 305, + StartPos: 5609, + EndPos: 5616, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 305, - EndLine: 305, - StartPos: 5609, - EndPos: 5610, + EndLine: 305, + StartPos: 5609, + EndPos: 5610, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 305, - EndLine: 305, - StartPos: 5609, - EndPos: 5610, + EndLine: 305, + StartPos: 5609, + EndPos: 5610, }, Value: "a", }, @@ -14356,16 +14269,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 305, - EndLine: 305, - StartPos: 5615, - EndPos: 5616, + EndLine: 305, + StartPos: 5615, + EndPos: 5616, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 305, - EndLine: 305, - StartPos: 5615, - EndPos: 5616, + EndLine: 305, + StartPos: 5615, + EndPos: 5616, }, Value: "b", }, @@ -14375,30 +14288,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 306, - EndLine: 306, - StartPos: 5621, - EndPos: 5629, + EndLine: 306, + StartPos: 5621, + EndPos: 5629, }, Expr: &assign.Mod{ Position: &position.Position{ StartLine: 306, - EndLine: 306, - StartPos: 5621, - EndPos: 5628, + EndLine: 306, + StartPos: 5621, + EndPos: 5628, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 306, - EndLine: 306, - StartPos: 5621, - EndPos: 5622, + EndLine: 306, + StartPos: 5621, + EndPos: 5622, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 306, - EndLine: 306, - StartPos: 5621, - EndPos: 5622, + EndLine: 306, + StartPos: 5621, + EndPos: 5622, }, Value: "a", }, @@ -14406,16 +14319,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 306, - EndLine: 306, - StartPos: 5627, - EndPos: 5628, + EndLine: 306, + StartPos: 5627, + EndPos: 5628, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 306, - EndLine: 306, - StartPos: 5627, - EndPos: 5628, + EndLine: 306, + StartPos: 5627, + EndPos: 5628, }, Value: "b", }, @@ -14425,30 +14338,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 307, - EndLine: 307, - StartPos: 5633, - EndPos: 5641, + EndLine: 307, + StartPos: 5633, + EndPos: 5641, }, Expr: &assign.Mul{ Position: &position.Position{ StartLine: 307, - EndLine: 307, - StartPos: 5633, - EndPos: 5640, + EndLine: 307, + StartPos: 5633, + EndPos: 5640, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 307, - EndLine: 307, - StartPos: 5633, - EndPos: 5634, + EndLine: 307, + StartPos: 5633, + EndPos: 5634, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 307, - EndLine: 307, - StartPos: 5633, - EndPos: 5634, + EndLine: 307, + StartPos: 5633, + EndPos: 5634, }, Value: "a", }, @@ -14456,16 +14369,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 307, - EndLine: 307, - StartPos: 5639, - EndPos: 5640, + EndLine: 307, + StartPos: 5639, + EndPos: 5640, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 307, - EndLine: 307, - StartPos: 5639, - EndPos: 5640, + EndLine: 307, + StartPos: 5639, + EndPos: 5640, }, Value: "b", }, @@ -14475,30 +14388,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 308, - EndLine: 308, - StartPos: 5645, - EndPos: 5653, + EndLine: 308, + StartPos: 5645, + EndPos: 5653, }, Expr: &assign.Plus{ Position: &position.Position{ StartLine: 308, - EndLine: 308, - StartPos: 5645, - EndPos: 5652, + EndLine: 308, + StartPos: 5645, + EndPos: 5652, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 308, - EndLine: 308, - StartPos: 5645, - EndPos: 5646, + EndLine: 308, + StartPos: 5645, + EndPos: 5646, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 308, - EndLine: 308, - StartPos: 5645, - EndPos: 5646, + EndLine: 308, + StartPos: 5645, + EndPos: 5646, }, Value: "a", }, @@ -14506,16 +14419,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 308, - EndLine: 308, - StartPos: 5651, - EndPos: 5652, + EndLine: 308, + StartPos: 5651, + EndPos: 5652, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 308, - EndLine: 308, - StartPos: 5651, - EndPos: 5652, + EndLine: 308, + StartPos: 5651, + EndPos: 5652, }, Value: "b", }, @@ -14525,30 +14438,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 309, - EndLine: 309, - StartPos: 5657, - EndPos: 5666, + EndLine: 309, + StartPos: 5657, + EndPos: 5666, }, Expr: &assign.Pow{ Position: &position.Position{ StartLine: 309, - EndLine: 309, - StartPos: 5657, - EndPos: 5665, + EndLine: 309, + StartPos: 5657, + EndPos: 5665, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 309, - EndLine: 309, - StartPos: 5657, - EndPos: 5658, + EndLine: 309, + StartPos: 5657, + EndPos: 5658, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 309, - EndLine: 309, - StartPos: 5657, - EndPos: 5658, + EndLine: 309, + StartPos: 5657, + EndPos: 5658, }, Value: "a", }, @@ -14556,16 +14469,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 309, - EndLine: 309, - StartPos: 5664, - EndPos: 5665, + EndLine: 309, + StartPos: 5664, + EndPos: 5665, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 309, - EndLine: 309, - StartPos: 5664, - EndPos: 5665, + EndLine: 309, + StartPos: 5664, + EndPos: 5665, }, Value: "b", }, @@ -14575,30 +14488,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 310, - EndLine: 310, - StartPos: 5670, - EndPos: 5679, + EndLine: 310, + StartPos: 5670, + EndPos: 5679, }, Expr: &assign.ShiftLeft{ Position: &position.Position{ StartLine: 310, - EndLine: 310, - StartPos: 5670, - EndPos: 5678, + EndLine: 310, + StartPos: 5670, + EndPos: 5678, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 310, - EndLine: 310, - StartPos: 5670, - EndPos: 5671, + EndLine: 310, + StartPos: 5670, + EndPos: 5671, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 310, - EndLine: 310, - StartPos: 5670, - EndPos: 5671, + EndLine: 310, + StartPos: 5670, + EndPos: 5671, }, Value: "a", }, @@ -14606,16 +14519,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 310, - EndLine: 310, - StartPos: 5677, - EndPos: 5678, + EndLine: 310, + StartPos: 5677, + EndPos: 5678, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 310, - EndLine: 310, - StartPos: 5677, - EndPos: 5678, + EndLine: 310, + StartPos: 5677, + EndPos: 5678, }, Value: "b", }, @@ -14625,30 +14538,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 311, - EndLine: 311, - StartPos: 5683, - EndPos: 5692, + EndLine: 311, + StartPos: 5683, + EndPos: 5692, }, Expr: &assign.ShiftRight{ Position: &position.Position{ StartLine: 311, - EndLine: 311, - StartPos: 5683, - EndPos: 5691, + EndLine: 311, + StartPos: 5683, + EndPos: 5691, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 311, - EndLine: 311, - StartPos: 5683, - EndPos: 5684, + EndLine: 311, + StartPos: 5683, + EndPos: 5684, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 311, - EndLine: 311, - StartPos: 5683, - EndPos: 5684, + EndLine: 311, + StartPos: 5683, + EndPos: 5684, }, Value: "a", }, @@ -14656,16 +14569,16 @@ func TestPhp5(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 311, - EndLine: 311, - StartPos: 5690, - EndPos: 5691, + EndLine: 311, + StartPos: 5690, + EndPos: 5691, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 311, - EndLine: 311, - StartPos: 5690, - EndPos: 5691, + EndLine: 311, + StartPos: 5690, + EndPos: 5691, }, Value: "b", }, @@ -14675,31 +14588,31 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 314, - EndLine: 314, - StartPos: 5699, - EndPos: 5710, + EndLine: 314, + StartPos: 5699, + EndPos: 5710, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 314, - EndLine: 314, - StartPos: 5699, - EndPos: 5708, + EndLine: 314, + StartPos: 5699, + EndPos: 5708, }, Class: &name.FullyQualified{ Position: &position.Position{ StartLine: 314, - EndLine: 314, - StartPos: 5703, - EndPos: 5706, + EndLine: 314, + StartPos: 5703, + EndPos: 5706, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 314, - EndLine: 314, - StartPos: 5704, - EndPos: 5706, + EndLine: 314, + StartPos: 5704, + EndPos: 5706, }, Value: "Foo", }, @@ -14708,9 +14621,9 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 314, - EndLine: 314, - StartPos: 5707, - EndPos: 5708, + EndLine: 314, + StartPos: 5707, + EndPos: 5708, }, }, }, @@ -14718,45 +14631,45 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 315, - EndLine: 315, - StartPos: 5735, - EndPos: 5738, + EndLine: 315, + StartPos: 5735, + EndPos: 5738, }, Expr: &expr.PropertyFetch{ Position: &position.Position{ StartLine: 315, - EndLine: 315, - StartPos: 5735, - EndPos: 5737, + EndLine: 315, + StartPos: 5735, + EndPos: 5737, }, Variable: &expr.MethodCall{ Position: &position.Position{ StartLine: 315, - EndLine: 315, - StartPos: 5731, - EndPos: 5732, + EndLine: 315, + StartPos: 5731, + EndPos: 5732, }, Variable: &expr.New{ Position: &position.Position{ StartLine: 315, - EndLine: 315, - StartPos: 5715, - EndPos: 5724, + EndLine: 315, + StartPos: 5715, + EndPos: 5724, }, Class: &name.FullyQualified{ Position: &position.Position{ StartLine: 315, - EndLine: 315, - StartPos: 5719, - EndPos: 5722, + EndLine: 315, + StartPos: 5719, + EndPos: 5722, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 315, - EndLine: 315, - StartPos: 5720, - EndPos: 5722, + EndLine: 315, + StartPos: 5720, + EndPos: 5722, }, Value: "Foo", }, @@ -14765,36 +14678,36 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 315, - EndLine: 315, - StartPos: 5723, - EndPos: 5724, + EndLine: 315, + StartPos: 5723, + EndPos: 5724, }, }, }, Method: &node.Identifier{ Position: &position.Position{ StartLine: 315, - EndLine: 315, - StartPos: 5728, - EndPos: 5730, + EndLine: 315, + StartPos: 5728, + EndPos: 5730, }, Value: "bar", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 315, - EndLine: 315, - StartPos: 5731, - EndPos: 5732, + EndLine: 315, + StartPos: 5731, + EndPos: 5732, }, }, }, Property: &node.Identifier{ Position: &position.Position{ StartLine: 315, - EndLine: 315, - StartPos: 5735, - EndPos: 5737, + EndLine: 315, + StartPos: 5735, + EndPos: 5737, }, Value: "baz", }, @@ -14803,45 +14716,45 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 316, - EndLine: 316, - StartPos: 5758, - EndPos: 5760, + EndLine: 316, + StartPos: 5758, + EndPos: 5760, }, Expr: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 316, - EndLine: 316, - StartPos: 5758, - EndPos: 5758, + EndLine: 316, + StartPos: 5758, + EndPos: 5758, }, Variable: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 316, - EndLine: 316, - StartPos: 5755, - EndPos: 5755, + EndLine: 316, + StartPos: 5755, + EndPos: 5755, }, Variable: &expr.New{ Position: &position.Position{ StartLine: 316, - EndLine: 316, - StartPos: 5743, - EndPos: 5752, + EndLine: 316, + StartPos: 5743, + EndPos: 5752, }, Class: &name.FullyQualified{ Position: &position.Position{ StartLine: 316, - EndLine: 316, - StartPos: 5747, - EndPos: 5750, + EndLine: 316, + StartPos: 5747, + EndPos: 5750, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 316, - EndLine: 316, - StartPos: 5748, - EndPos: 5750, + EndLine: 316, + StartPos: 5748, + EndPos: 5750, }, Value: "Foo", }, @@ -14850,18 +14763,18 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 316, - EndLine: 316, - StartPos: 5751, - EndPos: 5752, + EndLine: 316, + StartPos: 5751, + EndPos: 5752, }, }, }, Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 316, - EndLine: 316, - StartPos: 5755, - EndPos: 5755, + EndLine: 316, + StartPos: 5755, + EndPos: 5755, }, Value: "0", }, @@ -14869,9 +14782,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 316, - EndLine: 316, - StartPos: 5758, - EndPos: 5758, + EndLine: 316, + StartPos: 5758, + EndPos: 5758, }, Value: "0", }, @@ -14880,45 +14793,45 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 317, - EndLine: 317, - StartPos: 5784, - EndPos: 5786, + EndLine: 317, + StartPos: 5784, + EndPos: 5786, }, Expr: &expr.MethodCall{ Position: &position.Position{ StartLine: 317, - EndLine: 317, - StartPos: 5784, - EndPos: 5785, + EndLine: 317, + StartPos: 5784, + EndPos: 5785, }, Variable: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 317, - EndLine: 317, - StartPos: 5777, - EndPos: 5777, + EndLine: 317, + StartPos: 5777, + EndPos: 5777, }, Variable: &expr.New{ Position: &position.Position{ StartLine: 317, - EndLine: 317, - StartPos: 5765, - EndPos: 5774, + EndLine: 317, + StartPos: 5765, + EndPos: 5774, }, Class: &name.FullyQualified{ Position: &position.Position{ StartLine: 317, - EndLine: 317, - StartPos: 5769, - EndPos: 5772, + EndLine: 317, + StartPos: 5769, + EndPos: 5772, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 317, - EndLine: 317, - StartPos: 5770, - EndPos: 5772, + EndLine: 317, + StartPos: 5770, + EndPos: 5772, }, Value: "Foo", }, @@ -14927,18 +14840,18 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 317, - EndLine: 317, - StartPos: 5773, - EndPos: 5774, + EndLine: 317, + StartPos: 5773, + EndPos: 5774, }, }, }, Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 317, - EndLine: 317, - StartPos: 5777, - EndPos: 5777, + EndLine: 317, + StartPos: 5777, + EndPos: 5777, }, Value: "0", }, @@ -14946,18 +14859,18 @@ func TestPhp5(t *testing.T) { Method: &node.Identifier{ Position: &position.Position{ StartLine: 317, - EndLine: 317, - StartPos: 5781, - EndPos: 5783, + EndLine: 317, + StartPos: 5781, + EndPos: 5783, }, Value: "bar", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 317, - EndLine: 317, - StartPos: 5784, - EndPos: 5785, + EndLine: 317, + StartPos: 5784, + EndPos: 5785, }, }, }, @@ -14965,60 +14878,60 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 319, - EndLine: 319, - StartPos: 5791, - EndPos: 5807, + EndLine: 319, + StartPos: 5791, + EndPos: 5807, }, Expr: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 319, - EndLine: 319, - StartPos: 5791, - EndPos: 5806, + EndLine: 319, + StartPos: 5791, + EndPos: 5806, }, Variable: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 319, - EndLine: 319, - StartPos: 5791, - EndPos: 5803, + EndLine: 319, + StartPos: 5791, + EndPos: 5803, }, Variable: &expr.Array{ Position: &position.Position{ StartLine: 319, - EndLine: 319, - StartPos: 5791, - EndPos: 5800, + EndLine: 319, + StartPos: 5791, + EndPos: 5800, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 319, - EndLine: 319, - StartPos: 5797, - EndPos: 5799, + EndLine: 319, + StartPos: 5797, + EndPos: 5799, }, Val: &expr.ShortArray{ Position: &position.Position{ StartLine: 319, - EndLine: 319, - StartPos: 5797, - EndPos: 5799, + EndLine: 319, + StartPos: 5797, + EndPos: 5799, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 319, - EndLine: 319, - StartPos: 5798, - EndPos: 5798, + EndLine: 319, + StartPos: 5798, + EndPos: 5798, }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 319, - EndLine: 319, - StartPos: 5798, - EndPos: 5798, + EndLine: 319, + StartPos: 5798, + EndPos: 5798, }, Value: "0", }, @@ -15031,9 +14944,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 319, - EndLine: 319, - StartPos: 5802, - EndPos: 5802, + EndLine: 319, + StartPos: 5802, + EndPos: 5802, }, Value: "0", }, @@ -15041,9 +14954,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 319, - EndLine: 319, - StartPos: 5805, - EndPos: 5805, + EndLine: 319, + StartPos: 5805, + EndPos: 5805, }, Value: "0", }, @@ -15052,32 +14965,32 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 320, - EndLine: 320, - StartPos: 5811, - EndPos: 5819, + EndLine: 320, + StartPos: 5811, + EndPos: 5819, }, Expr: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 320, - EndLine: 320, - StartPos: 5811, - EndPos: 5818, + EndLine: 320, + StartPos: 5811, + EndPos: 5818, }, Variable: &scalar.String{ Position: &position.Position{ StartLine: 320, - EndLine: 320, - StartPos: 5811, - EndPos: 5815, + EndLine: 320, + StartPos: 5811, + EndPos: 5815, }, Value: "\"foo\"", }, Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 320, - EndLine: 320, - StartPos: 5817, - EndPos: 5817, + EndLine: 320, + StartPos: 5817, + EndPos: 5817, }, Value: "0", }, @@ -15086,38 +14999,38 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 321, - EndLine: 321, - StartPos: 5823, - EndPos: 5829, + EndLine: 321, + StartPos: 5823, + EndPos: 5829, }, Expr: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 321, - EndLine: 321, - StartPos: 5823, - EndPos: 5828, + EndLine: 321, + StartPos: 5823, + EndPos: 5828, }, Variable: &expr.ConstFetch{ Position: &position.Position{ StartLine: 321, - EndLine: 321, - StartPos: 5823, - EndPos: 5825, + EndLine: 321, + StartPos: 5823, + EndPos: 5825, }, Constant: &name.Name{ Position: &position.Position{ StartLine: 321, - EndLine: 321, - StartPos: 5823, - EndPos: 5825, + EndLine: 321, + StartPos: 5823, + EndPos: 5825, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 321, - EndLine: 321, - StartPos: 5823, - EndPos: 5825, + EndLine: 321, + StartPos: 5823, + EndPos: 5825, }, Value: "foo", }, @@ -15127,9 +15040,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 321, - EndLine: 321, - StartPos: 5827, - EndPos: 5827, + EndLine: 321, + StartPos: 5827, + EndPos: 5827, }, Value: "0", }, @@ -15138,32 +15051,32 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 322, - EndLine: 322, - StartPos: 5833, - EndPos: 5844, + EndLine: 322, + StartPos: 5833, + EndPos: 5844, }, Expr: &expr.ClassConstFetch{ Position: &position.Position{ StartLine: 322, - EndLine: 322, - StartPos: 5833, - EndPos: 5843, + EndLine: 322, + StartPos: 5833, + EndPos: 5843, }, Class: &node.Identifier{ Position: &position.Position{ StartLine: 322, - EndLine: 322, - StartPos: 5833, - EndPos: 5838, + EndLine: 322, + StartPos: 5833, + EndPos: 5838, }, Value: "static", }, ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 322, - EndLine: 322, - StartPos: 5841, - EndPos: 5843, + EndLine: 322, + StartPos: 5841, + EndPos: 5843, }, Value: "foo", }, @@ -15172,30 +15085,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 324, - EndLine: 324, - StartPos: 5849, - EndPos: 5857, + EndLine: 324, + StartPos: 5849, + EndPos: 5857, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 324, - EndLine: 324, - StartPos: 5849, - EndPos: 5856, + EndLine: 324, + StartPos: 5849, + EndPos: 5856, }, Class: &expr.Variable{ Position: &position.Position{ StartLine: 324, - EndLine: 324, - StartPos: 5853, - EndPos: 5856, + EndLine: 324, + StartPos: 5853, + EndPos: 5856, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 324, - EndLine: 324, - StartPos: 5853, - EndPos: 5856, + EndLine: 324, + StartPos: 5853, + EndPos: 5856, }, Value: "foo", }, @@ -15205,37 +15118,37 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 325, - EndLine: 325, - StartPos: 5861, - EndPos: 5875, + EndLine: 325, + StartPos: 5861, + EndPos: 5875, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 325, - EndLine: 325, - StartPos: 5861, - EndPos: 5874, + EndLine: 325, + StartPos: 5861, + EndPos: 5874, }, Class: &expr.StaticPropertyFetch{ Position: &position.Position{ StartLine: 325, - EndLine: 325, - StartPos: 5865, - EndPos: 5874, + EndLine: 325, + StartPos: 5865, + EndPos: 5874, }, Class: &expr.Variable{ Position: &position.Position{ StartLine: 325, - EndLine: 325, - StartPos: 5865, - EndPos: 5868, + EndLine: 325, + StartPos: 5865, + EndPos: 5868, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 325, - EndLine: 325, - StartPos: 5865, - EndPos: 5868, + EndLine: 325, + StartPos: 5865, + EndPos: 5868, }, Value: "foo", }, @@ -15243,16 +15156,16 @@ func TestPhp5(t *testing.T) { Property: &expr.Variable{ Position: &position.Position{ StartLine: 325, - EndLine: 325, - StartPos: 5871, - EndPos: 5874, + EndLine: 325, + StartPos: 5871, + EndPos: 5874, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 325, - EndLine: 325, - StartPos: 5871, - EndPos: 5874, + EndLine: 325, + StartPos: 5871, + EndPos: 5874, }, Value: "bar", }, @@ -15263,44 +15176,44 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 326, - EndLine: 326, - StartPos: 5879, - EndPos: 5891, + EndLine: 326, + StartPos: 5879, + EndPos: 5891, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 326, - EndLine: 326, - StartPos: 5879, - EndPos: 5889, + EndLine: 326, + StartPos: 5879, + EndPos: 5889, }, Class: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 326, - EndLine: 326, - StartPos: 5889, - EndPos: 5889, + EndLine: 326, + StartPos: 5889, + EndPos: 5889, }, Variable: &expr.PropertyFetch{ Position: &position.Position{ StartLine: 326, - EndLine: 326, - StartPos: 5887, - EndPos: 5889, + EndLine: 326, + StartPos: 5887, + EndPos: 5889, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 326, - EndLine: 326, - StartPos: 5883, - EndPos: 5887, + EndLine: 326, + StartPos: 5883, + EndPos: 5887, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 326, - EndLine: 326, - StartPos: 5883, - EndPos: 5884, + EndLine: 326, + StartPos: 5883, + EndPos: 5884, }, Value: "a", }, @@ -15308,9 +15221,9 @@ func TestPhp5(t *testing.T) { Property: &node.Identifier{ Position: &position.Position{ StartLine: 326, - EndLine: 326, - StartPos: 5887, - EndPos: 5887, + EndLine: 326, + StartPos: 5887, + EndPos: 5887, }, Value: "b", }, @@ -15318,9 +15231,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 326, - EndLine: 326, - StartPos: 5889, - EndPos: 5889, + EndLine: 326, + StartPos: 5889, + EndPos: 5889, }, Value: "0", }, @@ -15330,65 +15243,65 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5895, - EndPos: 5926, + EndLine: 327, + StartPos: 5895, + EndPos: 5926, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5895, - EndPos: 5924, + EndLine: 327, + StartPos: 5895, + EndPos: 5924, }, Class: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5924, - EndPos: 5924, + EndLine: 327, + StartPos: 5924, + EndPos: 5924, }, Variable: &expr.PropertyFetch{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5922, - EndPos: 5924, + EndLine: 327, + StartPos: 5922, + EndPos: 5924, }, Variable: &expr.PropertyFetch{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5918, - EndPos: 5922, + EndLine: 327, + StartPos: 5918, + EndPos: 5922, }, Variable: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5905, - EndPos: 5919, + EndLine: 327, + StartPos: 5905, + EndPos: 5919, }, Variable: &expr.PropertyFetch{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5903, - EndPos: 5914, + EndLine: 327, + StartPos: 5903, + EndPos: 5914, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5899, - EndPos: 5903, + EndLine: 327, + StartPos: 5899, + EndPos: 5903, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5899, - EndPos: 5900, + EndLine: 327, + StartPos: 5899, + EndPos: 5900, }, Value: "a", }, @@ -15396,9 +15309,9 @@ func TestPhp5(t *testing.T) { Property: &node.Identifier{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5903, - EndPos: 5903, + EndLine: 327, + StartPos: 5903, + EndPos: 5903, }, Value: "b", }, @@ -15406,23 +15319,23 @@ func TestPhp5(t *testing.T) { Dim: &expr.Ternary{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5905, - EndPos: 5914, + EndLine: 327, + StartPos: 5905, + EndPos: 5914, }, Condition: &expr.Variable{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5905, - EndPos: 5906, + EndLine: 327, + StartPos: 5905, + EndPos: 5906, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5905, - EndPos: 5906, + EndLine: 327, + StartPos: 5905, + EndPos: 5906, }, Value: "b", }, @@ -15430,24 +15343,24 @@ func TestPhp5(t *testing.T) { IfFalse: &expr.ConstFetch{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5911, - EndPos: 5914, + EndLine: 327, + StartPos: 5911, + EndPos: 5914, }, Constant: &name.Name{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5911, - EndPos: 5914, + EndLine: 327, + StartPos: 5911, + EndPos: 5914, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5911, - EndPos: 5914, + EndLine: 327, + StartPos: 5911, + EndPos: 5914, }, Value: "null", }, @@ -15459,16 +15372,16 @@ func TestPhp5(t *testing.T) { Property: &expr.Variable{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5918, - EndPos: 5919, + EndLine: 327, + StartPos: 5918, + EndPos: 5919, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5918, - EndPos: 5919, + EndLine: 327, + StartPos: 5918, + EndPos: 5919, }, Value: "c", }, @@ -15477,9 +15390,9 @@ func TestPhp5(t *testing.T) { Property: &node.Identifier{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5922, - EndPos: 5922, + EndLine: 327, + StartPos: 5922, + EndPos: 5922, }, Value: "d", }, @@ -15487,9 +15400,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5924, - EndPos: 5924, + EndLine: 327, + StartPos: 5924, + EndPos: 5924, }, Value: "0", }, @@ -15499,31 +15412,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5927, - EndPos: 5945, + EndLine: 327, + StartPos: 5927, + EndPos: 5945, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5934, - EndPos: 5944, + EndLine: 327, + StartPos: 5934, + EndPos: 5944, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5934, - EndPos: 5935, + EndLine: 327, + StartPos: 5934, + EndPos: 5935, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5934, - EndPos: 5935, + EndLine: 327, + StartPos: 5934, + EndPos: 5935, }, Value: "a", }, @@ -15531,31 +15444,31 @@ func TestPhp5(t *testing.T) { Expr: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5939, - EndPos: 5944, + EndLine: 327, + StartPos: 5939, + EndPos: 5944, }, Variable: &expr.ShortArray{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5939, - EndPos: 5941, + EndLine: 327, + StartPos: 5939, + EndPos: 5941, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5940, - EndPos: 5940, + EndLine: 327, + StartPos: 5940, + EndPos: 5940, }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5940, - EndPos: 5940, + EndLine: 327, + StartPos: 5940, + EndPos: 5940, }, Value: "1", }, @@ -15565,9 +15478,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 327, - EndLine: 327, - StartPos: 5943, - EndPos: 5943, + EndLine: 327, + StartPos: 5943, + EndPos: 5943, }, Value: "0", }, @@ -15578,31 +15491,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5950, - EndPos: 5964, + EndLine: 329, + StartPos: 5950, + EndPos: 5964, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5957, - EndPos: 5963, + EndLine: 329, + StartPos: 5957, + EndPos: 5963, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5957, - EndPos: 5958, + EndLine: 329, + StartPos: 5957, + EndPos: 5958, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5957, - EndPos: 5958, + EndLine: 329, + StartPos: 5957, + EndPos: 5958, }, Value: "a", }, @@ -15610,16 +15523,16 @@ func TestPhp5(t *testing.T) { Expr: &expr.BooleanNot{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5962, - EndPos: 5963, + EndLine: 329, + StartPos: 5962, + EndPos: 5963, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5963, - EndPos: 5963, + EndLine: 329, + StartPos: 5963, + EndPos: 5963, }, Value: "1", }, @@ -15630,31 +15543,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 330, - EndLine: 330, - StartPos: 5968, - EndPos: 5982, + EndLine: 330, + StartPos: 5968, + EndPos: 5982, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 330, - EndLine: 330, - StartPos: 5975, - EndPos: 5981, + EndLine: 330, + StartPos: 5975, + EndPos: 5981, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 330, - EndLine: 330, - StartPos: 5975, - EndPos: 5976, + EndLine: 330, + StartPos: 5975, + EndPos: 5976, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 330, - EndLine: 330, - StartPos: 5975, - EndPos: 5976, + EndLine: 330, + StartPos: 5975, + EndPos: 5976, }, Value: "a", }, @@ -15662,16 +15575,16 @@ func TestPhp5(t *testing.T) { Expr: &expr.BitwiseNot{ Position: &position.Position{ StartLine: 330, - EndLine: 330, - StartPos: 5980, - EndPos: 5981, + EndLine: 330, + StartPos: 5980, + EndPos: 5981, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 330, - EndLine: 330, - StartPos: 5981, - EndPos: 5981, + EndLine: 330, + StartPos: 5981, + EndPos: 5981, }, Value: "1", }, @@ -15682,31 +15595,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 5986, - EndPos: 6000, + EndLine: 331, + StartPos: 5986, + EndPos: 6000, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 5993, - EndPos: 5999, + EndLine: 331, + StartPos: 5993, + EndPos: 5999, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 5993, - EndPos: 5994, + EndLine: 331, + StartPos: 5993, + EndPos: 5994, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 5993, - EndPos: 5994, + EndLine: 331, + StartPos: 5993, + EndPos: 5994, }, Value: "a", }, @@ -15714,16 +15627,16 @@ func TestPhp5(t *testing.T) { Expr: &expr.UnaryPlus{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 5998, - EndPos: 5999, + EndLine: 331, + StartPos: 5998, + EndPos: 5999, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 5999, - EndPos: 5999, + EndLine: 331, + StartPos: 5999, + EndPos: 5999, }, Value: "1", }, @@ -15734,31 +15647,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 332, - EndLine: 332, - StartPos: 6004, - EndPos: 6018, + EndLine: 332, + StartPos: 6004, + EndPos: 6018, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 332, - EndLine: 332, - StartPos: 6011, - EndPos: 6017, + EndLine: 332, + StartPos: 6011, + EndPos: 6017, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 332, - EndLine: 332, - StartPos: 6011, - EndPos: 6012, + EndLine: 332, + StartPos: 6011, + EndPos: 6012, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 332, - EndLine: 332, - StartPos: 6011, - EndPos: 6012, + EndLine: 332, + StartPos: 6011, + EndPos: 6012, }, Value: "a", }, @@ -15766,16 +15679,16 @@ func TestPhp5(t *testing.T) { Expr: &expr.UnaryMinus{ Position: &position.Position{ StartLine: 332, - EndLine: 332, - StartPos: 6016, - EndPos: 6017, + EndLine: 332, + StartPos: 6016, + EndPos: 6017, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 332, - EndLine: 332, - StartPos: 6017, - EndPos: 6017, + EndLine: 332, + StartPos: 6017, + EndPos: 6017, }, Value: "1", }, @@ -15786,31 +15699,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 333, - EndLine: 333, - StartPos: 6022, - EndPos: 6037, + EndLine: 333, + StartPos: 6022, + EndPos: 6037, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 333, - EndLine: 333, - StartPos: 6029, - EndPos: 6035, + EndLine: 333, + StartPos: 6029, + EndPos: 6035, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 333, - EndLine: 333, - StartPos: 6029, - EndPos: 6030, + EndLine: 333, + StartPos: 6029, + EndPos: 6030, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 333, - EndLine: 333, - StartPos: 6029, - EndPos: 6030, + EndLine: 333, + StartPos: 6029, + EndPos: 6030, }, Value: "a", }, @@ -15818,9 +15731,9 @@ func TestPhp5(t *testing.T) { Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 333, - EndLine: 333, - StartPos: 6035, - EndPos: 6035, + EndLine: 333, + StartPos: 6035, + EndPos: 6035, }, Value: "1", }, @@ -15830,31 +15743,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 334, - EndLine: 334, - StartPos: 6041, - EndPos: 6059, + EndLine: 334, + StartPos: 6041, + EndPos: 6059, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 334, - EndLine: 334, - StartPos: 6048, - EndPos: 6058, + EndLine: 334, + StartPos: 6048, + EndPos: 6058, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 334, - EndLine: 334, - StartPos: 6048, - EndPos: 6049, + EndLine: 334, + StartPos: 6048, + EndPos: 6049, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 334, - EndLine: 334, - StartPos: 6048, - EndPos: 6049, + EndLine: 334, + StartPos: 6048, + EndPos: 6049, }, Value: "a", }, @@ -15862,25 +15775,25 @@ func TestPhp5(t *testing.T) { Expr: &expr.Ternary{ Position: &position.Position{ StartLine: 334, - EndLine: 334, - StartPos: 6053, - EndPos: 6058, + EndLine: 334, + StartPos: 6053, + EndPos: 6058, }, Condition: &scalar.Lnumber{ Position: &position.Position{ StartLine: 334, - EndLine: 334, - StartPos: 6053, - EndPos: 6053, + EndLine: 334, + StartPos: 6053, + EndPos: 6053, }, Value: "1", }, IfFalse: &scalar.Lnumber{ Position: &position.Position{ StartLine: 334, - EndLine: 334, - StartPos: 6058, - EndPos: 6058, + EndLine: 334, + StartPos: 6058, + EndPos: 6058, }, Value: "2", }, @@ -15891,31 +15804,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6063, - EndPos: 6084, + EndLine: 335, + StartPos: 6063, + EndPos: 6084, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6070, - EndPos: 6083, + EndLine: 335, + StartPos: 6070, + EndPos: 6083, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6070, - EndPos: 6071, + EndLine: 335, + StartPos: 6070, + EndPos: 6071, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6070, - EndPos: 6071, + EndLine: 335, + StartPos: 6070, + EndPos: 6071, }, Value: "a", }, @@ -15923,34 +15836,34 @@ func TestPhp5(t *testing.T) { Expr: &expr.Ternary{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6075, - EndPos: 6083, + EndLine: 335, + StartPos: 6075, + EndPos: 6083, }, Condition: &scalar.Lnumber{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6075, - EndPos: 6075, + EndLine: 335, + StartPos: 6075, + EndPos: 6075, }, Value: "1", }, IfTrue: &scalar.Lnumber{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6079, - EndPos: 6079, + EndLine: 335, + StartPos: 6079, + EndPos: 6079, }, Value: "2", }, IfFalse: &scalar.Lnumber{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6083, - EndPos: 6083, + EndLine: 335, + StartPos: 6083, + EndPos: 6083, }, Value: "3", }, @@ -15961,31 +15874,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 336, - EndLine: 336, - StartPos: 6088, - EndPos: 6105, + EndLine: 336, + StartPos: 6088, + EndPos: 6105, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 336, - EndLine: 336, - StartPos: 6095, - EndPos: 6104, + EndLine: 336, + StartPos: 6095, + EndPos: 6104, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 336, - EndLine: 336, - StartPos: 6095, - EndPos: 6096, + EndLine: 336, + StartPos: 6095, + EndPos: 6096, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 336, - EndLine: 336, - StartPos: 6095, - EndPos: 6096, + EndLine: 336, + StartPos: 6095, + EndPos: 6096, }, Value: "a", }, @@ -15993,25 +15906,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.BitwiseAnd{ Position: &position.Position{ StartLine: 336, - EndLine: 336, - StartPos: 6100, - EndPos: 6104, + EndLine: 336, + StartPos: 6100, + EndPos: 6104, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 336, - EndLine: 336, - StartPos: 6100, - EndPos: 6100, + EndLine: 336, + StartPos: 6100, + EndPos: 6100, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 336, - EndLine: 336, - StartPos: 6104, - EndPos: 6104, + EndLine: 336, + StartPos: 6104, + EndPos: 6104, }, Value: "2", }, @@ -16022,31 +15935,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 337, - EndLine: 337, - StartPos: 6109, - EndPos: 6126, + EndLine: 337, + StartPos: 6109, + EndPos: 6126, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 337, - EndLine: 337, - StartPos: 6116, - EndPos: 6125, + EndLine: 337, + StartPos: 6116, + EndPos: 6125, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 337, - EndLine: 337, - StartPos: 6116, - EndPos: 6117, + EndLine: 337, + StartPos: 6116, + EndPos: 6117, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 337, - EndLine: 337, - StartPos: 6116, - EndPos: 6117, + EndLine: 337, + StartPos: 6116, + EndPos: 6117, }, Value: "a", }, @@ -16054,25 +15967,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.BitwiseOr{ Position: &position.Position{ StartLine: 337, - EndLine: 337, - StartPos: 6121, - EndPos: 6125, + EndLine: 337, + StartPos: 6121, + EndPos: 6125, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 337, - EndLine: 337, - StartPos: 6121, - EndPos: 6121, + EndLine: 337, + StartPos: 6121, + EndPos: 6121, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 337, - EndLine: 337, - StartPos: 6125, - EndPos: 6125, + EndLine: 337, + StartPos: 6125, + EndPos: 6125, }, Value: "2", }, @@ -16083,31 +15996,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 338, - EndLine: 338, - StartPos: 6130, - EndPos: 6147, + EndLine: 338, + StartPos: 6130, + EndPos: 6147, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 338, - EndLine: 338, - StartPos: 6137, - EndPos: 6146, + EndLine: 338, + StartPos: 6137, + EndPos: 6146, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 338, - EndLine: 338, - StartPos: 6137, - EndPos: 6138, + EndLine: 338, + StartPos: 6137, + EndPos: 6138, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 338, - EndLine: 338, - StartPos: 6137, - EndPos: 6138, + EndLine: 338, + StartPos: 6137, + EndPos: 6138, }, Value: "a", }, @@ -16115,25 +16028,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.BitwiseXor{ Position: &position.Position{ StartLine: 338, - EndLine: 338, - StartPos: 6142, - EndPos: 6146, + EndLine: 338, + StartPos: 6142, + EndPos: 6146, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 338, - EndLine: 338, - StartPos: 6142, - EndPos: 6142, + EndLine: 338, + StartPos: 6142, + EndPos: 6142, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 338, - EndLine: 338, - StartPos: 6146, - EndPos: 6146, + EndLine: 338, + StartPos: 6146, + EndPos: 6146, }, Value: "2", }, @@ -16144,31 +16057,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 339, - EndLine: 339, - StartPos: 6151, - EndPos: 6169, + EndLine: 339, + StartPos: 6151, + EndPos: 6169, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 339, - EndLine: 339, - StartPos: 6158, - EndPos: 6168, + EndLine: 339, + StartPos: 6158, + EndPos: 6168, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 339, - EndLine: 339, - StartPos: 6158, - EndPos: 6159, + EndLine: 339, + StartPos: 6158, + EndPos: 6159, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 339, - EndLine: 339, - StartPos: 6158, - EndPos: 6159, + EndLine: 339, + StartPos: 6158, + EndPos: 6159, }, Value: "a", }, @@ -16176,25 +16089,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.BooleanAnd{ Position: &position.Position{ StartLine: 339, - EndLine: 339, - StartPos: 6163, - EndPos: 6168, + EndLine: 339, + StartPos: 6163, + EndPos: 6168, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 339, - EndLine: 339, - StartPos: 6163, - EndPos: 6163, + EndLine: 339, + StartPos: 6163, + EndPos: 6163, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 339, - EndLine: 339, - StartPos: 6168, - EndPos: 6168, + EndLine: 339, + StartPos: 6168, + EndPos: 6168, }, Value: "2", }, @@ -16205,31 +16118,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 340, - EndLine: 340, - StartPos: 6173, - EndPos: 6191, + EndLine: 340, + StartPos: 6173, + EndPos: 6191, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 340, - EndLine: 340, - StartPos: 6180, - EndPos: 6190, + EndLine: 340, + StartPos: 6180, + EndPos: 6190, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 340, - EndLine: 340, - StartPos: 6180, - EndPos: 6181, + EndLine: 340, + StartPos: 6180, + EndPos: 6181, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 340, - EndLine: 340, - StartPos: 6180, - EndPos: 6181, + EndLine: 340, + StartPos: 6180, + EndPos: 6181, }, Value: "a", }, @@ -16237,25 +16150,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.BooleanOr{ Position: &position.Position{ StartLine: 340, - EndLine: 340, - StartPos: 6185, - EndPos: 6190, + EndLine: 340, + StartPos: 6185, + EndPos: 6190, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 340, - EndLine: 340, - StartPos: 6185, - EndPos: 6185, + EndLine: 340, + StartPos: 6185, + EndPos: 6185, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 340, - EndLine: 340, - StartPos: 6190, - EndPos: 6190, + EndLine: 340, + StartPos: 6190, + EndPos: 6190, }, Value: "2", }, @@ -16266,31 +16179,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 341, - EndLine: 341, - StartPos: 6195, - EndPos: 6212, + EndLine: 341, + StartPos: 6195, + EndPos: 6212, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 341, - EndLine: 341, - StartPos: 6202, - EndPos: 6211, + EndLine: 341, + StartPos: 6202, + EndPos: 6211, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 341, - EndLine: 341, - StartPos: 6202, - EndPos: 6203, + EndLine: 341, + StartPos: 6202, + EndPos: 6203, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 341, - EndLine: 341, - StartPos: 6202, - EndPos: 6203, + EndLine: 341, + StartPos: 6202, + EndPos: 6203, }, Value: "a", }, @@ -16298,25 +16211,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.Concat{ Position: &position.Position{ StartLine: 341, - EndLine: 341, - StartPos: 6207, - EndPos: 6211, + EndLine: 341, + StartPos: 6207, + EndPos: 6211, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 341, - EndLine: 341, - StartPos: 6207, - EndPos: 6207, + EndLine: 341, + StartPos: 6207, + EndPos: 6207, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 341, - EndLine: 341, - StartPos: 6211, - EndPos: 6211, + EndLine: 341, + StartPos: 6211, + EndPos: 6211, }, Value: "2", }, @@ -16327,31 +16240,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 342, - EndLine: 342, - StartPos: 6216, - EndPos: 6233, + EndLine: 342, + StartPos: 6216, + EndPos: 6233, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 342, - EndLine: 342, - StartPos: 6223, - EndPos: 6232, + EndLine: 342, + StartPos: 6223, + EndPos: 6232, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 342, - EndLine: 342, - StartPos: 6223, - EndPos: 6224, + EndLine: 342, + StartPos: 6223, + EndPos: 6224, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 342, - EndLine: 342, - StartPos: 6223, - EndPos: 6224, + EndLine: 342, + StartPos: 6223, + EndPos: 6224, }, Value: "a", }, @@ -16359,25 +16272,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.Div{ Position: &position.Position{ StartLine: 342, - EndLine: 342, - StartPos: 6228, - EndPos: 6232, + EndLine: 342, + StartPos: 6228, + EndPos: 6232, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 342, - EndLine: 342, - StartPos: 6228, - EndPos: 6228, + EndLine: 342, + StartPos: 6228, + EndPos: 6228, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 342, - EndLine: 342, - StartPos: 6232, - EndPos: 6232, + EndLine: 342, + StartPos: 6232, + EndPos: 6232, }, Value: "2", }, @@ -16388,31 +16301,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 343, - EndLine: 343, - StartPos: 6237, - EndPos: 6255, + EndLine: 343, + StartPos: 6237, + EndPos: 6255, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 343, - EndLine: 343, - StartPos: 6244, - EndPos: 6254, + EndLine: 343, + StartPos: 6244, + EndPos: 6254, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 343, - EndLine: 343, - StartPos: 6244, - EndPos: 6245, + EndLine: 343, + StartPos: 6244, + EndPos: 6245, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 343, - EndLine: 343, - StartPos: 6244, - EndPos: 6245, + EndLine: 343, + StartPos: 6244, + EndPos: 6245, }, Value: "a", }, @@ -16420,25 +16333,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.Equal{ Position: &position.Position{ StartLine: 343, - EndLine: 343, - StartPos: 6249, - EndPos: 6254, + EndLine: 343, + StartPos: 6249, + EndPos: 6254, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 343, - EndLine: 343, - StartPos: 6249, - EndPos: 6249, + EndLine: 343, + StartPos: 6249, + EndPos: 6249, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 343, - EndLine: 343, - StartPos: 6254, - EndPos: 6254, + EndLine: 343, + StartPos: 6254, + EndPos: 6254, }, Value: "2", }, @@ -16449,31 +16362,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 344, - EndLine: 344, - StartPos: 6259, - EndPos: 6277, + EndLine: 344, + StartPos: 6259, + EndPos: 6277, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 344, - EndLine: 344, - StartPos: 6266, - EndPos: 6276, + EndLine: 344, + StartPos: 6266, + EndPos: 6276, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 344, - EndLine: 344, - StartPos: 6266, - EndPos: 6267, + EndLine: 344, + StartPos: 6266, + EndPos: 6267, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 344, - EndLine: 344, - StartPos: 6266, - EndPos: 6267, + EndLine: 344, + StartPos: 6266, + EndPos: 6267, }, Value: "a", }, @@ -16481,25 +16394,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.GreaterOrEqual{ Position: &position.Position{ StartLine: 344, - EndLine: 344, - StartPos: 6271, - EndPos: 6276, + EndLine: 344, + StartPos: 6271, + EndPos: 6276, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 344, - EndLine: 344, - StartPos: 6271, - EndPos: 6271, + EndLine: 344, + StartPos: 6271, + EndPos: 6271, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 344, - EndLine: 344, - StartPos: 6276, - EndPos: 6276, + EndLine: 344, + StartPos: 6276, + EndPos: 6276, }, Value: "2", }, @@ -16510,31 +16423,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 345, - EndLine: 345, - StartPos: 6281, - EndPos: 6298, + EndLine: 345, + StartPos: 6281, + EndPos: 6298, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 345, - EndLine: 345, - StartPos: 6288, - EndPos: 6297, + EndLine: 345, + StartPos: 6288, + EndPos: 6297, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 345, - EndLine: 345, - StartPos: 6288, - EndPos: 6289, + EndLine: 345, + StartPos: 6288, + EndPos: 6289, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 345, - EndLine: 345, - StartPos: 6288, - EndPos: 6289, + EndLine: 345, + StartPos: 6288, + EndPos: 6289, }, Value: "a", }, @@ -16542,25 +16455,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.Greater{ Position: &position.Position{ StartLine: 345, - EndLine: 345, - StartPos: 6293, - EndPos: 6297, + EndLine: 345, + StartPos: 6293, + EndPos: 6297, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 345, - EndLine: 345, - StartPos: 6293, - EndPos: 6293, + EndLine: 345, + StartPos: 6293, + EndPos: 6293, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 345, - EndLine: 345, - StartPos: 6297, - EndPos: 6297, + EndLine: 345, + StartPos: 6297, + EndPos: 6297, }, Value: "2", }, @@ -16571,31 +16484,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 346, - EndLine: 346, - StartPos: 6302, - EndPos: 6321, + EndLine: 346, + StartPos: 6302, + EndPos: 6321, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 346, - EndLine: 346, - StartPos: 6309, - EndPos: 6320, + EndLine: 346, + StartPos: 6309, + EndPos: 6320, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 346, - EndLine: 346, - StartPos: 6309, - EndPos: 6310, + EndLine: 346, + StartPos: 6309, + EndPos: 6310, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 346, - EndLine: 346, - StartPos: 6309, - EndPos: 6310, + EndLine: 346, + StartPos: 6309, + EndPos: 6310, }, Value: "a", }, @@ -16603,25 +16516,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.Identical{ Position: &position.Position{ StartLine: 346, - EndLine: 346, - StartPos: 6314, - EndPos: 6320, + EndLine: 346, + StartPos: 6314, + EndPos: 6320, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 346, - EndLine: 346, - StartPos: 6314, - EndPos: 6314, + EndLine: 346, + StartPos: 6314, + EndPos: 6314, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 346, - EndLine: 346, - StartPos: 6320, - EndPos: 6320, + EndLine: 346, + StartPos: 6320, + EndPos: 6320, }, Value: "2", }, @@ -16632,31 +16545,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6325, - EndPos: 6344, + EndLine: 347, + StartPos: 6325, + EndPos: 6344, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6332, - EndPos: 6343, + EndLine: 347, + StartPos: 6332, + EndPos: 6343, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6332, - EndPos: 6333, + EndLine: 347, + StartPos: 6332, + EndPos: 6333, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6332, - EndPos: 6333, + EndLine: 347, + StartPos: 6332, + EndPos: 6333, }, Value: "a", }, @@ -16664,25 +16577,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.LogicalAnd{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6337, - EndPos: 6343, + EndLine: 347, + StartPos: 6337, + EndPos: 6343, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6337, - EndPos: 6337, + EndLine: 347, + StartPos: 6337, + EndPos: 6337, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6343, - EndPos: 6343, + EndLine: 347, + StartPos: 6343, + EndPos: 6343, }, Value: "2", }, @@ -16693,31 +16606,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 348, - EndLine: 348, - StartPos: 6348, - EndPos: 6366, + EndLine: 348, + StartPos: 6348, + EndPos: 6366, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 348, - EndLine: 348, - StartPos: 6355, - EndPos: 6365, + EndLine: 348, + StartPos: 6355, + EndPos: 6365, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 348, - EndLine: 348, - StartPos: 6355, - EndPos: 6356, + EndLine: 348, + StartPos: 6355, + EndPos: 6356, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 348, - EndLine: 348, - StartPos: 6355, - EndPos: 6356, + EndLine: 348, + StartPos: 6355, + EndPos: 6356, }, Value: "a", }, @@ -16725,25 +16638,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.LogicalOr{ Position: &position.Position{ StartLine: 348, - EndLine: 348, - StartPos: 6360, - EndPos: 6365, + EndLine: 348, + StartPos: 6360, + EndPos: 6365, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 348, - EndLine: 348, - StartPos: 6360, - EndPos: 6360, + EndLine: 348, + StartPos: 6360, + EndPos: 6360, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 348, - EndLine: 348, - StartPos: 6365, - EndPos: 6365, + EndLine: 348, + StartPos: 6365, + EndPos: 6365, }, Value: "2", }, @@ -16754,31 +16667,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 349, - EndLine: 349, - StartPos: 6370, - EndPos: 6389, + EndLine: 349, + StartPos: 6370, + EndPos: 6389, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 349, - EndLine: 349, - StartPos: 6377, - EndPos: 6388, + EndLine: 349, + StartPos: 6377, + EndPos: 6388, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 349, - EndLine: 349, - StartPos: 6377, - EndPos: 6378, + EndLine: 349, + StartPos: 6377, + EndPos: 6378, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 349, - EndLine: 349, - StartPos: 6377, - EndPos: 6378, + EndLine: 349, + StartPos: 6377, + EndPos: 6378, }, Value: "a", }, @@ -16786,25 +16699,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.LogicalXor{ Position: &position.Position{ StartLine: 349, - EndLine: 349, - StartPos: 6382, - EndPos: 6388, + EndLine: 349, + StartPos: 6382, + EndPos: 6388, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 349, - EndLine: 349, - StartPos: 6382, - EndPos: 6382, + EndLine: 349, + StartPos: 6382, + EndPos: 6382, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 349, - EndLine: 349, - StartPos: 6388, - EndPos: 6388, + EndLine: 349, + StartPos: 6388, + EndPos: 6388, }, Value: "2", }, @@ -16815,31 +16728,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 350, - EndLine: 350, - StartPos: 6393, - EndPos: 6410, + EndLine: 350, + StartPos: 6393, + EndPos: 6410, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 350, - EndLine: 350, - StartPos: 6400, - EndPos: 6409, + EndLine: 350, + StartPos: 6400, + EndPos: 6409, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 350, - EndLine: 350, - StartPos: 6400, - EndPos: 6401, + EndLine: 350, + StartPos: 6400, + EndPos: 6401, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 350, - EndLine: 350, - StartPos: 6400, - EndPos: 6401, + EndLine: 350, + StartPos: 6400, + EndPos: 6401, }, Value: "a", }, @@ -16847,25 +16760,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.Minus{ Position: &position.Position{ StartLine: 350, - EndLine: 350, - StartPos: 6405, - EndPos: 6409, + EndLine: 350, + StartPos: 6405, + EndPos: 6409, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 350, - EndLine: 350, - StartPos: 6405, - EndPos: 6405, + EndLine: 350, + StartPos: 6405, + EndPos: 6405, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 350, - EndLine: 350, - StartPos: 6409, - EndPos: 6409, + EndLine: 350, + StartPos: 6409, + EndPos: 6409, }, Value: "2", }, @@ -16876,31 +16789,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 351, - EndLine: 351, - StartPos: 6414, - EndPos: 6431, + EndLine: 351, + StartPos: 6414, + EndPos: 6431, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 351, - EndLine: 351, - StartPos: 6421, - EndPos: 6430, + EndLine: 351, + StartPos: 6421, + EndPos: 6430, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 351, - EndLine: 351, - StartPos: 6421, - EndPos: 6422, + EndLine: 351, + StartPos: 6421, + EndPos: 6422, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 351, - EndLine: 351, - StartPos: 6421, - EndPos: 6422, + EndLine: 351, + StartPos: 6421, + EndPos: 6422, }, Value: "a", }, @@ -16908,25 +16821,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.Mod{ Position: &position.Position{ StartLine: 351, - EndLine: 351, - StartPos: 6426, - EndPos: 6430, + EndLine: 351, + StartPos: 6426, + EndPos: 6430, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 351, - EndLine: 351, - StartPos: 6426, - EndPos: 6426, + EndLine: 351, + StartPos: 6426, + EndPos: 6426, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 351, - EndLine: 351, - StartPos: 6430, - EndPos: 6430, + EndLine: 351, + StartPos: 6430, + EndPos: 6430, }, Value: "2", }, @@ -16937,31 +16850,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 352, - EndLine: 352, - StartPos: 6435, - EndPos: 6452, + EndLine: 352, + StartPos: 6435, + EndPos: 6452, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 352, - EndLine: 352, - StartPos: 6442, - EndPos: 6451, + EndLine: 352, + StartPos: 6442, + EndPos: 6451, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 352, - EndLine: 352, - StartPos: 6442, - EndPos: 6443, + EndLine: 352, + StartPos: 6442, + EndPos: 6443, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 352, - EndLine: 352, - StartPos: 6442, - EndPos: 6443, + EndLine: 352, + StartPos: 6442, + EndPos: 6443, }, Value: "a", }, @@ -16969,25 +16882,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.Mul{ Position: &position.Position{ StartLine: 352, - EndLine: 352, - StartPos: 6447, - EndPos: 6451, + EndLine: 352, + StartPos: 6447, + EndPos: 6451, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 352, - EndLine: 352, - StartPos: 6447, - EndPos: 6447, + EndLine: 352, + StartPos: 6447, + EndPos: 6447, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 352, - EndLine: 352, - StartPos: 6451, - EndPos: 6451, + EndLine: 352, + StartPos: 6451, + EndPos: 6451, }, Value: "2", }, @@ -16998,31 +16911,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 353, - EndLine: 353, - StartPos: 6456, - EndPos: 6474, + EndLine: 353, + StartPos: 6456, + EndPos: 6474, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 353, - EndLine: 353, - StartPos: 6463, - EndPos: 6473, + EndLine: 353, + StartPos: 6463, + EndPos: 6473, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 353, - EndLine: 353, - StartPos: 6463, - EndPos: 6464, + EndLine: 353, + StartPos: 6463, + EndPos: 6464, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 353, - EndLine: 353, - StartPos: 6463, - EndPos: 6464, + EndLine: 353, + StartPos: 6463, + EndPos: 6464, }, Value: "a", }, @@ -17030,25 +16943,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.NotEqual{ Position: &position.Position{ StartLine: 353, - EndLine: 353, - StartPos: 6468, - EndPos: 6473, + EndLine: 353, + StartPos: 6468, + EndPos: 6473, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 353, - EndLine: 353, - StartPos: 6468, - EndPos: 6468, + EndLine: 353, + StartPos: 6468, + EndPos: 6468, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 353, - EndLine: 353, - StartPos: 6473, - EndPos: 6473, + EndLine: 353, + StartPos: 6473, + EndPos: 6473, }, Value: "2", }, @@ -17059,31 +16972,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 354, - EndLine: 354, - StartPos: 6478, - EndPos: 6497, + EndLine: 354, + StartPos: 6478, + EndPos: 6497, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 354, - EndLine: 354, - StartPos: 6485, - EndPos: 6496, + EndLine: 354, + StartPos: 6485, + EndPos: 6496, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 354, - EndLine: 354, - StartPos: 6485, - EndPos: 6486, + EndLine: 354, + StartPos: 6485, + EndPos: 6486, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 354, - EndLine: 354, - StartPos: 6485, - EndPos: 6486, + EndLine: 354, + StartPos: 6485, + EndPos: 6486, }, Value: "a", }, @@ -17091,25 +17004,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.NotIdentical{ Position: &position.Position{ StartLine: 354, - EndLine: 354, - StartPos: 6490, - EndPos: 6496, + EndLine: 354, + StartPos: 6490, + EndPos: 6496, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 354, - EndLine: 354, - StartPos: 6490, - EndPos: 6490, + EndLine: 354, + StartPos: 6490, + EndPos: 6490, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 354, - EndLine: 354, - StartPos: 6496, - EndPos: 6496, + EndLine: 354, + StartPos: 6496, + EndPos: 6496, }, Value: "2", }, @@ -17120,31 +17033,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 355, - EndLine: 355, - StartPos: 6501, - EndPos: 6518, + EndLine: 355, + StartPos: 6501, + EndPos: 6518, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 355, - EndLine: 355, - StartPos: 6508, - EndPos: 6517, + EndLine: 355, + StartPos: 6508, + EndPos: 6517, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 355, - EndLine: 355, - StartPos: 6508, - EndPos: 6509, + EndLine: 355, + StartPos: 6508, + EndPos: 6509, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 355, - EndLine: 355, - StartPos: 6508, - EndPos: 6509, + EndLine: 355, + StartPos: 6508, + EndPos: 6509, }, Value: "a", }, @@ -17152,25 +17065,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.Plus{ Position: &position.Position{ StartLine: 355, - EndLine: 355, - StartPos: 6513, - EndPos: 6517, + EndLine: 355, + StartPos: 6513, + EndPos: 6517, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 355, - EndLine: 355, - StartPos: 6513, - EndPos: 6513, + EndLine: 355, + StartPos: 6513, + EndPos: 6513, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 355, - EndLine: 355, - StartPos: 6517, - EndPos: 6517, + EndLine: 355, + StartPos: 6517, + EndPos: 6517, }, Value: "2", }, @@ -17181,31 +17094,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 356, - EndLine: 356, - StartPos: 6522, - EndPos: 6540, + EndLine: 356, + StartPos: 6522, + EndPos: 6540, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 356, - EndLine: 356, - StartPos: 6529, - EndPos: 6539, + EndLine: 356, + StartPos: 6529, + EndPos: 6539, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 356, - EndLine: 356, - StartPos: 6529, - EndPos: 6530, + EndLine: 356, + StartPos: 6529, + EndPos: 6530, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 356, - EndLine: 356, - StartPos: 6529, - EndPos: 6530, + EndLine: 356, + StartPos: 6529, + EndPos: 6530, }, Value: "a", }, @@ -17213,25 +17126,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.Pow{ Position: &position.Position{ StartLine: 356, - EndLine: 356, - StartPos: 6534, - EndPos: 6539, + EndLine: 356, + StartPos: 6534, + EndPos: 6539, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 356, - EndLine: 356, - StartPos: 6534, - EndPos: 6534, + EndLine: 356, + StartPos: 6534, + EndPos: 6534, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 356, - EndLine: 356, - StartPos: 6539, - EndPos: 6539, + EndLine: 356, + StartPos: 6539, + EndPos: 6539, }, Value: "2", }, @@ -17242,31 +17155,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 357, - EndLine: 357, - StartPos: 6544, - EndPos: 6562, + EndLine: 357, + StartPos: 6544, + EndPos: 6562, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 357, - EndLine: 357, - StartPos: 6551, - EndPos: 6561, + EndLine: 357, + StartPos: 6551, + EndPos: 6561, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 357, - EndLine: 357, - StartPos: 6551, - EndPos: 6552, + EndLine: 357, + StartPos: 6551, + EndPos: 6552, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 357, - EndLine: 357, - StartPos: 6551, - EndPos: 6552, + EndLine: 357, + StartPos: 6551, + EndPos: 6552, }, Value: "a", }, @@ -17274,25 +17187,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.ShiftLeft{ Position: &position.Position{ StartLine: 357, - EndLine: 357, - StartPos: 6556, - EndPos: 6561, + EndLine: 357, + StartPos: 6556, + EndPos: 6561, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 357, - EndLine: 357, - StartPos: 6556, - EndPos: 6556, + EndLine: 357, + StartPos: 6556, + EndPos: 6556, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 357, - EndLine: 357, - StartPos: 6561, - EndPos: 6561, + EndLine: 357, + StartPos: 6561, + EndPos: 6561, }, Value: "2", }, @@ -17303,31 +17216,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 358, - EndLine: 358, - StartPos: 6566, - EndPos: 6584, + EndLine: 358, + StartPos: 6566, + EndPos: 6584, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 358, - EndLine: 358, - StartPos: 6573, - EndPos: 6583, + EndLine: 358, + StartPos: 6573, + EndPos: 6583, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 358, - EndLine: 358, - StartPos: 6573, - EndPos: 6574, + EndLine: 358, + StartPos: 6573, + EndPos: 6574, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 358, - EndLine: 358, - StartPos: 6573, - EndPos: 6574, + EndLine: 358, + StartPos: 6573, + EndPos: 6574, }, Value: "a", }, @@ -17335,25 +17248,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.ShiftRight{ Position: &position.Position{ StartLine: 358, - EndLine: 358, - StartPos: 6578, - EndPos: 6583, + EndLine: 358, + StartPos: 6578, + EndPos: 6583, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 358, - EndLine: 358, - StartPos: 6578, - EndPos: 6578, + EndLine: 358, + StartPos: 6578, + EndPos: 6578, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 358, - EndLine: 358, - StartPos: 6583, - EndPos: 6583, + EndLine: 358, + StartPos: 6583, + EndPos: 6583, }, Value: "2", }, @@ -17364,31 +17277,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 359, - EndLine: 359, - StartPos: 6588, - EndPos: 6606, + EndLine: 359, + StartPos: 6588, + EndPos: 6606, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 359, - EndLine: 359, - StartPos: 6595, - EndPos: 6605, + EndLine: 359, + StartPos: 6595, + EndPos: 6605, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 359, - EndLine: 359, - StartPos: 6595, - EndPos: 6596, + EndLine: 359, + StartPos: 6595, + EndPos: 6596, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 359, - EndLine: 359, - StartPos: 6595, - EndPos: 6596, + EndLine: 359, + StartPos: 6595, + EndPos: 6596, }, Value: "a", }, @@ -17396,25 +17309,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.SmallerOrEqual{ Position: &position.Position{ StartLine: 359, - EndLine: 359, - StartPos: 6600, - EndPos: 6605, + EndLine: 359, + StartPos: 6600, + EndPos: 6605, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 359, - EndLine: 359, - StartPos: 6600, - EndPos: 6600, + EndLine: 359, + StartPos: 6600, + EndPos: 6600, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 359, - EndLine: 359, - StartPos: 6605, - EndPos: 6605, + EndLine: 359, + StartPos: 6605, + EndPos: 6605, }, Value: "2", }, @@ -17425,31 +17338,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 360, - EndLine: 360, - StartPos: 6610, - EndPos: 6627, + EndLine: 360, + StartPos: 6610, + EndPos: 6627, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 360, - EndLine: 360, - StartPos: 6617, - EndPos: 6626, + EndLine: 360, + StartPos: 6617, + EndPos: 6626, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 360, - EndLine: 360, - StartPos: 6617, - EndPos: 6618, + EndLine: 360, + StartPos: 6617, + EndPos: 6618, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 360, - EndLine: 360, - StartPos: 6617, - EndPos: 6618, + EndLine: 360, + StartPos: 6617, + EndPos: 6618, }, Value: "a", }, @@ -17457,25 +17370,25 @@ func TestPhp5(t *testing.T) { Expr: &binary.Smaller{ Position: &position.Position{ StartLine: 360, - EndLine: 360, - StartPos: 6622, - EndPos: 6626, + EndLine: 360, + StartPos: 6622, + EndPos: 6626, }, Left: &scalar.Lnumber{ Position: &position.Position{ StartLine: 360, - EndLine: 360, - StartPos: 6622, - EndPos: 6622, + EndLine: 360, + StartPos: 6622, + EndPos: 6622, }, Value: "1", }, Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 360, - EndLine: 360, - StartPos: 6626, - EndPos: 6626, + EndLine: 360, + StartPos: 6626, + EndPos: 6626, }, Value: "2", }, @@ -17486,31 +17399,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 361, - EndLine: 361, - StartPos: 6631, - EndPos: 6651, + EndLine: 361, + StartPos: 6631, + EndPos: 6651, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 361, - EndLine: 361, - StartPos: 6638, - EndPos: 6650, + EndLine: 361, + StartPos: 6638, + EndPos: 6650, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 361, - EndLine: 361, - StartPos: 6638, - EndPos: 6639, + EndLine: 361, + StartPos: 6638, + EndPos: 6639, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 361, - EndLine: 361, - StartPos: 6638, - EndPos: 6639, + EndLine: 361, + StartPos: 6638, + EndPos: 6639, }, Value: "a", }, @@ -17518,24 +17431,24 @@ func TestPhp5(t *testing.T) { Expr: &expr.ClassConstFetch{ Position: &position.Position{ StartLine: 361, - EndLine: 361, - StartPos: 6643, - EndPos: 6650, + EndLine: 361, + StartPos: 6643, + EndPos: 6650, }, Class: &name.Name{ Position: &position.Position{ StartLine: 361, - EndLine: 361, - StartPos: 6643, - EndPos: 6645, + EndLine: 361, + StartPos: 6643, + EndPos: 6645, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 361, - EndLine: 361, - StartPos: 6643, - EndPos: 6645, + EndLine: 361, + StartPos: 6643, + EndPos: 6645, }, Value: "Foo", }, @@ -17544,9 +17457,9 @@ func TestPhp5(t *testing.T) { ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 361, - EndLine: 361, - StartPos: 6648, - EndPos: 6650, + EndLine: 361, + StartPos: 6648, + EndPos: 6650, }, Value: "bar", }, @@ -17557,31 +17470,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 362, - EndLine: 362, - StartPos: 6655, - EndPos: 6677, + EndLine: 362, + StartPos: 6655, + EndPos: 6677, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 362, - EndLine: 362, - StartPos: 6662, - EndPos: 6676, + EndLine: 362, + StartPos: 6662, + EndPos: 6676, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 362, - EndLine: 362, - StartPos: 6662, - EndPos: 6663, + EndLine: 362, + StartPos: 6662, + EndPos: 6663, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 362, - EndLine: 362, - StartPos: 6662, - EndPos: 6663, + EndLine: 362, + StartPos: 6662, + EndPos: 6663, }, Value: "a", }, @@ -17589,24 +17502,24 @@ func TestPhp5(t *testing.T) { Expr: &expr.ClassConstFetch{ Position: &position.Position{ StartLine: 362, - EndLine: 362, - StartPos: 6667, - EndPos: 6676, + EndLine: 362, + StartPos: 6667, + EndPos: 6676, }, Class: &name.Name{ Position: &position.Position{ StartLine: 362, - EndLine: 362, - StartPos: 6667, - EndPos: 6669, + EndLine: 362, + StartPos: 6667, + EndPos: 6669, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 362, - EndLine: 362, - StartPos: 6667, - EndPos: 6669, + EndLine: 362, + StartPos: 6667, + EndPos: 6669, }, Value: "Foo", }, @@ -17615,9 +17528,9 @@ func TestPhp5(t *testing.T) { ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 362, - EndLine: 362, - StartPos: 6672, - EndPos: 6676, + EndLine: 362, + StartPos: 6672, + EndPos: 6676, }, Value: "class", }, @@ -17628,31 +17541,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 363, - EndLine: 363, - StartPos: 6681, - EndPos: 6702, + EndLine: 363, + StartPos: 6681, + EndPos: 6702, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 363, - EndLine: 363, - StartPos: 6688, - EndPos: 6701, + EndLine: 363, + StartPos: 6688, + EndPos: 6701, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 363, - EndLine: 363, - StartPos: 6688, - EndPos: 6689, + EndLine: 363, + StartPos: 6688, + EndPos: 6689, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 363, - EndLine: 363, - StartPos: 6688, - EndPos: 6689, + EndLine: 363, + StartPos: 6688, + EndPos: 6689, }, Value: "a", }, @@ -17660,9 +17573,9 @@ func TestPhp5(t *testing.T) { Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 363, - EndLine: 363, - StartPos: 6693, - EndPos: 6701, + EndLine: 363, + StartPos: 6693, + EndPos: 6701, }, Value: "__CLASS__", }, @@ -17672,31 +17585,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 364, - EndLine: 364, - StartPos: 6706, - EndPos: 6721, + EndLine: 364, + StartPos: 6706, + EndPos: 6721, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 364, - EndLine: 364, - StartPos: 6713, - EndPos: 6720, + EndLine: 364, + StartPos: 6713, + EndPos: 6720, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 364, - EndLine: 364, - StartPos: 6713, - EndPos: 6714, + EndLine: 364, + StartPos: 6713, + EndPos: 6714, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 364, - EndLine: 364, - StartPos: 6713, - EndPos: 6714, + EndLine: 364, + StartPos: 6713, + EndPos: 6714, }, Value: "a", }, @@ -17704,24 +17617,24 @@ func TestPhp5(t *testing.T) { Expr: &expr.ConstFetch{ Position: &position.Position{ StartLine: 364, - EndLine: 364, - StartPos: 6718, - EndPos: 6720, + EndLine: 364, + StartPos: 6718, + EndPos: 6720, }, Constant: &name.Name{ Position: &position.Position{ StartLine: 364, - EndLine: 364, - StartPos: 6718, - EndPos: 6720, + EndLine: 364, + StartPos: 6718, + EndPos: 6720, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 364, - EndLine: 364, - StartPos: 6718, - EndPos: 6720, + EndLine: 364, + StartPos: 6718, + EndPos: 6720, }, Value: "Foo", }, @@ -17734,31 +17647,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 365, - EndLine: 365, - StartPos: 6725, - EndPos: 6750, + EndLine: 365, + StartPos: 6725, + EndPos: 6750, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 365, - EndLine: 365, - StartPos: 6732, - EndPos: 6749, + EndLine: 365, + StartPos: 6732, + EndPos: 6749, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 365, - EndLine: 365, - StartPos: 6732, - EndPos: 6733, + EndLine: 365, + StartPos: 6732, + EndPos: 6733, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 365, - EndLine: 365, - StartPos: 6732, - EndPos: 6733, + EndLine: 365, + StartPos: 6732, + EndPos: 6733, }, Value: "a", }, @@ -17766,24 +17679,24 @@ func TestPhp5(t *testing.T) { Expr: &expr.ConstFetch{ Position: &position.Position{ StartLine: 365, - EndLine: 365, - StartPos: 6737, - EndPos: 6749, + EndLine: 365, + StartPos: 6737, + EndPos: 6749, }, Constant: &name.Relative{ Position: &position.Position{ StartLine: 365, - EndLine: 365, - StartPos: 6737, - EndPos: 6749, + EndLine: 365, + StartPos: 6737, + EndPos: 6749, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 365, - EndLine: 365, - StartPos: 6747, - EndPos: 6749, + EndLine: 365, + StartPos: 6747, + EndPos: 6749, }, Value: "Foo", }, @@ -17796,31 +17709,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 366, - EndLine: 366, - StartPos: 6754, - EndPos: 6770, + EndLine: 366, + StartPos: 6754, + EndPos: 6770, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 366, - EndLine: 366, - StartPos: 6761, - EndPos: 6769, + EndLine: 366, + StartPos: 6761, + EndPos: 6769, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 366, - EndLine: 366, - StartPos: 6761, - EndPos: 6762, + EndLine: 366, + StartPos: 6761, + EndPos: 6762, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 366, - EndLine: 366, - StartPos: 6761, - EndPos: 6762, + EndLine: 366, + StartPos: 6761, + EndPos: 6762, }, Value: "a", }, @@ -17828,24 +17741,24 @@ func TestPhp5(t *testing.T) { Expr: &expr.ConstFetch{ Position: &position.Position{ StartLine: 366, - EndLine: 366, - StartPos: 6766, - EndPos: 6769, + EndLine: 366, + StartPos: 6766, + EndPos: 6769, }, Constant: &name.FullyQualified{ Position: &position.Position{ StartLine: 366, - EndLine: 366, - StartPos: 6766, - EndPos: 6769, + EndLine: 366, + StartPos: 6766, + EndPos: 6769, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 366, - EndLine: 366, - StartPos: 6767, - EndPos: 6769, + EndLine: 366, + StartPos: 6767, + EndPos: 6769, }, Value: "Foo", }, @@ -17858,31 +17771,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 367, - EndLine: 367, - StartPos: 6774, - EndPos: 6793, + EndLine: 367, + StartPos: 6774, + EndPos: 6793, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 367, - EndLine: 367, - StartPos: 6781, - EndPos: 6792, + EndLine: 367, + StartPos: 6781, + EndPos: 6792, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 367, - EndLine: 367, - StartPos: 6781, - EndPos: 6782, + EndLine: 367, + StartPos: 6781, + EndPos: 6782, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 367, - EndLine: 367, - StartPos: 6781, - EndPos: 6782, + EndLine: 367, + StartPos: 6781, + EndPos: 6782, }, Value: "a", }, @@ -17890,9 +17803,9 @@ func TestPhp5(t *testing.T) { Expr: &expr.Array{ Position: &position.Position{ StartLine: 367, - EndLine: 367, - StartPos: 6786, - EndPos: 6792, + EndLine: 367, + StartPos: 6786, + EndPos: 6792, }, }, }, @@ -17901,31 +17814,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 368, - EndLine: 368, - StartPos: 6797, - EndPos: 6825, + EndLine: 368, + StartPos: 6797, + EndPos: 6825, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 368, - EndLine: 368, - StartPos: 6804, - EndPos: 6824, + EndLine: 368, + StartPos: 6804, + EndPos: 6824, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 368, - EndLine: 368, - StartPos: 6804, - EndPos: 6805, + EndLine: 368, + StartPos: 6804, + EndPos: 6805, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 368, - EndLine: 368, - StartPos: 6804, - EndPos: 6805, + EndLine: 368, + StartPos: 6804, + EndPos: 6805, }, Value: "a", }, @@ -17933,33 +17846,33 @@ func TestPhp5(t *testing.T) { Expr: &expr.Array{ Position: &position.Position{ StartLine: 368, - EndLine: 368, - StartPos: 6809, - EndPos: 6824, + EndLine: 368, + StartPos: 6809, + EndPos: 6824, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 368, - EndLine: 368, - StartPos: 6815, - EndPos: 6820, + EndLine: 368, + StartPos: 6815, + EndPos: 6820, }, Key: &scalar.Lnumber{ Position: &position.Position{ StartLine: 368, - EndLine: 368, - StartPos: 6815, - EndPos: 6815, + EndLine: 368, + StartPos: 6815, + EndPos: 6815, }, Value: "1", }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 368, - EndLine: 368, - StartPos: 6820, - EndPos: 6820, + EndLine: 368, + StartPos: 6820, + EndPos: 6820, }, Value: "1", }, @@ -17967,16 +17880,16 @@ func TestPhp5(t *testing.T) { &expr.ArrayItem{ Position: &position.Position{ StartLine: 368, - EndLine: 368, - StartPos: 6823, - EndPos: 6823, + EndLine: 368, + StartPos: 6823, + EndPos: 6823, }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 368, - EndLine: 368, - StartPos: 6823, - EndPos: 6823, + EndLine: 368, + StartPos: 6823, + EndPos: 6823, }, Value: "2", }, @@ -17989,31 +17902,31 @@ func TestPhp5(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 369, - EndLine: 369, - StartPos: 6829, - EndPos: 6855, + EndLine: 369, + StartPos: 6829, + EndPos: 6855, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 369, - EndLine: 369, - StartPos: 6836, - EndPos: 6854, + EndLine: 369, + StartPos: 6836, + EndPos: 6854, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 369, - EndLine: 369, - StartPos: 6836, - EndPos: 6837, + EndLine: 369, + StartPos: 6836, + EndPos: 6837, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 369, - EndLine: 369, - StartPos: 6836, - EndPos: 6837, + EndLine: 369, + StartPos: 6836, + EndPos: 6837, }, Value: "a", }, @@ -18021,31 +17934,31 @@ func TestPhp5(t *testing.T) { Expr: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 369, - EndLine: 369, - StartPos: 6841, - EndPos: 6854, + EndLine: 369, + StartPos: 6841, + EndPos: 6854, }, Variable: &expr.ShortArray{ Position: &position.Position{ StartLine: 369, - EndLine: 369, - StartPos: 6841, - EndPos: 6851, + EndLine: 369, + StartPos: 6841, + EndPos: 6851, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 369, - EndLine: 369, - StartPos: 6842, - EndPos: 6842, + EndLine: 369, + StartPos: 6842, + EndPos: 6842, }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 369, - EndLine: 369, - StartPos: 6842, - EndPos: 6842, + EndLine: 369, + StartPos: 6842, + EndPos: 6842, }, Value: "1", }, @@ -18053,25 +17966,25 @@ func TestPhp5(t *testing.T) { &expr.ArrayItem{ Position: &position.Position{ StartLine: 369, - EndLine: 369, - StartPos: 6845, - EndPos: 6850, + EndLine: 369, + StartPos: 6845, + EndPos: 6850, }, Key: &scalar.Lnumber{ Position: &position.Position{ StartLine: 369, - EndLine: 369, - StartPos: 6845, - EndPos: 6845, + EndLine: 369, + StartPos: 6845, + EndPos: 6845, }, Value: "2", }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 369, - EndLine: 369, - StartPos: 6850, - EndPos: 6850, + EndLine: 369, + StartPos: 6850, + EndPos: 6850, }, Value: "2", }, @@ -18081,9 +17994,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 369, - EndLine: 369, - StartPos: 6853, - EndPos: 6853, + EndLine: 369, + StartPos: 6853, + EndPos: 6853, }, Value: "0", }, @@ -18094,23 +18007,23 @@ func TestPhp5(t *testing.T) { &stmt.If{ Position: &position.Position{ StartLine: 371, - EndLine: 371, - StartPos: 6860, - EndPos: 6874, + EndLine: 371, + StartPos: 6860, + EndPos: 6874, }, Cond: &expr.Yield{ Position: &position.Position{ StartLine: 371, - EndLine: 371, - StartPos: 6864, - EndPos: 6870, + EndLine: 371, + StartPos: 6864, + EndPos: 6870, }, Value: &scalar.Lnumber{ Position: &position.Position{ StartLine: 371, - EndLine: 371, - StartPos: 6870, - EndPos: 6870, + EndLine: 371, + StartPos: 6870, + EndPos: 6870, }, Value: "1", }, @@ -18118,42 +18031,41 @@ func TestPhp5(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 371, - EndLine: 371, - StartPos: 6873, - EndPos: 6874, - }, - Stmts: []node.Node{ + EndLine: 371, + StartPos: 6873, + EndPos: 6874, }, + Stmts: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 372, - EndLine: 372, - StartPos: 6878, - EndPos: 6888, + EndLine: 372, + StartPos: 6878, + EndPos: 6888, }, Expr: &expr.StaticPropertyFetch{ Position: &position.Position{ StartLine: 372, - EndLine: 372, - StartPos: 6878, - EndPos: 6887, + EndLine: 372, + StartPos: 6878, + EndPos: 6887, }, Class: &name.Name{ Position: &position.Position{ StartLine: 372, - EndLine: 372, - StartPos: 6878, - EndPos: 6880, + EndLine: 372, + StartPos: 6878, + EndPos: 6880, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 372, - EndLine: 372, - StartPos: 6878, - EndPos: 6880, + EndLine: 372, + StartPos: 6878, + EndPos: 6880, }, Value: "Foo", }, @@ -18162,23 +18074,23 @@ func TestPhp5(t *testing.T) { Property: &expr.Variable{ Position: &position.Position{ StartLine: 372, - EndLine: 372, - StartPos: 6883, - EndPos: 6887, + EndLine: 372, + StartPos: 6883, + EndPos: 6887, }, VarName: &expr.Variable{ Position: &position.Position{ StartLine: 372, - EndLine: 372, - StartPos: 6884, - EndPos: 6887, + EndLine: 372, + StartPos: 6884, + EndPos: 6887, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 372, - EndLine: 372, - StartPos: 6884, - EndPos: 6887, + EndLine: 372, + StartPos: 6884, + EndPos: 6887, }, Value: "bar", }, @@ -18189,30 +18101,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 374, - EndLine: 374, - StartPos: 6893, - EndPos: 6899, + EndLine: 374, + StartPos: 6893, + EndPos: 6899, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 374, - EndLine: 374, - StartPos: 6893, - EndPos: 6898, + EndLine: 374, + StartPos: 6893, + EndPos: 6898, }, Function: &expr.Variable{ Position: &position.Position{ StartLine: 374, - EndLine: 374, - StartPos: 6893, - EndPos: 6896, + EndLine: 374, + StartPos: 6893, + EndPos: 6896, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 374, - EndLine: 374, - StartPos: 6893, - EndPos: 6896, + EndLine: 374, + StartPos: 6893, + EndPos: 6896, }, Value: "foo", }, @@ -18220,9 +18132,9 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 374, - EndLine: 374, - StartPos: 6897, - EndPos: 6898, + EndLine: 374, + StartPos: 6897, + EndPos: 6898, }, }, }, @@ -18230,44 +18142,44 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 375, - EndLine: 375, - StartPos: 6903, - EndPos: 6915, + EndLine: 375, + StartPos: 6903, + EndPos: 6915, }, Expr: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 375, - EndLine: 375, - StartPos: 6903, - EndPos: 6914, + EndLine: 375, + StartPos: 6903, + EndPos: 6914, }, Variable: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 375, - EndLine: 375, - StartPos: 6903, - EndPos: 6911, + EndLine: 375, + StartPos: 6903, + EndPos: 6911, }, Variable: &expr.FunctionCall{ Position: &position.Position{ StartLine: 375, - EndLine: 375, - StartPos: 6903, - EndPos: 6908, + EndLine: 375, + StartPos: 6903, + EndPos: 6908, }, Function: &expr.Variable{ Position: &position.Position{ StartLine: 375, - EndLine: 375, - StartPos: 6903, - EndPos: 6906, + EndLine: 375, + StartPos: 6903, + EndPos: 6906, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 375, - EndLine: 375, - StartPos: 6903, - EndPos: 6906, + EndLine: 375, + StartPos: 6903, + EndPos: 6906, }, Value: "foo", }, @@ -18275,18 +18187,18 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 375, - EndLine: 375, - StartPos: 6907, - EndPos: 6908, + EndLine: 375, + StartPos: 6907, + EndPos: 6908, }, }, }, Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 375, - EndLine: 375, - StartPos: 6910, - EndPos: 6910, + EndLine: 375, + StartPos: 6910, + EndPos: 6910, }, Value: "0", }, @@ -18294,9 +18206,9 @@ func TestPhp5(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 375, - EndLine: 375, - StartPos: 6913, - EndPos: 6913, + EndLine: 375, + StartPos: 6913, + EndPos: 6913, }, Value: "0", }, @@ -18305,30 +18217,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 376, - EndLine: 376, - StartPos: 6919, - EndPos: 6925, + EndLine: 376, + StartPos: 6919, + EndPos: 6925, }, Expr: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 376, - EndLine: 376, - StartPos: 6919, - EndPos: 6924, + EndLine: 376, + StartPos: 6919, + EndPos: 6924, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 376, - EndLine: 376, - StartPos: 6919, - EndPos: 6920, + EndLine: 376, + StartPos: 6919, + EndPos: 6920, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 376, - EndLine: 376, - StartPos: 6919, - EndPos: 6920, + EndLine: 376, + StartPos: 6919, + EndPos: 6920, }, Value: "a", }, @@ -18336,16 +18248,16 @@ func TestPhp5(t *testing.T) { Dim: &expr.Variable{ Position: &position.Position{ StartLine: 376, - EndLine: 376, - StartPos: 6922, - EndPos: 6923, + EndLine: 376, + StartPos: 6922, + EndPos: 6923, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 376, - EndLine: 376, - StartPos: 6922, - EndPos: 6923, + EndLine: 376, + StartPos: 6922, + EndPos: 6923, }, Value: "b", }, @@ -18355,30 +18267,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 377, - EndLine: 377, - StartPos: 6929, - EndPos: 6934, + EndLine: 377, + StartPos: 6929, + EndPos: 6934, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 377, - EndLine: 377, - StartPos: 6929, - EndPos: 6933, + EndLine: 377, + StartPos: 6929, + EndPos: 6933, }, VarName: &expr.Variable{ Position: &position.Position{ StartLine: 377, - EndLine: 377, - StartPos: 6931, - EndPos: 6932, + EndLine: 377, + StartPos: 6931, + EndPos: 6932, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 377, - EndLine: 377, - StartPos: 6931, - EndPos: 6932, + EndLine: 377, + StartPos: 6931, + EndPos: 6932, }, Value: "a", }, @@ -18388,30 +18300,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 378, - EndLine: 378, - StartPos: 6938, - EndPos: 6952, + EndLine: 378, + StartPos: 6938, + EndPos: 6952, }, Expr: &expr.StaticCall{ Position: &position.Position{ StartLine: 378, - EndLine: 378, - StartPos: 6938, - EndPos: 6951, + EndLine: 378, + StartPos: 6938, + EndPos: 6951, }, Class: &expr.Variable{ Position: &position.Position{ StartLine: 378, - EndLine: 378, - StartPos: 6938, - EndPos: 6941, + EndLine: 378, + StartPos: 6938, + EndPos: 6941, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 378, - EndLine: 378, - StartPos: 6938, - EndPos: 6941, + EndLine: 378, + StartPos: 6938, + EndPos: 6941, }, Value: "foo", }, @@ -18419,16 +18331,16 @@ func TestPhp5(t *testing.T) { Call: &expr.Variable{ Position: &position.Position{ StartLine: 378, - EndLine: 378, - StartPos: 6944, - EndPos: 6949, + EndLine: 378, + StartPos: 6944, + EndPos: 6949, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 378, - EndLine: 378, - StartPos: 6945, - EndPos: 6948, + EndLine: 378, + StartPos: 6945, + EndPos: 6948, }, Value: "bar", }, @@ -18436,9 +18348,9 @@ func TestPhp5(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 378, - EndLine: 378, - StartPos: 6950, - EndPos: 6951, + EndLine: 378, + StartPos: 6950, + EndPos: 6951, }, }, }, @@ -18446,30 +18358,30 @@ func TestPhp5(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 379, - EndLine: 379, - StartPos: 6956, - EndPos: 6965, + EndLine: 379, + StartPos: 6956, + EndPos: 6965, }, Expr: &expr.ClassConstFetch{ Position: &position.Position{ StartLine: 379, - EndLine: 379, - StartPos: 6956, - EndPos: 6964, + EndLine: 379, + StartPos: 6956, + EndPos: 6964, }, Class: &expr.Variable{ Position: &position.Position{ StartLine: 379, - EndLine: 379, - StartPos: 6956, - EndPos: 6959, + EndLine: 379, + StartPos: 6956, + EndPos: 6959, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 379, - EndLine: 379, - StartPos: 6956, - EndPos: 6959, + EndLine: 379, + StartPos: 6956, + EndPos: 6959, }, Value: "foo", }, @@ -18477,9 +18389,9 @@ func TestPhp5(t *testing.T) { ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 379, - EndLine: 379, - StartPos: 6962, - EndPos: 6964, + EndLine: 379, + StartPos: 6962, + EndPos: 6964, }, Value: "bar", }, diff --git a/php7/php7_test.go b/php7/php7_test.go index a5ab734..9dc3546 100644 --- a/php7/php7_test.go +++ b/php7/php7_test.go @@ -384,39 +384,39 @@ func TestPhp7(t *testing.T) { expected := &node.Root{ Position: &position.Position{ StartLine: 2, - EndLine: 347, - StartPos: 6, - EndPos: 6318, + EndLine: 347, + StartPos: 6, + EndPos: 6318, }, Stmts: []node.Node{ &stmt.Expression{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 6, - EndPos: 20, + EndLine: 2, + StartPos: 6, + EndPos: 20, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 6, - EndPos: 19, + EndLine: 2, + StartPos: 6, + EndPos: 19, }, Function: &name.Name{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 6, - EndPos: 8, + EndLine: 2, + StartPos: 6, + EndPos: 8, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 6, - EndPos: 8, + EndLine: 2, + StartPos: 6, + EndPos: 8, }, Value: "foo", }, @@ -425,33 +425,33 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 9, - EndPos: 19, + EndLine: 2, + StartPos: 9, + EndPos: 19, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 10, - EndPos: 11, + EndLine: 2, + StartPos: 10, + EndPos: 11, }, - Variadic: false, + Variadic: false, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 10, - EndPos: 11, + EndLine: 2, + StartPos: 10, + EndPos: 11, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 10, - EndPos: 11, + EndLine: 2, + StartPos: 10, + EndPos: 11, }, Value: "a", }, @@ -460,25 +460,25 @@ func TestPhp7(t *testing.T) { &node.Argument{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 14, - EndPos: 18, + EndLine: 2, + StartPos: 14, + EndPos: 18, }, IsReference: false, - Variadic: true, + Variadic: true, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 17, - EndPos: 18, + EndLine: 2, + StartPos: 17, + EndPos: 18, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 2, - EndLine: 2, - StartPos: 17, - EndPos: 18, + EndLine: 2, + StartPos: 17, + EndPos: 18, }, Value: "b", }, @@ -491,30 +491,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 24, - EndPos: 39, + EndLine: 3, + StartPos: 24, + EndPos: 39, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 24, - EndPos: 38, + EndLine: 3, + StartPos: 24, + EndPos: 38, }, Function: &expr.Variable{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 24, - EndPos: 27, + EndLine: 3, + StartPos: 24, + EndPos: 27, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 24, - EndPos: 27, + EndLine: 3, + StartPos: 24, + EndPos: 27, }, Value: "foo", }, @@ -522,33 +522,33 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 28, - EndPos: 38, + EndLine: 3, + StartPos: 28, + EndPos: 38, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 29, - EndPos: 30, + EndLine: 3, + StartPos: 29, + EndPos: 30, }, - Variadic: false, + Variadic: false, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 29, - EndPos: 30, + EndLine: 3, + StartPos: 29, + EndPos: 30, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 29, - EndPos: 30, + EndLine: 3, + StartPos: 29, + EndPos: 30, }, Value: "a", }, @@ -557,25 +557,25 @@ func TestPhp7(t *testing.T) { &node.Argument{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 33, - EndPos: 37, + EndLine: 3, + StartPos: 33, + EndPos: 37, }, - Variadic: true, + Variadic: true, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 36, - EndPos: 37, + EndLine: 3, + StartPos: 36, + EndPos: 37, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 3, - EndLine: 3, - StartPos: 36, - EndPos: 37, + EndLine: 3, + StartPos: 36, + EndPos: 37, }, Value: "b", }, @@ -588,30 +588,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 43, - EndPos: 63, + EndLine: 4, + StartPos: 43, + EndPos: 63, }, Expr: &expr.MethodCall{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 43, - EndPos: 62, + EndLine: 4, + StartPos: 43, + EndPos: 62, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 43, - EndPos: 46, + EndLine: 4, + StartPos: 43, + EndPos: 46, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 43, - EndPos: 46, + EndLine: 4, + StartPos: 43, + EndPos: 46, }, Value: "foo", }, @@ -619,42 +619,42 @@ func TestPhp7(t *testing.T) { Method: &node.Identifier{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 49, - EndPos: 51, + EndLine: 4, + StartPos: 49, + EndPos: 51, }, Value: "bar", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 52, - EndPos: 62, + EndLine: 4, + StartPos: 52, + EndPos: 62, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 53, - EndPos: 54, + EndLine: 4, + StartPos: 53, + EndPos: 54, }, IsReference: false, - Variadic: false, + Variadic: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 53, - EndPos: 54, + EndLine: 4, + StartPos: 53, + EndPos: 54, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 53, - EndPos: 54, + EndLine: 4, + StartPos: 53, + EndPos: 54, }, Value: "a", }, @@ -663,25 +663,25 @@ func TestPhp7(t *testing.T) { &node.Argument{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 57, - EndPos: 61, + EndLine: 4, + StartPos: 57, + EndPos: 61, }, - Variadic: true, + Variadic: true, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 60, - EndPos: 61, + EndLine: 4, + StartPos: 60, + EndPos: 61, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 4, - EndLine: 4, - StartPos: 60, - EndPos: 61, + EndLine: 4, + StartPos: 60, + EndPos: 61, }, Value: "b", }, @@ -694,31 +694,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 67, - EndPos: 86, + EndLine: 5, + StartPos: 67, + EndPos: 86, }, Expr: &expr.StaticCall{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 67, - EndPos: 85, + EndLine: 5, + StartPos: 67, + EndPos: 85, }, Class: &name.Name{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 67, - EndPos: 69, + EndLine: 5, + StartPos: 67, + EndPos: 69, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 67, - EndPos: 69, + EndLine: 5, + StartPos: 67, + EndPos: 69, }, Value: "foo", }, @@ -727,42 +727,42 @@ func TestPhp7(t *testing.T) { Call: &node.Identifier{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 72, - EndPos: 74, + EndLine: 5, + StartPos: 72, + EndPos: 74, }, Value: "bar", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 75, - EndPos: 85, + EndLine: 5, + StartPos: 75, + EndPos: 85, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 76, - EndPos: 77, + EndLine: 5, + StartPos: 76, + EndPos: 77, }, - Variadic: false, + Variadic: false, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 76, - EndPos: 77, + EndLine: 5, + StartPos: 76, + EndPos: 77, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 76, - EndPos: 77, + EndLine: 5, + StartPos: 76, + EndPos: 77, }, Value: "a", }, @@ -771,25 +771,25 @@ func TestPhp7(t *testing.T) { &node.Argument{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 80, - EndPos: 84, + EndLine: 5, + StartPos: 80, + EndPos: 84, }, - Variadic: true, + Variadic: true, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 83, - EndPos: 84, + EndLine: 5, + StartPos: 83, + EndPos: 84, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 5, - EndLine: 5, - StartPos: 83, - EndPos: 84, + EndLine: 5, + StartPos: 83, + EndPos: 84, }, Value: "b", }, @@ -802,30 +802,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 90, - EndPos: 110, + EndLine: 6, + StartPos: 90, + EndPos: 110, }, Expr: &expr.StaticCall{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 90, - EndPos: 109, + EndLine: 6, + StartPos: 90, + EndPos: 109, }, Class: &expr.Variable{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 90, - EndPos: 93, + EndLine: 6, + StartPos: 90, + EndPos: 93, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 90, - EndPos: 93, + EndLine: 6, + StartPos: 90, + EndPos: 93, }, Value: "foo", }, @@ -833,42 +833,42 @@ func TestPhp7(t *testing.T) { Call: &node.Identifier{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 96, - EndPos: 98, + EndLine: 6, + StartPos: 96, + EndPos: 98, }, Value: "bar", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 99, - EndPos: 109, + EndLine: 6, + StartPos: 99, + EndPos: 109, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 100, - EndPos: 101, + EndLine: 6, + StartPos: 100, + EndPos: 101, }, - Variadic: false, + Variadic: false, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 100, - EndPos: 101, + EndLine: 6, + StartPos: 100, + EndPos: 101, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 100, - EndPos: 101, + EndLine: 6, + StartPos: 100, + EndPos: 101, }, Value: "a", }, @@ -877,25 +877,25 @@ func TestPhp7(t *testing.T) { &node.Argument{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 104, - EndPos: 108, + EndLine: 6, + StartPos: 104, + EndPos: 108, }, - Variadic: true, + Variadic: true, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 107, - EndPos: 108, + EndLine: 6, + StartPos: 107, + EndPos: 108, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 6, - EndLine: 6, - StartPos: 107, - EndPos: 108, + EndLine: 6, + StartPos: 107, + EndPos: 108, }, Value: "b", }, @@ -908,31 +908,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 114, - EndPos: 132, + EndLine: 7, + StartPos: 114, + EndPos: 132, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 114, - EndPos: 131, + EndLine: 7, + StartPos: 114, + EndPos: 131, }, Class: &name.Name{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 118, - EndPos: 120, + EndLine: 7, + StartPos: 118, + EndPos: 120, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 118, - EndPos: 120, + EndLine: 7, + StartPos: 118, + EndPos: 120, }, Value: "foo", }, @@ -941,33 +941,33 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 121, - EndPos: 131, + EndLine: 7, + StartPos: 121, + EndPos: 131, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 122, - EndPos: 123, + EndLine: 7, + StartPos: 122, + EndPos: 123, }, - Variadic: false, + Variadic: false, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 122, - EndPos: 123, + EndLine: 7, + StartPos: 122, + EndPos: 123, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 122, - EndPos: 123, + EndLine: 7, + StartPos: 122, + EndPos: 123, }, Value: "a", }, @@ -976,25 +976,25 @@ func TestPhp7(t *testing.T) { &node.Argument{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 126, - EndPos: 130, + EndLine: 7, + StartPos: 126, + EndPos: 130, }, - Variadic: true, + Variadic: true, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 129, - EndPos: 130, + EndLine: 7, + StartPos: 129, + EndPos: 130, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 7, - EndLine: 7, - StartPos: 129, - EndPos: 130, + EndLine: 7, + StartPos: 129, + EndPos: 130, }, Value: "b", }, @@ -1007,55 +1007,55 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 161, - EndPos: 185, + EndLine: 9, + StartPos: 161, + EndPos: 185, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 161, - EndPos: 184, + EndLine: 9, + StartPos: 161, + EndPos: 184, }, Class: &stmt.Class{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 165, - EndPos: 184, + EndLine: 9, + StartPos: 165, + EndPos: 184, }, PhpDocComment: "/** anonymous class */", ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 171, - EndPos: 181, + EndLine: 9, + StartPos: 171, + EndPos: 181, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 172, - EndPos: 173, + EndLine: 9, + StartPos: 172, + EndPos: 173, }, - Variadic: false, + Variadic: false, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 172, - EndPos: 173, + EndLine: 9, + StartPos: 172, + EndPos: 173, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 172, - EndPos: 173, + EndLine: 9, + StartPos: 172, + EndPos: 173, }, Value: "a", }, @@ -1064,25 +1064,25 @@ func TestPhp7(t *testing.T) { &node.Argument{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 176, - EndPos: 180, + EndLine: 9, + StartPos: 176, + EndPos: 180, }, - Variadic: true, + Variadic: true, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 179, - EndPos: 180, + EndLine: 9, + StartPos: 179, + EndPos: 180, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 9, - EndLine: 9, - StartPos: 179, - EndPos: 180, + EndLine: 9, + StartPos: 179, + EndPos: 180, }, Value: "b", }, @@ -1090,65 +1090,63 @@ func TestPhp7(t *testing.T) { }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 189, - EndPos: 201, + EndLine: 10, + StartPos: 189, + EndPos: 201, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 189, - EndPos: 200, + EndLine: 10, + StartPos: 189, + EndPos: 200, }, Class: &stmt.Class{ Position: &position.Position{ StartLine: 10, - EndLine: 10, - StartPos: 193, - EndPos: 200, + EndLine: 10, + StartPos: 193, + EndPos: 200, }, PhpDocComment: "", - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 205, - EndPos: 213, + EndLine: 11, + StartPos: 205, + EndPos: 213, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 205, - EndPos: 212, + EndLine: 11, + StartPos: 205, + EndPos: 212, }, Class: &expr.Variable{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 209, - EndPos: 212, + EndLine: 11, + StartPos: 209, + EndPos: 212, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 11, - EndLine: 11, - StartPos: 209, - EndPos: 212, + EndLine: 11, + StartPos: 209, + EndPos: 212, }, Value: "foo", }, @@ -1158,37 +1156,37 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 217, - EndPos: 228, + EndLine: 12, + StartPos: 217, + EndPos: 228, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 217, - EndPos: 227, + EndLine: 12, + StartPos: 217, + EndPos: 227, }, Class: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 221, - EndPos: 227, + EndLine: 12, + StartPos: 221, + EndPos: 227, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 221, - EndPos: 224, + EndLine: 12, + StartPos: 221, + EndPos: 224, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 221, - EndPos: 224, + EndLine: 12, + StartPos: 221, + EndPos: 224, }, Value: "foo", }, @@ -1196,9 +1194,9 @@ func TestPhp7(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 12, - EndLine: 12, - StartPos: 226, - EndPos: 226, + EndLine: 12, + StartPos: 226, + EndPos: 226, }, Value: "1", }, @@ -1208,37 +1206,37 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 13, - EndLine: 13, - StartPos: 232, - EndPos: 246, + EndLine: 13, + StartPos: 232, + EndPos: 246, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 13, - EndLine: 13, - StartPos: 232, - EndPos: 245, + EndLine: 13, + StartPos: 232, + EndPos: 245, }, Class: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 13, - EndLine: 13, - StartPos: 236, - EndPos: 245, + EndLine: 13, + StartPos: 236, + EndPos: 245, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 13, - EndLine: 13, - StartPos: 236, - EndPos: 239, + EndLine: 13, + StartPos: 236, + EndPos: 239, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 13, - EndLine: 13, - StartPos: 236, - EndPos: 239, + EndLine: 13, + StartPos: 236, + EndPos: 239, }, Value: "foo", }, @@ -1246,16 +1244,16 @@ func TestPhp7(t *testing.T) { Dim: &expr.Variable{ Position: &position.Position{ StartLine: 13, - EndLine: 13, - StartPos: 241, - EndPos: 244, + EndLine: 13, + StartPos: 241, + EndPos: 244, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 13, - EndLine: 13, - StartPos: 241, - EndPos: 244, + EndLine: 13, + StartPos: 241, + EndPos: 244, }, Value: "bar", }, @@ -1266,37 +1264,37 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 14, - EndLine: 14, - StartPos: 250, - EndPos: 263, + EndLine: 14, + StartPos: 250, + EndPos: 263, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 14, - EndLine: 14, - StartPos: 250, - EndPos: 262, + EndLine: 14, + StartPos: 250, + EndPos: 262, }, Class: &expr.PropertyFetch{ Position: &position.Position{ StartLine: 14, - EndLine: 14, - StartPos: 254, - EndPos: 262, + EndLine: 14, + StartPos: 254, + EndPos: 262, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 14, - EndLine: 14, - StartPos: 254, - EndPos: 257, + EndLine: 14, + StartPos: 254, + EndPos: 257, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 14, - EndLine: 14, - StartPos: 254, - EndPos: 257, + EndLine: 14, + StartPos: 254, + EndPos: 257, }, Value: "foo", }, @@ -1304,9 +1302,9 @@ func TestPhp7(t *testing.T) { Property: &node.Identifier{ Position: &position.Position{ StartLine: 14, - EndLine: 14, - StartPos: 260, - EndPos: 262, + EndLine: 14, + StartPos: 260, + EndPos: 262, }, Value: "bar", }, @@ -1316,37 +1314,37 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 15, - EndLine: 15, - StartPos: 267, - EndPos: 281, + EndLine: 15, + StartPos: 267, + EndPos: 281, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 15, - EndLine: 15, - StartPos: 267, - EndPos: 280, + EndLine: 15, + StartPos: 267, + EndPos: 280, }, Class: &expr.StaticPropertyFetch{ Position: &position.Position{ StartLine: 15, - EndLine: 15, - StartPos: 271, - EndPos: 280, + EndLine: 15, + StartPos: 271, + EndPos: 280, }, Class: &expr.Variable{ Position: &position.Position{ StartLine: 15, - EndLine: 15, - StartPos: 271, - EndPos: 274, + EndLine: 15, + StartPos: 271, + EndPos: 274, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 15, - EndLine: 15, - StartPos: 271, - EndPos: 274, + EndLine: 15, + StartPos: 271, + EndPos: 274, }, Value: "foo", }, @@ -1354,16 +1352,16 @@ func TestPhp7(t *testing.T) { Property: &expr.Variable{ Position: &position.Position{ StartLine: 15, - EndLine: 15, - StartPos: 277, - EndPos: 280, + EndLine: 15, + StartPos: 277, + EndPos: 280, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 15, - EndLine: 15, - StartPos: 277, - EndPos: 280, + EndLine: 15, + StartPos: 277, + EndPos: 280, }, Value: "bar", }, @@ -1374,46 +1372,46 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 16, - EndLine: 16, - StartPos: 285, - EndPos: 301, + EndLine: 16, + StartPos: 285, + EndPos: 301, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 16, - EndLine: 16, - StartPos: 285, - EndPos: 300, + EndLine: 16, + StartPos: 285, + EndPos: 300, }, Class: &expr.StaticPropertyFetch{ Position: &position.Position{ StartLine: 16, - EndLine: 16, - StartPos: 289, - EndPos: 300, + EndLine: 16, + StartPos: 289, + EndPos: 300, }, Class: &node.Identifier{ Position: &position.Position{ StartLine: 16, - EndLine: 16, - StartPos: 289, - EndPos: 294, + EndLine: 16, + StartPos: 289, + EndPos: 294, }, Value: "static", }, Property: &expr.Variable{ Position: &position.Position{ StartLine: 16, - EndLine: 16, - StartPos: 297, - EndPos: 300, + EndLine: 16, + StartPos: 297, + EndPos: 300, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 16, - EndLine: 16, - StartPos: 297, - EndPos: 300, + EndLine: 16, + StartPos: 297, + EndPos: 300, }, Value: "bar", }, @@ -1424,18 +1422,18 @@ func TestPhp7(t *testing.T) { &stmt.Function{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 306, - EndPos: 350, + EndLine: 18, + StartPos: 306, + EndPos: 350, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", FunctionName: &node.Identifier{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 315, - EndPos: 317, + EndLine: 18, + StartPos: 315, + EndPos: 317, }, Value: "foo", }, @@ -1443,33 +1441,33 @@ func TestPhp7(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 319, - EndPos: 332, + EndLine: 18, + StartPos: 319, + EndPos: 332, }, - ByRef: false, + ByRef: false, Variadic: false, VariableType: &node.Nullable{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 319, - EndPos: 322, + EndLine: 18, + StartPos: 319, + EndPos: 322, }, Expr: &name.Name{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 320, - EndPos: 322, + EndLine: 18, + StartPos: 320, + EndPos: 322, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 320, - EndPos: 322, + EndLine: 18, + StartPos: 320, + EndPos: 322, }, Value: "bar", }, @@ -1479,16 +1477,16 @@ func TestPhp7(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 324, - EndPos: 327, + EndLine: 18, + StartPos: 324, + EndPos: 327, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 324, - EndPos: 327, + EndLine: 18, + StartPos: 324, + EndPos: 327, }, Value: "bar", }, @@ -1496,24 +1494,24 @@ func TestPhp7(t *testing.T) { DefaultValue: &expr.ConstFetch{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 329, - EndPos: 332, + EndLine: 18, + StartPos: 329, + EndPos: 332, }, Constant: &name.Name{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 329, - EndPos: 332, + EndLine: 18, + StartPos: 329, + EndPos: 332, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 329, - EndPos: 332, + EndLine: 18, + StartPos: 329, + EndPos: 332, }, Value: "null", }, @@ -1524,26 +1522,26 @@ func TestPhp7(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 335, - EndPos: 346, + EndLine: 18, + StartPos: 335, + EndPos: 346, }, - ByRef: true, + ByRef: true, Variadic: true, VariableType: &name.Name{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 335, - EndPos: 337, + EndLine: 18, + StartPos: 335, + EndPos: 337, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 335, - EndPos: 337, + EndLine: 18, + StartPos: 335, + EndPos: 337, }, Value: "baz", }, @@ -1552,39 +1550,38 @@ func TestPhp7(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 343, - EndPos: 346, + EndLine: 18, + StartPos: 343, + EndPos: 346, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 18, - EndLine: 18, - StartPos: 343, - EndPos: 346, + EndLine: 18, + StartPos: 343, + EndPos: 346, }, Value: "baz", }, }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Class{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 354, - EndPos: 417, + EndLine: 19, + StartPos: 354, + EndPos: 417, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 360, - EndPos: 362, + EndLine: 19, + StartPos: 360, + EndPos: 362, }, Value: "foo", }, @@ -1592,18 +1589,18 @@ func TestPhp7(t *testing.T) { &stmt.ClassMethod{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 365, - EndPos: 416, + EndLine: 19, + StartPos: 365, + EndPos: 416, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", MethodName: &node.Identifier{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 381, - EndPos: 383, + EndLine: 19, + StartPos: 381, + EndPos: 383, }, Value: "foo", }, @@ -1611,9 +1608,9 @@ func TestPhp7(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 365, - EndPos: 370, + EndLine: 19, + StartPos: 365, + EndPos: 370, }, Value: "public", }, @@ -1622,33 +1619,33 @@ func TestPhp7(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 385, - EndPos: 398, + EndLine: 19, + StartPos: 385, + EndPos: 398, }, - ByRef: false, + ByRef: false, Variadic: false, VariableType: &node.Nullable{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 385, - EndPos: 388, + EndLine: 19, + StartPos: 385, + EndPos: 388, }, Expr: &name.Name{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 386, - EndPos: 388, + EndLine: 19, + StartPos: 386, + EndPos: 388, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 386, - EndPos: 388, + EndLine: 19, + StartPos: 386, + EndPos: 388, }, Value: "bar", }, @@ -1658,16 +1655,16 @@ func TestPhp7(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 390, - EndPos: 393, + EndLine: 19, + StartPos: 390, + EndPos: 393, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 390, - EndPos: 393, + EndLine: 19, + StartPos: 390, + EndPos: 393, }, Value: "bar", }, @@ -1675,24 +1672,24 @@ func TestPhp7(t *testing.T) { DefaultValue: &expr.ConstFetch{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 395, - EndPos: 398, + EndLine: 19, + StartPos: 395, + EndPos: 398, }, Constant: &name.Name{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 395, - EndPos: 398, + EndLine: 19, + StartPos: 395, + EndPos: 398, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 395, - EndPos: 398, + EndLine: 19, + StartPos: 395, + EndPos: 398, }, Value: "null", }, @@ -1703,26 +1700,26 @@ func TestPhp7(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 401, - EndPos: 412, + EndLine: 19, + StartPos: 401, + EndPos: 412, }, - ByRef: true, + ByRef: true, Variadic: true, VariableType: &name.Name{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 401, - EndPos: 403, + EndLine: 19, + StartPos: 401, + EndPos: 403, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 401, - EndPos: 403, + EndLine: 19, + StartPos: 401, + EndPos: 403, }, Value: "baz", }, @@ -1731,16 +1728,16 @@ func TestPhp7(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 409, - EndPos: 412, + EndLine: 19, + StartPos: 409, + EndPos: 412, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 409, - EndPos: 412, + EndLine: 19, + StartPos: 409, + EndPos: 412, }, Value: "baz", }, @@ -1750,12 +1747,11 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 19, - EndLine: 19, - StartPos: 415, - EndPos: 416, - }, - Stmts: []node.Node{ + EndLine: 19, + StartPos: 415, + EndPos: 416, }, + Stmts: []node.Node{}, }, }, }, @@ -1763,51 +1759,51 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 421, - EndPos: 462, + EndLine: 20, + StartPos: 421, + EndPos: 462, }, Expr: &expr.Closure{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 421, - EndPos: 461, + EndLine: 20, + StartPos: 421, + EndPos: 461, }, - ReturnsRef: false, - Static: false, + ReturnsRef: false, + Static: false, PhpDocComment: "", Params: []node.Node{ &node.Parameter{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 430, - EndPos: 443, + EndLine: 20, + StartPos: 430, + EndPos: 443, }, - ByRef: false, + ByRef: false, Variadic: false, VariableType: &node.Nullable{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 430, - EndPos: 433, + EndLine: 20, + StartPos: 430, + EndPos: 433, }, Expr: &name.Name{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 431, - EndPos: 433, + EndLine: 20, + StartPos: 431, + EndPos: 433, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 431, - EndPos: 433, + EndLine: 20, + StartPos: 431, + EndPos: 433, }, Value: "bar", }, @@ -1817,16 +1813,16 @@ func TestPhp7(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 435, - EndPos: 438, + EndLine: 20, + StartPos: 435, + EndPos: 438, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 435, - EndPos: 438, + EndLine: 20, + StartPos: 435, + EndPos: 438, }, Value: "bar", }, @@ -1834,24 +1830,24 @@ func TestPhp7(t *testing.T) { DefaultValue: &expr.ConstFetch{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 440, - EndPos: 443, + EndLine: 20, + StartPos: 440, + EndPos: 443, }, Constant: &name.Name{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 440, - EndPos: 443, + EndLine: 20, + StartPos: 440, + EndPos: 443, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 440, - EndPos: 443, + EndLine: 20, + StartPos: 440, + EndPos: 443, }, Value: "null", }, @@ -1862,26 +1858,26 @@ func TestPhp7(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 446, - EndPos: 457, + EndLine: 20, + StartPos: 446, + EndPos: 457, }, - ByRef: true, + ByRef: true, Variadic: true, VariableType: &name.Name{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 446, - EndPos: 448, + EndLine: 20, + StartPos: 446, + EndPos: 448, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 446, - EndPos: 448, + EndLine: 20, + StartPos: 446, + EndPos: 448, }, Value: "baz", }, @@ -1890,74 +1886,73 @@ func TestPhp7(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 454, - EndPos: 457, + EndLine: 20, + StartPos: 454, + EndPos: 457, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 20, - EndLine: 20, - StartPos: 454, - EndPos: 457, + EndLine: 20, + StartPos: 454, + EndPos: 457, }, Value: "baz", }, }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 466, - EndPos: 514, + EndLine: 21, + StartPos: 466, + EndPos: 514, }, Expr: &expr.Closure{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 466, - EndPos: 513, + EndLine: 21, + StartPos: 466, + EndPos: 513, }, - ReturnsRef: false, - Static: true, + ReturnsRef: false, + Static: true, PhpDocComment: "", Params: []node.Node{ &node.Parameter{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 482, - EndPos: 495, + EndLine: 21, + StartPos: 482, + EndPos: 495, }, - ByRef: false, + ByRef: false, Variadic: false, VariableType: &node.Nullable{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 482, - EndPos: 485, + EndLine: 21, + StartPos: 482, + EndPos: 485, }, Expr: &name.Name{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 483, - EndPos: 485, + EndLine: 21, + StartPos: 483, + EndPos: 485, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 483, - EndPos: 485, + EndLine: 21, + StartPos: 483, + EndPos: 485, }, Value: "bar", }, @@ -1967,16 +1962,16 @@ func TestPhp7(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 487, - EndPos: 490, + EndLine: 21, + StartPos: 487, + EndPos: 490, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 487, - EndPos: 490, + EndLine: 21, + StartPos: 487, + EndPos: 490, }, Value: "bar", }, @@ -1984,24 +1979,24 @@ func TestPhp7(t *testing.T) { DefaultValue: &expr.ConstFetch{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 492, - EndPos: 495, + EndLine: 21, + StartPos: 492, + EndPos: 495, }, Constant: &name.Name{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 492, - EndPos: 495, + EndLine: 21, + StartPos: 492, + EndPos: 495, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 492, - EndPos: 495, + EndLine: 21, + StartPos: 492, + EndPos: 495, }, Value: "null", }, @@ -2012,26 +2007,26 @@ func TestPhp7(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 498, - EndPos: 509, + EndLine: 21, + StartPos: 498, + EndPos: 509, }, Variadic: true, - ByRef: true, + ByRef: true, VariableType: &name.Name{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 498, - EndPos: 500, + EndLine: 21, + StartPos: 498, + EndPos: 500, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 498, - EndPos: 500, + EndLine: 21, + StartPos: 498, + EndPos: 500, }, Value: "baz", }, @@ -2040,39 +2035,38 @@ func TestPhp7(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 506, - EndPos: 509, + EndLine: 21, + StartPos: 506, + EndPos: 509, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 21, - EndLine: 21, - StartPos: 506, - EndPos: 509, + EndLine: 21, + StartPos: 506, + EndPos: 509, }, Value: "baz", }, }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 23, - EndLine: 23, - StartPos: 519, - EndPos: 538, + EndLine: 23, + StartPos: 519, + EndPos: 538, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 23, - EndLine: 23, - StartPos: 519, - EndPos: 537, + EndLine: 23, + StartPos: 519, + EndPos: 537, }, Value: "1234567890123456789", }, @@ -2080,16 +2074,16 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 24, - EndLine: 24, - StartPos: 542, - EndPos: 562, + EndLine: 24, + StartPos: 542, + EndPos: 562, }, Expr: &scalar.Dnumber{ Position: &position.Position{ StartLine: 24, - EndLine: 24, - StartPos: 542, - EndPos: 561, + EndLine: 24, + StartPos: 542, + EndPos: 561, }, Value: "12345678901234567890", }, @@ -2097,16 +2091,16 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 25, - EndLine: 25, - StartPos: 566, - EndPos: 568, + EndLine: 25, + StartPos: 566, + EndPos: 568, }, Expr: &scalar.Dnumber{ Position: &position.Position{ StartLine: 25, - EndLine: 25, - StartPos: 566, - EndPos: 567, + EndLine: 25, + StartPos: 566, + EndPos: 567, }, Value: "0.", }, @@ -2114,16 +2108,16 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 26, - EndLine: 26, - StartPos: 572, - EndPos: 638, + EndLine: 26, + StartPos: 572, + EndPos: 638, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 26, - EndLine: 26, - StartPos: 572, - EndPos: 637, + EndLine: 26, + StartPos: 572, + EndPos: 637, }, Value: "0b0111111111111111111111111111111111111111111111111111111111111111", }, @@ -2131,16 +2125,16 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 27, - EndLine: 27, - StartPos: 642, - EndPos: 708, + EndLine: 27, + StartPos: 642, + EndPos: 708, }, Expr: &scalar.Dnumber{ Position: &position.Position{ StartLine: 27, - EndLine: 27, - StartPos: 642, - EndPos: 707, + EndLine: 27, + StartPos: 642, + EndPos: 707, }, Value: "0b1111111111111111111111111111111111111111111111111111111111111111", }, @@ -2148,16 +2142,16 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 28, - EndLine: 28, - StartPos: 712, - EndPos: 732, + EndLine: 28, + StartPos: 712, + EndPos: 732, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 28, - EndLine: 28, - StartPos: 712, - EndPos: 731, + EndLine: 28, + StartPos: 712, + EndPos: 731, }, Value: "0x007111111111111111", }, @@ -2165,16 +2159,16 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 29, - EndLine: 29, - StartPos: 736, - EndPos: 754, + EndLine: 29, + StartPos: 736, + EndPos: 754, }, Expr: &scalar.Dnumber{ Position: &position.Position{ StartLine: 29, - EndLine: 29, - StartPos: 736, - EndPos: 753, + EndLine: 29, + StartPos: 736, + EndPos: 753, }, Value: "0x8111111111111111", }, @@ -2182,16 +2176,16 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 30, - EndLine: 30, - StartPos: 758, - EndPos: 767, + EndLine: 30, + StartPos: 758, + EndPos: 767, }, Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 30, - EndLine: 30, - StartPos: 758, - EndPos: 766, + EndLine: 30, + StartPos: 758, + EndPos: 766, }, Value: "__CLASS__", }, @@ -2199,16 +2193,16 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 31, - EndLine: 31, - StartPos: 771, - EndPos: 778, + EndLine: 31, + StartPos: 771, + EndPos: 778, }, Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 31, - EndLine: 31, - StartPos: 771, - EndPos: 777, + EndLine: 31, + StartPos: 771, + EndPos: 777, }, Value: "__DIR__", }, @@ -2216,16 +2210,16 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 32, - EndLine: 32, - StartPos: 782, - EndPos: 790, + EndLine: 32, + StartPos: 782, + EndPos: 790, }, Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 32, - EndLine: 32, - StartPos: 782, - EndPos: 789, + EndLine: 32, + StartPos: 782, + EndPos: 789, }, Value: "__FILE__", }, @@ -2233,16 +2227,16 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 33, - EndLine: 33, - StartPos: 794, - EndPos: 806, + EndLine: 33, + StartPos: 794, + EndPos: 806, }, Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 33, - EndLine: 33, - StartPos: 794, - EndPos: 805, + EndLine: 33, + StartPos: 794, + EndPos: 805, }, Value: "__FUNCTION__", }, @@ -2250,16 +2244,16 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 34, - EndLine: 34, - StartPos: 810, - EndPos: 818, + EndLine: 34, + StartPos: 810, + EndPos: 818, }, Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 34, - EndLine: 34, - StartPos: 810, - EndPos: 817, + EndLine: 34, + StartPos: 810, + EndPos: 817, }, Value: "__LINE__", }, @@ -2267,16 +2261,16 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 35, - EndLine: 35, - StartPos: 822, - EndPos: 835, + EndLine: 35, + StartPos: 822, + EndPos: 835, }, Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 35, - EndLine: 35, - StartPos: 822, - EndPos: 834, + EndLine: 35, + StartPos: 822, + EndPos: 834, }, Value: "__NAMESPACE__", }, @@ -2284,16 +2278,16 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 36, - EndLine: 36, - StartPos: 839, - EndPos: 849, + EndLine: 36, + StartPos: 839, + EndPos: 849, }, Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 36, - EndLine: 36, - StartPos: 839, - EndPos: 848, + EndLine: 36, + StartPos: 839, + EndPos: 848, }, Value: "__METHOD__", }, @@ -2301,16 +2295,16 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 37, - EndLine: 37, - StartPos: 853, - EndPos: 862, + EndLine: 37, + StartPos: 853, + EndPos: 862, }, Expr: &scalar.MagicConstant{ Position: &position.Position{ StartLine: 37, - EndLine: 37, - StartPos: 853, - EndPos: 861, + EndLine: 37, + StartPos: 853, + EndPos: 861, }, Value: "__TRAIT__", }, @@ -2318,40 +2312,40 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 39, - EndLine: 39, - StartPos: 867, - EndPos: 878, + EndLine: 39, + StartPos: 867, + EndPos: 878, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 39, - EndLine: 39, - StartPos: 867, - EndPos: 877, + EndLine: 39, + StartPos: 867, + EndPos: 877, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 39, - EndLine: 39, - StartPos: 868, - EndPos: 872, + EndLine: 39, + StartPos: 868, + EndPos: 872, }, Value: "test ", }, &expr.Variable{ Position: &position.Position{ StartLine: 39, - EndLine: 39, - StartPos: 873, - EndPos: 876, + EndLine: 39, + StartPos: 873, + EndPos: 876, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 39, - EndLine: 39, - StartPos: 873, - EndPos: 876, + EndLine: 39, + StartPos: 873, + EndPos: 876, }, Value: "var", }, @@ -2362,47 +2356,47 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 40, - EndLine: 40, - StartPos: 882, - EndPos: 896, + EndLine: 40, + StartPos: 882, + EndPos: 896, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 40, - EndLine: 40, - StartPos: 882, - EndPos: 895, + EndLine: 40, + StartPos: 882, + EndPos: 895, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 40, - EndLine: 40, - StartPos: 883, - EndPos: 887, + EndLine: 40, + StartPos: 883, + EndPos: 887, }, Value: "test ", }, &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 40, - EndLine: 40, - StartPos: 888, - EndPos: 894, + EndLine: 40, + StartPos: 888, + EndPos: 894, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 40, - EndLine: 40, - StartPos: 888, - EndPos: 891, + EndLine: 40, + StartPos: 888, + EndPos: 891, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 40, - EndLine: 40, - StartPos: 888, - EndPos: 891, + EndLine: 40, + StartPos: 888, + EndPos: 891, }, Value: "var", }, @@ -2410,9 +2404,9 @@ func TestPhp7(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 40, - EndLine: 40, - StartPos: 893, - EndPos: 893, + EndLine: 40, + StartPos: 893, + EndPos: 893, }, Value: "1", }, @@ -2423,47 +2417,47 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 41, - EndLine: 41, - StartPos: 900, - EndPos: 915, + EndLine: 41, + StartPos: 900, + EndPos: 915, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 41, - EndLine: 41, - StartPos: 900, - EndPos: 914, + EndLine: 41, + StartPos: 900, + EndPos: 914, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 41, - EndLine: 41, - StartPos: 901, - EndPos: 905, + EndLine: 41, + StartPos: 901, + EndPos: 905, }, Value: "test ", }, &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 41, - EndLine: 41, - StartPos: 906, - EndPos: 913, + EndLine: 41, + StartPos: 906, + EndPos: 913, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 41, - EndLine: 41, - StartPos: 906, - EndPos: 909, + EndLine: 41, + StartPos: 906, + EndPos: 909, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 41, - EndLine: 41, - StartPos: 906, - EndPos: 909, + EndLine: 41, + StartPos: 906, + EndPos: 909, }, Value: "var", }, @@ -2471,16 +2465,16 @@ func TestPhp7(t *testing.T) { Dim: &expr.UnaryMinus{ Position: &position.Position{ StartLine: 41, - EndLine: 41, - StartPos: 911, - EndPos: 912, + EndLine: 41, + StartPos: 911, + EndPos: 912, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 41, - EndLine: 41, - StartPos: 911, - EndPos: 912, + EndLine: 41, + StartPos: 911, + EndPos: 912, }, Value: "1", }, @@ -2492,47 +2486,47 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 42, - EndLine: 42, - StartPos: 919, - EndPos: 972, + EndLine: 42, + StartPos: 919, + EndPos: 972, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 42, - EndLine: 42, - StartPos: 919, - EndPos: 971, + EndLine: 42, + StartPos: 919, + EndPos: 971, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 42, - EndLine: 42, - StartPos: 920, - EndPos: 924, + EndLine: 42, + StartPos: 920, + EndPos: 924, }, Value: "test ", }, &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 42, - EndLine: 42, - StartPos: 925, - EndPos: 970, + EndLine: 42, + StartPos: 925, + EndPos: 970, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 42, - EndLine: 42, - StartPos: 925, - EndPos: 928, + EndLine: 42, + StartPos: 925, + EndPos: 928, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 42, - EndLine: 42, - StartPos: 925, - EndPos: 928, + EndLine: 42, + StartPos: 925, + EndPos: 928, }, Value: "var", }, @@ -2540,9 +2534,9 @@ func TestPhp7(t *testing.T) { Dim: &scalar.String{ Position: &position.Position{ StartLine: 42, - EndLine: 42, - StartPos: 930, - EndPos: 969, + EndLine: 42, + StartPos: 930, + EndPos: 969, }, Value: "1234567890123456789012345678901234567890", }, @@ -2553,47 +2547,47 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 43, - EndLine: 43, - StartPos: 976, - EndPos: 1030, + EndLine: 43, + StartPos: 976, + EndPos: 1030, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 43, - EndLine: 43, - StartPos: 976, - EndPos: 1029, + EndLine: 43, + StartPos: 976, + EndPos: 1029, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 43, - EndLine: 43, - StartPos: 977, - EndPos: 981, + EndLine: 43, + StartPos: 977, + EndPos: 981, }, Value: "test ", }, &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 43, - EndLine: 43, - StartPos: 982, - EndPos: 1028, + EndLine: 43, + StartPos: 982, + EndPos: 1028, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 43, - EndLine: 43, - StartPos: 982, - EndPos: 985, + EndLine: 43, + StartPos: 982, + EndPos: 985, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 43, - EndLine: 43, - StartPos: 982, - EndPos: 985, + EndLine: 43, + StartPos: 982, + EndPos: 985, }, Value: "var", }, @@ -2601,9 +2595,9 @@ func TestPhp7(t *testing.T) { Dim: &scalar.String{ Position: &position.Position{ StartLine: 43, - EndLine: 43, - StartPos: 987, - EndPos: 1027, + EndLine: 43, + StartPos: 987, + EndPos: 1027, }, Value: "-1234567890123456789012345678901234567890", }, @@ -2614,47 +2608,47 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 44, - EndLine: 44, - StartPos: 1034, - EndPos: 1050, + EndLine: 44, + StartPos: 1034, + EndPos: 1050, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 44, - EndLine: 44, - StartPos: 1034, - EndPos: 1049, + EndLine: 44, + StartPos: 1034, + EndPos: 1049, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 44, - EndLine: 44, - StartPos: 1035, - EndPos: 1039, + EndLine: 44, + StartPos: 1035, + EndPos: 1039, }, Value: "test ", }, &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 44, - EndLine: 44, - StartPos: 1040, - EndPos: 1048, + EndLine: 44, + StartPos: 1040, + EndPos: 1048, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 44, - EndLine: 44, - StartPos: 1040, - EndPos: 1043, + EndLine: 44, + StartPos: 1040, + EndPos: 1043, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 44, - EndLine: 44, - StartPos: 1040, - EndPos: 1043, + EndLine: 44, + StartPos: 1040, + EndPos: 1043, }, Value: "var", }, @@ -2662,9 +2656,9 @@ func TestPhp7(t *testing.T) { Dim: &scalar.String{ Position: &position.Position{ StartLine: 44, - EndLine: 44, - StartPos: 1045, - EndPos: 1047, + EndLine: 44, + StartPos: 1045, + EndPos: 1047, }, Value: "bar", }, @@ -2675,47 +2669,47 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 45, - EndLine: 45, - StartPos: 1054, - EndPos: 1071, + EndLine: 45, + StartPos: 1054, + EndPos: 1071, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 45, - EndLine: 45, - StartPos: 1054, - EndPos: 1070, + EndLine: 45, + StartPos: 1054, + EndPos: 1070, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 45, - EndLine: 45, - StartPos: 1055, - EndPos: 1059, + EndLine: 45, + StartPos: 1055, + EndPos: 1059, }, Value: "test ", }, &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 45, - EndLine: 45, - StartPos: 1060, - EndPos: 1069, + EndLine: 45, + StartPos: 1060, + EndPos: 1069, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 45, - EndLine: 45, - StartPos: 1060, - EndPos: 1063, + EndLine: 45, + StartPos: 1060, + EndPos: 1063, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 45, - EndLine: 45, - StartPos: 1060, - EndPos: 1063, + EndLine: 45, + StartPos: 1060, + EndPos: 1063, }, Value: "var", }, @@ -2723,16 +2717,16 @@ func TestPhp7(t *testing.T) { Dim: &expr.Variable{ Position: &position.Position{ StartLine: 45, - EndLine: 45, - StartPos: 1065, - EndPos: 1068, + EndLine: 45, + StartPos: 1065, + EndPos: 1068, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 45, - EndLine: 45, - StartPos: 1065, - EndPos: 1068, + EndLine: 45, + StartPos: 1065, + EndPos: 1068, }, Value: "bar", }, @@ -2744,31 +2738,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 46, - EndLine: 46, - StartPos: 1075, - EndPos: 1086, + EndLine: 46, + StartPos: 1075, + EndPos: 1086, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 46, - EndLine: 46, - StartPos: 1075, - EndPos: 1085, + EndLine: 46, + StartPos: 1075, + EndPos: 1085, }, Parts: []node.Node{ &expr.Variable{ Position: &position.Position{ StartLine: 46, - EndLine: 46, - StartPos: 1076, - EndPos: 1079, + EndLine: 46, + StartPos: 1076, + EndPos: 1079, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 46, - EndLine: 46, - StartPos: 1076, - EndPos: 1079, + EndLine: 46, + StartPos: 1076, + EndPos: 1079, }, Value: "foo", }, @@ -2776,25 +2770,25 @@ func TestPhp7(t *testing.T) { &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 46, - EndLine: 46, - StartPos: 1080, - EndPos: 1080, + EndLine: 46, + StartPos: 1080, + EndPos: 1080, }, Value: " ", }, &expr.Variable{ Position: &position.Position{ StartLine: 46, - EndLine: 46, - StartPos: 1081, - EndPos: 1084, + EndLine: 46, + StartPos: 1081, + EndPos: 1084, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 46, - EndLine: 46, - StartPos: 1081, - EndPos: 1084, + EndLine: 46, + StartPos: 1081, + EndPos: 1084, }, Value: "bar", }, @@ -2805,47 +2799,47 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 47, - EndLine: 47, - StartPos: 1090, - EndPos: 1108, + EndLine: 47, + StartPos: 1090, + EndPos: 1108, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 47, - EndLine: 47, - StartPos: 1090, - EndPos: 1107, + EndLine: 47, + StartPos: 1090, + EndPos: 1107, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 47, - EndLine: 47, - StartPos: 1091, - EndPos: 1095, + EndLine: 47, + StartPos: 1091, + EndPos: 1095, }, Value: "test ", }, &expr.PropertyFetch{ Position: &position.Position{ StartLine: 47, - EndLine: 47, - StartPos: 1096, - EndPos: 1104, + EndLine: 47, + StartPos: 1096, + EndPos: 1104, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 47, - EndLine: 47, - StartPos: 1096, - EndPos: 1099, + EndLine: 47, + StartPos: 1096, + EndPos: 1099, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 47, - EndLine: 47, - StartPos: 1096, - EndPos: 1099, + EndLine: 47, + StartPos: 1096, + EndPos: 1099, }, Value: "foo", }, @@ -2853,9 +2847,9 @@ func TestPhp7(t *testing.T) { Property: &node.Identifier{ Position: &position.Position{ StartLine: 47, - EndLine: 47, - StartPos: 1102, - EndPos: 1104, + EndLine: 47, + StartPos: 1102, + EndPos: 1104, }, Value: "bar", }, @@ -2863,9 +2857,9 @@ func TestPhp7(t *testing.T) { &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 47, - EndLine: 47, - StartPos: 1105, - EndPos: 1106, + EndLine: 47, + StartPos: 1105, + EndPos: 1106, }, Value: "()", }, @@ -2875,40 +2869,40 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 48, - EndLine: 48, - StartPos: 1112, - EndPos: 1125, + EndLine: 48, + StartPos: 1112, + EndPos: 1125, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 48, - EndLine: 48, - StartPos: 1112, - EndPos: 1124, + EndLine: 48, + StartPos: 1112, + EndPos: 1124, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 48, - EndLine: 48, - StartPos: 1113, - EndPos: 1117, + EndLine: 48, + StartPos: 1113, + EndPos: 1117, }, Value: "test ", }, &expr.Variable{ Position: &position.Position{ StartLine: 48, - EndLine: 48, - StartPos: 1118, - EndPos: 1123, + EndLine: 48, + StartPos: 1118, + EndPos: 1123, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 48, - EndLine: 48, - StartPos: 1120, - EndPos: 1122, + EndLine: 48, + StartPos: 1120, + EndPos: 1122, }, Value: "foo", }, @@ -2919,47 +2913,47 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 49, - EndLine: 49, - StartPos: 1129, - EndPos: 1145, + EndLine: 49, + StartPos: 1129, + EndPos: 1145, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 49, - EndLine: 49, - StartPos: 1129, - EndPos: 1144, + EndLine: 49, + StartPos: 1129, + EndPos: 1144, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 49, - EndLine: 49, - StartPos: 1130, - EndPos: 1134, + EndLine: 49, + StartPos: 1130, + EndPos: 1134, }, Value: "test ", }, &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 49, - EndLine: 49, - StartPos: 1135, - EndPos: 1143, + EndLine: 49, + StartPos: 1135, + EndPos: 1143, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 49, - EndLine: 49, - StartPos: 1137, - EndPos: 1139, + EndLine: 49, + StartPos: 1137, + EndPos: 1139, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 49, - EndLine: 49, - StartPos: 1137, - EndPos: 1139, + EndLine: 49, + StartPos: 1137, + EndPos: 1139, }, Value: "foo", }, @@ -2967,9 +2961,9 @@ func TestPhp7(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 49, - EndLine: 49, - StartPos: 1141, - EndPos: 1141, + EndLine: 49, + StartPos: 1141, + EndPos: 1141, }, Value: "0", }, @@ -2980,47 +2974,47 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 50, - EndLine: 50, - StartPos: 1149, - EndPos: 1163, + EndLine: 50, + StartPos: 1149, + EndPos: 1163, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 50, - EndLine: 50, - StartPos: 1149, - EndPos: 1162, + EndLine: 50, + StartPos: 1149, + EndPos: 1162, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 50, - EndLine: 50, - StartPos: 1150, - EndPos: 1154, + EndLine: 50, + StartPos: 1150, + EndPos: 1154, }, Value: "test ", }, &expr.Variable{ Position: &position.Position{ StartLine: 50, - EndLine: 50, - StartPos: 1155, - EndPos: 1161, + EndLine: 50, + StartPos: 1155, + EndPos: 1161, }, VarName: &expr.Variable{ Position: &position.Position{ StartLine: 50, - EndLine: 50, - StartPos: 1157, - EndPos: 1160, + EndLine: 50, + StartPos: 1157, + EndPos: 1160, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 50, - EndLine: 50, - StartPos: 1157, - EndPos: 1160, + EndLine: 50, + StartPos: 1157, + EndPos: 1160, }, Value: "foo", }, @@ -3032,47 +3026,47 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 51, - EndLine: 51, - StartPos: 1167, - EndPos: 1187, + EndLine: 51, + StartPos: 1167, + EndPos: 1187, }, Expr: &scalar.Encapsed{ Position: &position.Position{ StartLine: 51, - EndLine: 51, - StartPos: 1167, - EndPos: 1186, + EndLine: 51, + StartPos: 1167, + EndPos: 1186, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 51, - EndLine: 51, - StartPos: 1168, - EndPos: 1172, + EndLine: 51, + StartPos: 1168, + EndPos: 1172, }, Value: "test ", }, &expr.MethodCall{ Position: &position.Position{ StartLine: 51, - EndLine: 51, - StartPos: 1174, - EndPos: 1184, + EndLine: 51, + StartPos: 1174, + EndPos: 1184, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 51, - EndLine: 51, - StartPos: 1174, - EndPos: 1177, + EndLine: 51, + StartPos: 1174, + EndPos: 1177, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 51, - EndLine: 51, - StartPos: 1174, - EndPos: 1177, + EndLine: 51, + StartPos: 1174, + EndPos: 1177, }, Value: "foo", }, @@ -3080,18 +3074,18 @@ func TestPhp7(t *testing.T) { Method: &node.Identifier{ Position: &position.Position{ StartLine: 51, - EndLine: 51, - StartPos: 1180, - EndPos: 1182, + EndLine: 51, + StartPos: 1180, + EndPos: 1182, }, Value: "bar", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 51, - EndLine: 51, - StartPos: 1183, - EndPos: 1184, + EndLine: 51, + StartPos: 1183, + EndPos: 1184, }, }, }, @@ -3101,23 +3095,23 @@ func TestPhp7(t *testing.T) { &stmt.AltIf{ Position: &position.Position{ StartLine: 53, - EndLine: 54, - StartPos: 1192, - EndPos: 1209, + EndLine: 54, + StartPos: 1192, + EndPos: 1209, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 53, - EndLine: 53, - StartPos: 1196, - EndPos: 1197, + EndLine: 53, + StartPos: 1196, + EndPos: 1197, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 53, - EndLine: 53, - StartPos: 1196, - EndPos: 1197, + EndLine: 53, + StartPos: 1196, + EndPos: 1197, }, Value: "a", }, @@ -3125,34 +3119,33 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, }, &stmt.AltIf{ Position: &position.Position{ StartLine: 55, - EndLine: 57, - StartPos: 1213, - EndPos: 1245, + EndLine: 57, + StartPos: 1213, + EndPos: 1245, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 55, - EndLine: 55, - StartPos: 1217, - EndPos: 1218, + EndLine: 55, + StartPos: 1217, + EndPos: 1218, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 55, - EndLine: 55, - StartPos: 1217, - EndPos: 1218, + EndLine: 55, + StartPos: 1217, + EndPos: 1218, }, Value: "a", }, @@ -3160,34 +3153,33 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, ElseIf: []node.Node{ &stmt.AltElseIf{ Position: &position.Position{ StartLine: 56, - EndLine: -1, - StartPos: 1225, - EndPos: -1, + EndLine: -1, + StartPos: 1225, + EndPos: -1, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 56, - EndLine: 56, - StartPos: 1233, - EndPos: 1234, + EndLine: 56, + StartPos: 1233, + EndPos: 1234, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 56, - EndLine: 56, - StartPos: 1233, - EndPos: 1234, + EndLine: 56, + StartPos: 1233, + EndPos: 1234, }, Value: "b", }, @@ -3195,12 +3187,11 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, }, }, @@ -3208,23 +3199,23 @@ func TestPhp7(t *testing.T) { &stmt.AltIf{ Position: &position.Position{ StartLine: 58, - EndLine: 60, - StartPos: 1249, - EndPos: 1274, + EndLine: 60, + StartPos: 1249, + EndPos: 1274, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 58, - EndLine: 58, - StartPos: 1253, - EndPos: 1254, + EndLine: 58, + StartPos: 1253, + EndPos: 1254, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 58, - EndLine: 58, - StartPos: 1253, - EndPos: 1254, + EndLine: 58, + StartPos: 1253, + EndPos: 1254, }, Value: "a", }, @@ -3232,52 +3223,50 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, Else: &stmt.AltElse{ Position: &position.Position{ StartLine: 59, - EndLine: -1, - StartPos: 1261, - EndPos: -1, + EndLine: -1, + StartPos: 1261, + EndPos: -1, }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, }, }, &stmt.AltIf{ Position: &position.Position{ StartLine: 61, - EndLine: 65, - StartPos: 1278, - EndPos: 1333, + EndLine: 65, + StartPos: 1278, + EndPos: 1333, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 61, - EndLine: 61, - StartPos: 1282, - EndPos: 1283, + EndLine: 61, + StartPos: 1282, + EndPos: 1283, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 61, - EndLine: 61, - StartPos: 1282, - EndPos: 1283, + EndLine: 61, + StartPos: 1282, + EndPos: 1283, }, Value: "a", }, @@ -3285,34 +3274,33 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, ElseIf: []node.Node{ &stmt.AltElseIf{ Position: &position.Position{ StartLine: 62, - EndLine: -1, - StartPos: 1290, - EndPos: -1, + EndLine: -1, + StartPos: 1290, + EndPos: -1, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 62, - EndLine: 62, - StartPos: 1298, - EndPos: 1299, + EndLine: 62, + StartPos: 1298, + EndPos: 1299, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 62, - EndLine: 62, - StartPos: 1298, - EndPos: 1299, + EndLine: 62, + StartPos: 1298, + EndPos: 1299, }, Value: "b", }, @@ -3320,34 +3308,33 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, }, &stmt.AltElseIf{ Position: &position.Position{ StartLine: 63, - EndLine: -1, - StartPos: 1305, - EndPos: -1, + EndLine: -1, + StartPos: 1305, + EndPos: -1, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 63, - EndLine: 63, - StartPos: 1313, - EndPos: 1314, + EndLine: 63, + StartPos: 1313, + EndPos: 1314, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 63, - EndLine: 63, - StartPos: 1313, - EndPos: 1314, + EndLine: 63, + StartPos: 1313, + EndPos: 1314, }, Value: "c", }, @@ -3355,64 +3342,62 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, }, }, Else: &stmt.AltElse{ Position: &position.Position{ StartLine: 64, - EndLine: -1, - StartPos: 1320, - EndPos: -1, + EndLine: -1, + StartPos: 1320, + EndPos: -1, }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, }, }, &stmt.While{ Position: &position.Position{ StartLine: 67, - EndLine: 67, - StartPos: 1338, - EndPos: 1357, + EndLine: 67, + StartPos: 1338, + EndPos: 1357, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 67, - EndLine: 67, - StartPos: 1345, - EndPos: 1345, + EndLine: 67, + StartPos: 1345, + EndPos: 1345, }, Value: "1", }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 67, - EndLine: 67, - StartPos: 1348, - EndPos: 1357, + EndLine: 67, + StartPos: 1348, + EndPos: 1357, }, Stmts: []node.Node{ &stmt.Break{ Position: &position.Position{ StartLine: 67, - EndLine: 67, - StartPos: 1350, - EndPos: 1355, + EndLine: 67, + StartPos: 1350, + EndPos: 1355, }, }, }, @@ -3421,40 +3406,40 @@ func TestPhp7(t *testing.T) { &stmt.While{ Position: &position.Position{ StartLine: 68, - EndLine: 68, - StartPos: 1361, - EndPos: 1382, + EndLine: 68, + StartPos: 1361, + EndPos: 1382, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 68, - EndLine: 68, - StartPos: 1368, - EndPos: 1368, + EndLine: 68, + StartPos: 1368, + EndPos: 1368, }, Value: "1", }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 68, - EndLine: 68, - StartPos: 1371, - EndPos: 1382, + EndLine: 68, + StartPos: 1371, + EndPos: 1382, }, Stmts: []node.Node{ &stmt.Break{ Position: &position.Position{ StartLine: 68, - EndLine: 68, - StartPos: 1373, - EndPos: 1380, + EndLine: 68, + StartPos: 1373, + EndPos: 1380, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 68, - EndLine: 68, - StartPos: 1379, - EndPos: 1379, + EndLine: 68, + StartPos: 1379, + EndPos: 1379, }, Value: "2", }, @@ -3465,40 +3450,40 @@ func TestPhp7(t *testing.T) { &stmt.AltWhile{ Position: &position.Position{ StartLine: 69, - EndLine: 69, - StartPos: 1386, - EndPos: 1416, + EndLine: 69, + StartPos: 1386, + EndPos: 1416, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 69, - EndLine: 69, - StartPos: 1393, - EndPos: 1393, + EndLine: 69, + StartPos: 1393, + EndPos: 1393, }, Value: "1", }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 69, - EndLine: 69, - StartPos: 1398, - EndPos: 1406, + EndLine: 69, + StartPos: 1398, + EndPos: 1406, }, Stmts: []node.Node{ &stmt.Break{ Position: &position.Position{ StartLine: 69, - EndLine: 69, - StartPos: 1398, - EndPos: 1406, + EndLine: 69, + StartPos: 1398, + EndPos: 1406, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 69, - EndLine: 69, - StartPos: 1404, - EndPos: 1404, + EndLine: 69, + StartPos: 1404, + EndPos: 1404, }, Value: "3", }, @@ -3509,17 +3494,17 @@ func TestPhp7(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 70, - EndLine: 70, - StartPos: 1420, - EndPos: 1462, + EndLine: 70, + StartPos: 1420, + EndPos: 1462, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 70, - EndLine: 70, - StartPos: 1426, - EndPos: 1428, + EndLine: 70, + StartPos: 1426, + EndPos: 1428, }, Value: "foo", }, @@ -3527,17 +3512,17 @@ func TestPhp7(t *testing.T) { &stmt.ClassConstList{ Position: &position.Position{ StartLine: 70, - EndLine: 70, - StartPos: 1431, - EndPos: 1460, + EndLine: 70, + StartPos: 1431, + EndPos: 1460, }, Modifiers: []node.Node{ &node.Identifier{ Position: &position.Position{ StartLine: 70, - EndLine: 70, - StartPos: 1431, - EndPos: 1436, + EndLine: 70, + StartPos: 1431, + EndPos: 1436, }, Value: "public", }, @@ -3546,26 +3531,26 @@ func TestPhp7(t *testing.T) { &stmt.Constant{ Position: &position.Position{ StartLine: 70, - EndLine: 70, - StartPos: 1444, - EndPos: 1450, + EndLine: 70, + StartPos: 1444, + EndPos: 1450, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 70, - EndLine: 70, - StartPos: 1444, - EndPos: 1446, + EndLine: 70, + StartPos: 1444, + EndPos: 1446, }, Value: "FOO", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 70, - EndLine: 70, - StartPos: 1450, - EndPos: 1450, + EndLine: 70, + StartPos: 1450, + EndPos: 1450, }, Value: "1", }, @@ -3573,26 +3558,26 @@ func TestPhp7(t *testing.T) { &stmt.Constant{ Position: &position.Position{ StartLine: 70, - EndLine: 70, - StartPos: 1453, - EndPos: 1459, + EndLine: 70, + StartPos: 1453, + EndPos: 1459, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 70, - EndLine: 70, - StartPos: 1453, - EndPos: 1455, + EndLine: 70, + StartPos: 1453, + EndPos: 1455, }, Value: "BAR", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 70, - EndLine: 70, - StartPos: 1459, - EndPos: 1459, + EndLine: 70, + StartPos: 1459, + EndPos: 1459, }, Value: "2", }, @@ -3604,17 +3589,17 @@ func TestPhp7(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 71, - EndLine: 71, - StartPos: 1466, - EndPos: 1501, + EndLine: 71, + StartPos: 1466, + EndPos: 1501, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 71, - EndLine: 71, - StartPos: 1472, - EndPos: 1474, + EndLine: 71, + StartPos: 1472, + EndPos: 1474, }, Value: "foo", }, @@ -3622,34 +3607,34 @@ func TestPhp7(t *testing.T) { &stmt.ClassConstList{ Position: &position.Position{ StartLine: 71, - EndLine: 71, - StartPos: 1477, - EndPos: 1499, + EndLine: 71, + StartPos: 1477, + EndPos: 1499, }, Consts: []node.Node{ &stmt.Constant{ Position: &position.Position{ StartLine: 71, - EndLine: 71, - StartPos: 1483, - EndPos: 1489, + EndLine: 71, + StartPos: 1483, + EndPos: 1489, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 71, - EndLine: 71, - StartPos: 1483, - EndPos: 1485, + EndLine: 71, + StartPos: 1483, + EndPos: 1485, }, Value: "FOO", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 71, - EndLine: 71, - StartPos: 1489, - EndPos: 1489, + EndLine: 71, + StartPos: 1489, + EndPos: 1489, }, Value: "1", }, @@ -3657,26 +3642,26 @@ func TestPhp7(t *testing.T) { &stmt.Constant{ Position: &position.Position{ StartLine: 71, - EndLine: 71, - StartPos: 1492, - EndPos: 1498, + EndLine: 71, + StartPos: 1492, + EndPos: 1498, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 71, - EndLine: 71, - StartPos: 1492, - EndPos: 1494, + EndLine: 71, + StartPos: 1492, + EndPos: 1494, }, Value: "BAR", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 71, - EndLine: 71, - StartPos: 1498, - EndPos: 1498, + EndLine: 71, + StartPos: 1498, + EndPos: 1498, }, Value: "2", }, @@ -3688,17 +3673,17 @@ func TestPhp7(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 72, - EndLine: 72, - StartPos: 1505, - EndPos: 1534, + EndLine: 72, + StartPos: 1505, + EndPos: 1534, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 72, - EndLine: 72, - StartPos: 1511, - EndPos: 1513, + EndLine: 72, + StartPos: 1511, + EndPos: 1513, }, Value: "foo", }, @@ -3706,30 +3691,29 @@ func TestPhp7(t *testing.T) { &stmt.ClassMethod{ Position: &position.Position{ StartLine: 72, - EndLine: 72, - StartPos: 1516, - EndPos: 1532, + EndLine: 72, + StartPos: 1516, + EndPos: 1532, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", MethodName: &node.Identifier{ Position: &position.Position{ StartLine: 72, - EndLine: 72, - StartPos: 1525, - EndPos: 1527, + EndLine: 72, + StartPos: 1525, + EndPos: 1527, }, Value: "bar", }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 72, - EndLine: 72, - StartPos: 1531, - EndPos: 1532, - }, - Stmts: []node.Node{ + EndLine: 72, + StartPos: 1531, + EndPos: 1532, }, + Stmts: []node.Node{}, }, }, }, @@ -3737,17 +3721,17 @@ func TestPhp7(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 73, - EndLine: 73, - StartPos: 1538, - EndPos: 1582, + EndLine: 73, + StartPos: 1538, + EndPos: 1582, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 73, - EndLine: 73, - StartPos: 1544, - EndPos: 1546, + EndLine: 73, + StartPos: 1544, + EndPos: 1546, }, Value: "foo", }, @@ -3755,18 +3739,18 @@ func TestPhp7(t *testing.T) { &stmt.ClassMethod{ Position: &position.Position{ StartLine: 73, - EndLine: 73, - StartPos: 1549, - EndPos: 1580, + EndLine: 73, + StartPos: 1549, + EndPos: 1580, }, PhpDocComment: "", - ReturnsRef: true, + ReturnsRef: true, MethodName: &node.Identifier{ Position: &position.Position{ StartLine: 73, - EndLine: 73, - StartPos: 1573, - EndPos: 1575, + EndLine: 73, + StartPos: 1573, + EndPos: 1575, }, Value: "bar", }, @@ -3774,18 +3758,18 @@ func TestPhp7(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 73, - EndLine: 73, - StartPos: 1549, - EndPos: 1554, + EndLine: 73, + StartPos: 1549, + EndPos: 1554, }, Value: "public", }, &node.Identifier{ Position: &position.Position{ StartLine: 73, - EndLine: 73, - StartPos: 1556, - EndPos: 1561, + EndLine: 73, + StartPos: 1556, + EndPos: 1561, }, Value: "static", }, @@ -3793,12 +3777,11 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 73, - EndLine: 73, - StartPos: 1579, - EndPos: 1580, - }, - Stmts: []node.Node{ + EndLine: 73, + StartPos: 1579, + EndPos: 1580, }, + Stmts: []node.Node{}, }, }, }, @@ -3806,17 +3789,17 @@ func TestPhp7(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 74, - EndLine: 74, - StartPos: 1586, - EndPos: 1636, + EndLine: 74, + StartPos: 1586, + EndPos: 1636, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 74, - EndLine: 74, - StartPos: 1592, - EndPos: 1594, + EndLine: 74, + StartPos: 1592, + EndPos: 1594, }, Value: "foo", }, @@ -3824,18 +3807,18 @@ func TestPhp7(t *testing.T) { &stmt.ClassMethod{ Position: &position.Position{ StartLine: 74, - EndLine: 74, - StartPos: 1597, - EndPos: 1634, + EndLine: 74, + StartPos: 1597, + EndPos: 1634, }, - ReturnsRef: true, + ReturnsRef: true, PhpDocComment: "", MethodName: &node.Identifier{ Position: &position.Position{ StartLine: 74, - EndLine: 74, - StartPos: 1621, - EndPos: 1623, + EndLine: 74, + StartPos: 1621, + EndPos: 1623, }, Value: "bar", }, @@ -3843,18 +3826,18 @@ func TestPhp7(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 74, - EndLine: 74, - StartPos: 1597, - EndPos: 1602, + EndLine: 74, + StartPos: 1597, + EndPos: 1602, }, Value: "public", }, &node.Identifier{ Position: &position.Position{ StartLine: 74, - EndLine: 74, - StartPos: 1604, - EndPos: 1609, + EndLine: 74, + StartPos: 1604, + EndPos: 1609, }, Value: "static", }, @@ -3862,17 +3845,17 @@ func TestPhp7(t *testing.T) { ReturnType: &name.Name{ Position: &position.Position{ StartLine: 74, - EndLine: 74, - StartPos: 1628, - EndPos: 1631, + EndLine: 74, + StartPos: 1628, + EndPos: 1631, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 74, - EndLine: 74, - StartPos: 1628, - EndPos: 1631, + EndLine: 74, + StartPos: 1628, + EndPos: 1631, }, Value: "void", }, @@ -3881,12 +3864,11 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 74, - EndLine: 74, - StartPos: 1633, - EndPos: 1634, - }, - Stmts: []node.Node{ + EndLine: 74, + StartPos: 1633, + EndPos: 1634, }, + Stmts: []node.Node{}, }, }, }, @@ -3894,17 +3876,17 @@ func TestPhp7(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 75, - EndLine: 75, - StartPos: 1640, - EndPos: 1660, + EndLine: 75, + StartPos: 1640, + EndPos: 1660, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 75, - EndLine: 75, - StartPos: 1655, - EndPos: 1657, + EndLine: 75, + StartPos: 1655, + EndPos: 1657, }, Value: "foo", }, @@ -3912,30 +3894,29 @@ func TestPhp7(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 75, - EndLine: 75, - StartPos: 1640, - EndPos: 1647, + EndLine: 75, + StartPos: 1640, + EndPos: 1647, }, Value: "abstract", }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Class{ Position: &position.Position{ StartLine: 76, - EndLine: 76, - StartPos: 1664, - EndPos: 1694, + EndLine: 76, + StartPos: 1664, + EndPos: 1694, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 76, - EndLine: 76, - StartPos: 1676, - EndPos: 1678, + EndLine: 76, + StartPos: 1676, + EndPos: 1678, }, Value: "foo", }, @@ -3943,9 +3924,9 @@ func TestPhp7(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 76, - EndLine: 76, - StartPos: 1664, - EndPos: 1668, + EndLine: 76, + StartPos: 1664, + EndPos: 1668, }, Value: "final", }, @@ -3953,47 +3934,46 @@ func TestPhp7(t *testing.T) { Extends: &stmt.ClassExtends{ Position: &position.Position{ StartLine: 76, - EndLine: 76, - StartPos: 1680, - EndPos: 1690, + EndLine: 76, + StartPos: 1680, + EndPos: 1690, }, ClassName: &name.Name{ Position: &position.Position{ StartLine: 76, - EndLine: 76, - StartPos: 1688, - EndPos: 1690, + EndLine: 76, + StartPos: 1688, + EndPos: 1690, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 76, - EndLine: 76, - StartPos: 1688, - EndPos: 1690, + EndLine: 76, + StartPos: 1688, + EndPos: 1690, }, Value: "bar", }, }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Class{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1698, - EndPos: 1731, + EndLine: 77, + StartPos: 1698, + EndPos: 1731, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1710, - EndPos: 1712, + EndLine: 77, + StartPos: 1710, + EndPos: 1712, }, Value: "foo", }, @@ -4001,9 +3981,9 @@ func TestPhp7(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1698, - EndPos: 1702, + EndLine: 77, + StartPos: 1698, + EndPos: 1702, }, Value: "final", }, @@ -4011,25 +3991,25 @@ func TestPhp7(t *testing.T) { Implements: &stmt.ClassImplements{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1714, - EndPos: 1727, + EndLine: 77, + StartPos: 1714, + EndPos: 1727, }, InterfaceNames: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1725, - EndPos: 1727, + EndLine: 77, + StartPos: 1725, + EndPos: 1727, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 77, - EndLine: 77, - StartPos: 1725, - EndPos: 1727, + EndLine: 77, + StartPos: 1725, + EndPos: 1727, }, Value: "bar", }, @@ -4037,23 +4017,22 @@ func TestPhp7(t *testing.T) { }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Class{ Position: &position.Position{ StartLine: 78, - EndLine: 78, - StartPos: 1735, - EndPos: 1773, + EndLine: 78, + StartPos: 1735, + EndPos: 1773, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 78, - EndLine: 78, - StartPos: 1747, - EndPos: 1749, + EndLine: 78, + StartPos: 1747, + EndPos: 1749, }, Value: "foo", }, @@ -4061,9 +4040,9 @@ func TestPhp7(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 78, - EndLine: 78, - StartPos: 1735, - EndPos: 1739, + EndLine: 78, + StartPos: 1735, + EndPos: 1739, }, Value: "final", }, @@ -4071,25 +4050,25 @@ func TestPhp7(t *testing.T) { Implements: &stmt.ClassImplements{ Position: &position.Position{ StartLine: 78, - EndLine: 78, - StartPos: 1751, - EndPos: 1769, + EndLine: 78, + StartPos: 1751, + EndPos: 1769, }, InterfaceNames: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 78, - EndLine: 78, - StartPos: 1762, - EndPos: 1764, + EndLine: 78, + StartPos: 1762, + EndPos: 1764, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 78, - EndLine: 78, - StartPos: 1762, - EndPos: 1764, + EndLine: 78, + StartPos: 1762, + EndPos: 1764, }, Value: "bar", }, @@ -4098,17 +4077,17 @@ func TestPhp7(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 78, - EndLine: 78, - StartPos: 1767, - EndPos: 1769, + EndLine: 78, + StartPos: 1767, + EndPos: 1769, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 78, - EndLine: 78, - StartPos: 1767, - EndPos: 1769, + EndLine: 78, + StartPos: 1767, + EndPos: 1769, }, Value: "baz", }, @@ -4116,60 +4095,59 @@ func TestPhp7(t *testing.T) { }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Expression{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1777, - EndPos: 1824, + EndLine: 79, + StartPos: 1777, + EndPos: 1824, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1777, - EndPos: 1823, + EndLine: 79, + StartPos: 1777, + EndPos: 1823, }, Class: &stmt.Class{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1781, - EndPos: 1823, + EndLine: 79, + StartPos: 1781, + EndPos: 1823, }, PhpDocComment: "", ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1786, - EndPos: 1787, + EndLine: 79, + StartPos: 1786, + EndPos: 1787, }, }, Extends: &stmt.ClassExtends{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1789, - EndPos: 1799, + EndLine: 79, + StartPos: 1789, + EndPos: 1799, }, ClassName: &name.Name{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1797, - EndPos: 1799, + EndLine: 79, + StartPos: 1797, + EndPos: 1799, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1797, - EndPos: 1799, + EndLine: 79, + StartPos: 1797, + EndPos: 1799, }, Value: "foo", }, @@ -4179,25 +4157,25 @@ func TestPhp7(t *testing.T) { Implements: &stmt.ClassImplements{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1801, - EndPos: 1819, + EndLine: 79, + StartPos: 1801, + EndPos: 1819, }, InterfaceNames: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1812, - EndPos: 1814, + EndLine: 79, + StartPos: 1812, + EndPos: 1814, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1812, - EndPos: 1814, + EndLine: 79, + StartPos: 1812, + EndPos: 1814, }, Value: "bar", }, @@ -4206,17 +4184,17 @@ func TestPhp7(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1817, - EndPos: 1819, + EndLine: 79, + StartPos: 1817, + EndPos: 1819, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 79, - EndLine: 79, - StartPos: 1817, - EndPos: 1819, + EndLine: 79, + StartPos: 1817, + EndPos: 1819, }, Value: "baz", }, @@ -4224,42 +4202,41 @@ func TestPhp7(t *testing.T) { }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, }, &stmt.ConstList{ Position: &position.Position{ StartLine: 81, - EndLine: 81, - StartPos: 1829, - EndPos: 1851, + EndLine: 81, + StartPos: 1829, + EndPos: 1851, }, Consts: []node.Node{ &stmt.Constant{ Position: &position.Position{ StartLine: 81, - EndLine: 81, - StartPos: 1835, - EndPos: 1841, + EndLine: 81, + StartPos: 1835, + EndPos: 1841, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 81, - EndLine: 81, - StartPos: 1835, - EndPos: 1837, + EndLine: 81, + StartPos: 1835, + EndPos: 1837, }, Value: "FOO", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 81, - EndLine: 81, - StartPos: 1841, - EndPos: 1841, + EndLine: 81, + StartPos: 1841, + EndPos: 1841, }, Value: "1", }, @@ -4267,26 +4244,26 @@ func TestPhp7(t *testing.T) { &stmt.Constant{ Position: &position.Position{ StartLine: 81, - EndLine: 81, - StartPos: 1844, - EndPos: 1850, + EndLine: 81, + StartPos: 1844, + EndPos: 1850, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 81, - EndLine: 81, - StartPos: 1844, - EndPos: 1846, + EndLine: 81, + StartPos: 1844, + EndPos: 1846, }, Value: "BAR", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 81, - EndLine: 81, - StartPos: 1850, - EndPos: 1850, + EndLine: 81, + StartPos: 1850, + EndPos: 1850, }, Value: "2", }, @@ -4296,33 +4273,33 @@ func TestPhp7(t *testing.T) { &stmt.While{ Position: &position.Position{ StartLine: 82, - EndLine: 82, - StartPos: 1855, - EndPos: 1877, + EndLine: 82, + StartPos: 1855, + EndPos: 1877, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 82, - EndLine: 82, - StartPos: 1862, - EndPos: 1862, + EndLine: 82, + StartPos: 1862, + EndPos: 1862, }, Value: "1", }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 82, - EndLine: 82, - StartPos: 1865, - EndPos: 1877, + EndLine: 82, + StartPos: 1865, + EndPos: 1877, }, Stmts: []node.Node{ &stmt.Continue{ Position: &position.Position{ StartLine: 82, - EndLine: 82, - StartPos: 1867, - EndPos: 1875, + EndLine: 82, + StartPos: 1867, + EndPos: 1875, }, }, }, @@ -4331,40 +4308,40 @@ func TestPhp7(t *testing.T) { &stmt.While{ Position: &position.Position{ StartLine: 83, - EndLine: 83, - StartPos: 1881, - EndPos: 1905, + EndLine: 83, + StartPos: 1881, + EndPos: 1905, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 83, - EndLine: 83, - StartPos: 1888, - EndPos: 1888, + EndLine: 83, + StartPos: 1888, + EndPos: 1888, }, Value: "1", }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 83, - EndLine: 83, - StartPos: 1891, - EndPos: 1905, + EndLine: 83, + StartPos: 1891, + EndPos: 1905, }, Stmts: []node.Node{ &stmt.Continue{ Position: &position.Position{ StartLine: 83, - EndLine: 83, - StartPos: 1893, - EndPos: 1903, + EndLine: 83, + StartPos: 1893, + EndPos: 1903, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 83, - EndLine: 83, - StartPos: 1902, - EndPos: 1902, + EndLine: 83, + StartPos: 1902, + EndPos: 1902, }, Value: "2", }, @@ -4375,40 +4352,40 @@ func TestPhp7(t *testing.T) { &stmt.While{ Position: &position.Position{ StartLine: 84, - EndLine: 84, - StartPos: 1909, - EndPos: 1934, + EndLine: 84, + StartPos: 1909, + EndPos: 1934, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 84, - EndLine: 84, - StartPos: 1916, - EndPos: 1916, + EndLine: 84, + StartPos: 1916, + EndPos: 1916, }, Value: "1", }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 84, - EndLine: 84, - StartPos: 1919, - EndPos: 1934, + EndLine: 84, + StartPos: 1919, + EndPos: 1934, }, Stmts: []node.Node{ &stmt.Continue{ Position: &position.Position{ StartLine: 84, - EndLine: 84, - StartPos: 1921, - EndPos: 1932, + EndLine: 84, + StartPos: 1921, + EndPos: 1932, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 84, - EndLine: 84, - StartPos: 1930, - EndPos: 1930, + EndLine: 84, + StartPos: 1930, + EndPos: 1930, }, Value: "3", }, @@ -4419,34 +4396,34 @@ func TestPhp7(t *testing.T) { &stmt.Declare{ Position: &position.Position{ StartLine: 85, - EndLine: 85, - StartPos: 1938, - EndPos: 1954, + EndLine: 85, + StartPos: 1938, + EndPos: 1954, }, Consts: []node.Node{ &stmt.Constant{ Position: &position.Position{ StartLine: 85, - EndLine: 85, - StartPos: 1946, - EndPos: 1952, + EndLine: 85, + StartPos: 1946, + EndPos: 1952, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 85, - EndLine: 85, - StartPos: 1946, - EndPos: 1950, + EndLine: 85, + StartPos: 1946, + EndPos: 1950, }, Value: "ticks", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 85, - EndLine: 85, - StartPos: 1952, - EndPos: 1952, + EndLine: 85, + StartPos: 1952, + EndPos: 1952, }, Value: "1", }, @@ -4455,43 +4432,43 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.Nop{ Position: &position.Position{ StartLine: 85, - EndLine: 85, - StartPos: 1954, - EndPos: 1954, + EndLine: 85, + StartPos: 1954, + EndPos: 1954, }, }, }, &stmt.Declare{ Position: &position.Position{ StartLine: 86, - EndLine: 86, - StartPos: 1958, - EndPos: 1976, + EndLine: 86, + StartPos: 1958, + EndPos: 1976, }, Consts: []node.Node{ &stmt.Constant{ Position: &position.Position{ StartLine: 86, - EndLine: 86, - StartPos: 1966, - EndPos: 1972, + EndLine: 86, + StartPos: 1966, + EndPos: 1972, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 86, - EndLine: 86, - StartPos: 1966, - EndPos: 1970, + EndLine: 86, + StartPos: 1966, + EndPos: 1970, }, Value: "ticks", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 86, - EndLine: 86, - StartPos: 1972, - EndPos: 1972, + EndLine: 86, + StartPos: 1972, + EndPos: 1972, }, Value: "1", }, @@ -4500,45 +4477,44 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 86, - EndLine: 86, - StartPos: 1975, - EndPos: 1976, - }, - Stmts: []node.Node{ + EndLine: 86, + StartPos: 1975, + EndPos: 1976, }, + Stmts: []node.Node{}, }, }, &stmt.Declare{ Position: &position.Position{ StartLine: 87, - EndLine: 87, - StartPos: 1980, - EndPos: 2008, + EndLine: 87, + StartPos: 1980, + EndPos: 2008, }, Consts: []node.Node{ &stmt.Constant{ Position: &position.Position{ StartLine: 87, - EndLine: 87, - StartPos: 1988, - EndPos: 1994, + EndLine: 87, + StartPos: 1988, + EndPos: 1994, }, PhpDocComment: "", ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 87, - EndLine: 87, - StartPos: 1988, - EndPos: 1992, + EndLine: 87, + StartPos: 1988, + EndPos: 1992, }, Value: "ticks", }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 87, - EndLine: 87, - StartPos: 1994, - EndPos: 1994, + EndLine: 87, + StartPos: 1994, + EndPos: 1994, }, Value: "1", }, @@ -4547,37 +4523,35 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 87, - EndLine: 87, - StartPos: 1996, - EndPos: 2008, - }, - Stmts: []node.Node{ + EndLine: 87, + StartPos: 1996, + EndPos: 2008, }, + Stmts: []node.Node{}, }, }, &stmt.Do{ Position: &position.Position{ StartLine: 88, - EndLine: 88, - StartPos: 2012, - EndPos: 2026, + EndLine: 88, + StartPos: 2012, + EndPos: 2026, }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 88, - EndLine: 88, - StartPos: 2015, - EndPos: 2016, - }, - Stmts: []node.Node{ + EndLine: 88, + StartPos: 2015, + EndPos: 2016, }, + Stmts: []node.Node{}, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 88, - EndLine: 88, - StartPos: 2024, - EndPos: 2024, + EndLine: 88, + StartPos: 2024, + EndPos: 2024, }, Value: "1", }, @@ -4585,24 +4559,24 @@ func TestPhp7(t *testing.T) { &stmt.Echo{ Position: &position.Position{ StartLine: 89, - EndLine: 89, - StartPos: 2030, - EndPos: 2040, + EndLine: 89, + StartPos: 2030, + EndPos: 2040, }, Exprs: []node.Node{ &expr.Variable{ Position: &position.Position{ StartLine: 89, - EndLine: 89, - StartPos: 2035, - EndPos: 2036, + EndLine: 89, + StartPos: 2035, + EndPos: 2036, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 89, - EndLine: 89, - StartPos: 2035, - EndPos: 2036, + EndLine: 89, + StartPos: 2035, + EndPos: 2036, }, Value: "a", }, @@ -4610,9 +4584,9 @@ func TestPhp7(t *testing.T) { &scalar.Lnumber{ Position: &position.Position{ StartLine: 89, - EndLine: 89, - StartPos: 2039, - EndPos: 2039, + EndLine: 89, + StartPos: 2039, + EndPos: 2039, }, Value: "1", }, @@ -4621,24 +4595,24 @@ func TestPhp7(t *testing.T) { &stmt.Echo{ Position: &position.Position{ StartLine: 90, - EndLine: 90, - StartPos: 2044, - EndPos: 2052, + EndLine: 90, + StartPos: 2044, + EndPos: 2052, }, Exprs: []node.Node{ &expr.Variable{ Position: &position.Position{ StartLine: 90, - EndLine: 90, - StartPos: 2049, - EndPos: 2050, + EndLine: 90, + StartPos: 2049, + EndPos: 2050, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 90, - EndLine: 90, - StartPos: 2049, - EndPos: 2050, + EndLine: 90, + StartPos: 2049, + EndPos: 2050, }, Value: "a", }, @@ -4648,31 +4622,31 @@ func TestPhp7(t *testing.T) { &stmt.For{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2056, - EndPos: 2090, + EndLine: 91, + StartPos: 2056, + EndPos: 2090, }, Init: []node.Node{ &assign.Assign{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2060, - EndPos: 2065, + EndLine: 91, + StartPos: 2060, + EndPos: 2065, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2060, - EndPos: 2061, + EndLine: 91, + StartPos: 2060, + EndPos: 2061, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2060, - EndPos: 2061, + EndLine: 91, + StartPos: 2060, + EndPos: 2061, }, Value: "i", }, @@ -4680,9 +4654,9 @@ func TestPhp7(t *testing.T) { Expression: &scalar.Lnumber{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2065, - EndPos: 2065, + EndLine: 91, + StartPos: 2065, + EndPos: 2065, }, Value: "0", }, @@ -4692,23 +4666,23 @@ func TestPhp7(t *testing.T) { &binary.Smaller{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2068, - EndPos: 2074, + EndLine: 91, + StartPos: 2068, + EndPos: 2074, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2068, - EndPos: 2069, + EndLine: 91, + StartPos: 2068, + EndPos: 2069, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2068, - EndPos: 2069, + EndLine: 91, + StartPos: 2068, + EndPos: 2069, }, Value: "i", }, @@ -4716,9 +4690,9 @@ func TestPhp7(t *testing.T) { Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2073, - EndPos: 2074, + EndLine: 91, + StartPos: 2073, + EndPos: 2074, }, Value: "10", }, @@ -4728,23 +4702,23 @@ func TestPhp7(t *testing.T) { &expr.PostInc{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2077, - EndPos: 2080, + EndLine: 91, + StartPos: 2077, + EndPos: 2080, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2077, - EndPos: 2078, + EndLine: 91, + StartPos: 2077, + EndPos: 2078, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2077, - EndPos: 2078, + EndLine: 91, + StartPos: 2077, + EndPos: 2078, }, Value: "i", }, @@ -4753,23 +4727,23 @@ func TestPhp7(t *testing.T) { &expr.PostInc{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2083, - EndPos: 2086, + EndLine: 91, + StartPos: 2083, + EndPos: 2086, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2083, - EndPos: 2084, + EndLine: 91, + StartPos: 2083, + EndPos: 2084, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2083, - EndPos: 2084, + EndLine: 91, + StartPos: 2083, + EndPos: 2084, }, Value: "i", }, @@ -4779,42 +4753,41 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 91, - EndLine: 91, - StartPos: 2089, - EndPos: 2090, - }, - Stmts: []node.Node{ + EndLine: 91, + StartPos: 2089, + EndPos: 2090, }, + Stmts: []node.Node{}, }, }, &stmt.AltFor{ Position: &position.Position{ StartLine: 92, - EndLine: 92, - StartPos: 2094, - EndPos: 2129, + EndLine: 92, + StartPos: 2094, + EndPos: 2129, }, Cond: []node.Node{ &binary.Smaller{ Position: &position.Position{ StartLine: 92, - EndLine: 92, - StartPos: 2100, - EndPos: 2106, + EndLine: 92, + StartPos: 2100, + EndPos: 2106, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 92, - EndLine: 92, - StartPos: 2100, - EndPos: 2101, + EndLine: 92, + StartPos: 2100, + EndPos: 2101, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 92, - EndLine: 92, - StartPos: 2100, - EndPos: 2101, + EndLine: 92, + StartPos: 2100, + EndPos: 2101, }, Value: "i", }, @@ -4822,9 +4795,9 @@ func TestPhp7(t *testing.T) { Right: &scalar.Lnumber{ Position: &position.Position{ StartLine: 92, - EndLine: 92, - StartPos: 2105, - EndPos: 2106, + EndLine: 92, + StartPos: 2105, + EndPos: 2106, }, Value: "10", }, @@ -4834,23 +4807,23 @@ func TestPhp7(t *testing.T) { &expr.PostInc{ Position: &position.Position{ StartLine: 92, - EndLine: 92, - StartPos: 2109, - EndPos: 2112, + EndLine: 92, + StartPos: 2109, + EndPos: 2112, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 92, - EndLine: 92, - StartPos: 2109, - EndPos: 2110, + EndLine: 92, + StartPos: 2109, + EndPos: 2110, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 92, - EndLine: 92, - StartPos: 2109, - EndPos: 2110, + EndLine: 92, + StartPos: 2109, + EndPos: 2110, }, Value: "i", }, @@ -4859,23 +4832,23 @@ func TestPhp7(t *testing.T) { &expr.PostInc{ Position: &position.Position{ StartLine: 92, - EndLine: 92, - StartPos: 2115, - EndPos: 2118, + EndLine: 92, + StartPos: 2115, + EndPos: 2118, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 92, - EndLine: 92, - StartPos: 2115, - EndPos: 2116, + EndLine: 92, + StartPos: 2115, + EndPos: 2116, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 92, - EndLine: 92, - StartPos: 2115, - EndPos: 2116, + EndLine: 92, + StartPos: 2115, + EndPos: 2116, }, Value: "i", }, @@ -4885,34 +4858,33 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, }, &stmt.Foreach{ Position: &position.Position{ StartLine: 93, - EndLine: 93, - StartPos: 2133, - EndPos: 2153, + EndLine: 93, + StartPos: 2133, + EndPos: 2153, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 93, - EndLine: 93, - StartPos: 2142, - EndPos: 2143, + EndLine: 93, + StartPos: 2142, + EndPos: 2143, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 93, - EndLine: 93, - StartPos: 2142, - EndPos: 2143, + EndLine: 93, + StartPos: 2142, + EndPos: 2143, }, Value: "a", }, @@ -4920,16 +4892,16 @@ func TestPhp7(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 93, - EndLine: 93, - StartPos: 2148, - EndPos: 2149, + EndLine: 93, + StartPos: 2148, + EndPos: 2149, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 93, - EndLine: 93, - StartPos: 2148, - EndPos: 2149, + EndLine: 93, + StartPos: 2148, + EndPos: 2149, }, Value: "v", }, @@ -4937,34 +4909,33 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 93, - EndLine: 93, - StartPos: 2152, - EndPos: 2153, - }, - Stmts: []node.Node{ + EndLine: 93, + StartPos: 2152, + EndPos: 2153, }, + Stmts: []node.Node{}, }, }, &stmt.AltForeach{ Position: &position.Position{ StartLine: 94, - EndLine: 94, - StartPos: 2157, - EndPos: 2188, + EndLine: 94, + StartPos: 2157, + EndPos: 2188, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 94, - EndLine: 94, - StartPos: 2166, - EndPos: 2167, + EndLine: 94, + StartPos: 2166, + EndPos: 2167, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 94, - EndLine: 94, - StartPos: 2166, - EndPos: 2167, + EndLine: 94, + StartPos: 2166, + EndPos: 2167, }, Value: "a", }, @@ -4972,16 +4943,16 @@ func TestPhp7(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 94, - EndLine: 94, - StartPos: 2172, - EndPos: 2173, + EndLine: 94, + StartPos: 2172, + EndPos: 2173, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 94, - EndLine: 94, - StartPos: 2172, - EndPos: 2173, + EndLine: 94, + StartPos: 2172, + EndPos: 2173, }, Value: "v", }, @@ -4989,34 +4960,33 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: -1, - EndLine: -1, - StartPos: -1, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: -1, + EndPos: -1, }, + Stmts: []node.Node{}, }, }, &stmt.Foreach{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2192, - EndPos: 2218, + EndLine: 95, + StartPos: 2192, + EndPos: 2218, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2201, - EndPos: 2202, + EndLine: 95, + StartPos: 2201, + EndPos: 2202, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2201, - EndPos: 2202, + EndLine: 95, + StartPos: 2201, + EndPos: 2202, }, Value: "a", }, @@ -5024,16 +4994,16 @@ func TestPhp7(t *testing.T) { Key: &expr.Variable{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2207, - EndPos: 2208, + EndLine: 95, + StartPos: 2207, + EndPos: 2208, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2207, - EndPos: 2208, + EndLine: 95, + StartPos: 2207, + EndPos: 2208, }, Value: "k", }, @@ -5041,16 +5011,16 @@ func TestPhp7(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2213, - EndPos: 2214, + EndLine: 95, + StartPos: 2213, + EndPos: 2214, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2213, - EndPos: 2214, + EndLine: 95, + StartPos: 2213, + EndPos: 2214, }, Value: "v", }, @@ -5058,34 +5028,33 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 95, - EndLine: 95, - StartPos: 2217, - EndPos: 2218, - }, - Stmts: []node.Node{ + EndLine: 95, + StartPos: 2217, + EndPos: 2218, }, + Stmts: []node.Node{}, }, }, &stmt.Foreach{ Position: &position.Position{ StartLine: 96, - EndLine: 96, - StartPos: 2222, - EndPos: 2249, + EndLine: 96, + StartPos: 2222, + EndPos: 2249, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 96, - EndLine: 96, - StartPos: 2231, - EndPos: 2232, + EndLine: 96, + StartPos: 2231, + EndPos: 2232, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 96, - EndLine: 96, - StartPos: 2231, - EndPos: 2232, + EndLine: 96, + StartPos: 2231, + EndPos: 2232, }, Value: "a", }, @@ -5093,16 +5062,16 @@ func TestPhp7(t *testing.T) { Key: &expr.Variable{ Position: &position.Position{ StartLine: 96, - EndLine: 96, - StartPos: 2237, - EndPos: 2238, + EndLine: 96, + StartPos: 2237, + EndPos: 2238, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 96, - EndLine: 96, - StartPos: 2237, - EndPos: 2238, + EndLine: 96, + StartPos: 2237, + EndPos: 2238, }, Value: "k", }, @@ -5110,23 +5079,23 @@ func TestPhp7(t *testing.T) { Variable: &expr.Reference{ Position: &position.Position{ StartLine: 96, - EndLine: 96, - StartPos: 2243, - EndPos: 2245, + EndLine: 96, + StartPos: 2243, + EndPos: 2245, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 96, - EndLine: 96, - StartPos: 2244, - EndPos: 2245, + EndLine: 96, + StartPos: 2244, + EndPos: 2245, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 96, - EndLine: 96, - StartPos: 2244, - EndPos: 2245, + EndLine: 96, + StartPos: 2244, + EndPos: 2245, }, Value: "v", }, @@ -5135,34 +5104,33 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 96, - EndLine: 96, - StartPos: 2248, - EndPos: 2249, - }, - Stmts: []node.Node{ + EndLine: 96, + StartPos: 2248, + EndPos: 2249, }, + Stmts: []node.Node{}, }, }, &stmt.Foreach{ Position: &position.Position{ StartLine: 97, - EndLine: 97, - StartPos: 2253, - EndPos: 2285, + EndLine: 97, + StartPos: 2253, + EndPos: 2285, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 97, - EndLine: 97, - StartPos: 2262, - EndPos: 2263, + EndLine: 97, + StartPos: 2262, + EndPos: 2263, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 97, - EndLine: 97, - StartPos: 2262, - EndPos: 2263, + EndLine: 97, + StartPos: 2262, + EndPos: 2263, }, Value: "a", }, @@ -5170,16 +5138,16 @@ func TestPhp7(t *testing.T) { Key: &expr.Variable{ Position: &position.Position{ StartLine: 97, - EndLine: 97, - StartPos: 2268, - EndPos: 2269, + EndLine: 97, + StartPos: 2268, + EndPos: 2269, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 97, - EndLine: 97, - StartPos: 2268, - EndPos: 2269, + EndLine: 97, + StartPos: 2268, + EndPos: 2269, }, Value: "k", }, @@ -5187,31 +5155,31 @@ func TestPhp7(t *testing.T) { Variable: &expr.List{ Position: &position.Position{ StartLine: 97, - EndLine: 97, - StartPos: 2274, - EndPos: 2281, + EndLine: 97, + StartPos: 2274, + EndPos: 2281, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 97, - EndLine: 97, - StartPos: 2279, - EndPos: 2280, + EndLine: 97, + StartPos: 2279, + EndPos: 2280, }, Val: &expr.Variable{ Position: &position.Position{ StartLine: 97, - EndLine: 97, - StartPos: 2279, - EndPos: 2280, + EndLine: 97, + StartPos: 2279, + EndPos: 2280, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 97, - EndLine: 97, - StartPos: 2279, - EndPos: 2280, + EndLine: 97, + StartPos: 2279, + EndPos: 2280, }, Value: "v", }, @@ -5222,34 +5190,33 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 97, - EndLine: 97, - StartPos: 2284, - EndPos: 2285, - }, - Stmts: []node.Node{ + EndLine: 97, + StartPos: 2284, + EndPos: 2285, }, + Stmts: []node.Node{}, }, }, &stmt.Foreach{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2289, - EndPos: 2317, + EndLine: 98, + StartPos: 2289, + EndPos: 2317, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2298, - EndPos: 2299, + EndLine: 98, + StartPos: 2298, + EndPos: 2299, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2298, - EndPos: 2299, + EndLine: 98, + StartPos: 2298, + EndPos: 2299, }, Value: "a", }, @@ -5257,16 +5224,16 @@ func TestPhp7(t *testing.T) { Key: &expr.Variable{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2304, - EndPos: 2305, + EndLine: 98, + StartPos: 2304, + EndPos: 2305, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2304, - EndPos: 2305, + EndLine: 98, + StartPos: 2304, + EndPos: 2305, }, Value: "k", }, @@ -5274,31 +5241,31 @@ func TestPhp7(t *testing.T) { Variable: &expr.ShortList{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2310, - EndPos: 2313, + EndLine: 98, + StartPos: 2310, + EndPos: 2313, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2311, - EndPos: 2312, + EndLine: 98, + StartPos: 2311, + EndPos: 2312, }, Val: &expr.Variable{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2311, - EndPos: 2312, + EndLine: 98, + StartPos: 2311, + EndPos: 2312, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2311, - EndPos: 2312, + EndLine: 98, + StartPos: 2311, + EndPos: 2312, }, Value: "v", }, @@ -5309,50 +5276,48 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 98, - EndLine: 98, - StartPos: 2316, - EndPos: 2317, - }, - Stmts: []node.Node{ + EndLine: 98, + StartPos: 2316, + EndPos: 2317, }, + Stmts: []node.Node{}, }, }, &stmt.Function{ Position: &position.Position{ StartLine: 99, - EndLine: 99, - StartPos: 2321, - EndPos: 2337, + EndLine: 99, + StartPos: 2321, + EndPos: 2337, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", FunctionName: &node.Identifier{ Position: &position.Position{ StartLine: 99, - EndLine: 99, - StartPos: 2330, - EndPos: 2332, + EndLine: 99, + StartPos: 2330, + EndPos: 2332, }, Value: "foo", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Function{ Position: &position.Position{ StartLine: 100, - EndLine: 100, - StartPos: 2341, - EndPos: 2364, + EndLine: 100, + StartPos: 2341, + EndPos: 2364, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", FunctionName: &node.Identifier{ Position: &position.Position{ StartLine: 100, - EndLine: 100, - StartPos: 2350, - EndPos: 2352, + EndLine: 100, + StartPos: 2350, + EndPos: 2352, }, Value: "foo", }, @@ -5360,9 +5325,9 @@ func TestPhp7(t *testing.T) { &stmt.Return{ Position: &position.Position{ StartLine: 100, - EndLine: 100, - StartPos: 2357, - EndPos: 2363, + EndLine: 100, + StartPos: 2357, + EndPos: 2363, }, }, }, @@ -5370,18 +5335,18 @@ func TestPhp7(t *testing.T) { &stmt.Function{ Position: &position.Position{ StartLine: 101, - EndLine: 101, - StartPos: 2368, - EndPos: 2394, + EndLine: 101, + StartPos: 2368, + EndPos: 2394, }, - ReturnsRef: true, + ReturnsRef: true, PhpDocComment: "", FunctionName: &node.Identifier{ Position: &position.Position{ StartLine: 101, - EndLine: 101, - StartPos: 2378, - EndPos: 2380, + EndLine: 101, + StartPos: 2378, + EndPos: 2380, }, Value: "foo", }, @@ -5389,16 +5354,16 @@ func TestPhp7(t *testing.T) { &stmt.Return{ Position: &position.Position{ StartLine: 101, - EndLine: 101, - StartPos: 2385, - EndPos: 2393, + EndLine: 101, + StartPos: 2385, + EndPos: 2393, }, Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 101, - EndLine: 101, - StartPos: 2392, - EndPos: 2392, + EndLine: 101, + StartPos: 2392, + EndPos: 2392, }, Value: "1", }, @@ -5408,64 +5373,63 @@ func TestPhp7(t *testing.T) { &stmt.Function{ Position: &position.Position{ StartLine: 102, - EndLine: 102, - StartPos: 2398, - EndPos: 2421, + EndLine: 102, + StartPos: 2398, + EndPos: 2421, }, - ReturnsRef: true, + ReturnsRef: true, PhpDocComment: "", FunctionName: &node.Identifier{ Position: &position.Position{ StartLine: 102, - EndLine: 102, - StartPos: 2408, - EndPos: 2410, + EndLine: 102, + StartPos: 2408, + EndPos: 2410, }, Value: "foo", }, ReturnType: &name.Name{ Position: &position.Position{ StartLine: 102, - EndLine: 102, - StartPos: 2415, - EndPos: 2418, + EndLine: 102, + StartPos: 2415, + EndPos: 2418, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 102, - EndLine: 102, - StartPos: 2415, - EndPos: 2418, + EndLine: 102, + StartPos: 2415, + EndPos: 2418, }, Value: "void", }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Global{ Position: &position.Position{ StartLine: 103, - EndLine: 103, - StartPos: 2425, - EndPos: 2438, + EndLine: 103, + StartPos: 2425, + EndPos: 2438, }, Vars: []node.Node{ &expr.Variable{ Position: &position.Position{ StartLine: 103, - EndLine: 103, - StartPos: 2432, - EndPos: 2433, + EndLine: 103, + StartPos: 2432, + EndPos: 2433, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 103, - EndLine: 103, - StartPos: 2432, - EndPos: 2433, + EndLine: 103, + StartPos: 2432, + EndPos: 2433, }, Value: "a", }, @@ -5473,16 +5437,16 @@ func TestPhp7(t *testing.T) { &expr.Variable{ Position: &position.Position{ StartLine: 103, - EndLine: 103, - StartPos: 2436, - EndPos: 2437, + EndLine: 103, + StartPos: 2436, + EndPos: 2437, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 103, - EndLine: 103, - StartPos: 2436, - EndPos: 2437, + EndLine: 103, + StartPos: 2436, + EndPos: 2437, }, Value: "b", }, @@ -5492,16 +5456,16 @@ func TestPhp7(t *testing.T) { &stmt.Label{ Position: &position.Position{ StartLine: 104, - EndLine: 104, - StartPos: 2442, - EndPos: 2443, + EndLine: 104, + StartPos: 2442, + EndPos: 2443, }, LabelName: &node.Identifier{ Position: &position.Position{ StartLine: 104, - EndLine: 104, - StartPos: 2442, - EndPos: 2442, + EndLine: 104, + StartPos: 2442, + EndPos: 2442, }, Value: "a", }, @@ -5509,16 +5473,16 @@ func TestPhp7(t *testing.T) { &stmt.Goto{ Position: &position.Position{ StartLine: 105, - EndLine: 105, - StartPos: 2448, - EndPos: 2454, + EndLine: 105, + StartPos: 2448, + EndPos: 2454, }, Label: &node.Identifier{ Position: &position.Position{ StartLine: 105, - EndLine: 105, - StartPos: 2453, - EndPos: 2453, + EndLine: 105, + StartPos: 2453, + EndPos: 2453, }, Value: "a", }, @@ -5526,31 +5490,31 @@ func TestPhp7(t *testing.T) { &stmt.HaltCompiler{ Position: &position.Position{ StartLine: 106, - EndLine: 106, - StartPos: 2458, - EndPos: 2475, + EndLine: 106, + StartPos: 2458, + EndPos: 2475, }, }, &stmt.If{ Position: &position.Position{ StartLine: 107, - EndLine: 107, - StartPos: 2479, - EndPos: 2488, + EndLine: 107, + StartPos: 2479, + EndPos: 2488, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 107, - EndLine: 107, - StartPos: 2483, - EndPos: 2484, + EndLine: 107, + StartPos: 2483, + EndPos: 2484, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 107, - EndLine: 107, - StartPos: 2483, - EndPos: 2484, + EndLine: 107, + StartPos: 2483, + EndPos: 2484, }, Value: "a", }, @@ -5558,34 +5522,33 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 107, - EndLine: 107, - StartPos: 2487, - EndPos: 2488, - }, - Stmts: []node.Node{ + EndLine: 107, + StartPos: 2487, + EndPos: 2488, }, + Stmts: []node.Node{}, }, }, &stmt.If{ Position: &position.Position{ StartLine: 108, - EndLine: 108, - StartPos: 2492, - EndPos: 2516, + EndLine: 108, + StartPos: 2492, + EndPos: 2516, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 108, - EndLine: 108, - StartPos: 2496, - EndPos: 2497, + EndLine: 108, + StartPos: 2496, + EndPos: 2497, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 108, - EndLine: 108, - StartPos: 2496, - EndPos: 2497, + EndLine: 108, + StartPos: 2496, + EndPos: 2497, }, Value: "a", }, @@ -5593,34 +5556,33 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 108, - EndLine: 108, - StartPos: 2500, - EndPos: 2501, - }, - Stmts: []node.Node{ + EndLine: 108, + StartPos: 2500, + EndPos: 2501, }, + Stmts: []node.Node{}, }, ElseIf: []node.Node{ &stmt.ElseIf{ Position: &position.Position{ StartLine: 108, - EndLine: 108, - StartPos: 2503, - EndPos: 2516, + EndLine: 108, + StartPos: 2503, + EndPos: 2516, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 108, - EndLine: 108, - StartPos: 2511, - EndPos: 2512, + EndLine: 108, + StartPos: 2511, + EndPos: 2512, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 108, - EndLine: 108, - StartPos: 2511, - EndPos: 2512, + EndLine: 108, + StartPos: 2511, + EndPos: 2512, }, Value: "b", }, @@ -5628,12 +5590,11 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 108, - EndLine: 108, - StartPos: 2515, - EndPos: 2516, - }, - Stmts: []node.Node{ + EndLine: 108, + StartPos: 2515, + EndPos: 2516, }, + Stmts: []node.Node{}, }, }, }, @@ -5641,23 +5602,23 @@ func TestPhp7(t *testing.T) { &stmt.If{ Position: &position.Position{ StartLine: 109, - EndLine: 109, - StartPos: 2520, - EndPos: 2537, + EndLine: 109, + StartPos: 2520, + EndPos: 2537, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 109, - EndLine: 109, - StartPos: 2524, - EndPos: 2525, + EndLine: 109, + StartPos: 2524, + EndPos: 2525, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 109, - EndLine: 109, - StartPos: 2524, - EndPos: 2525, + EndLine: 109, + StartPos: 2524, + EndPos: 2525, }, Value: "a", }, @@ -5665,52 +5626,50 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 109, - EndLine: 109, - StartPos: 2528, - EndPos: 2529, - }, - Stmts: []node.Node{ + EndLine: 109, + StartPos: 2528, + EndPos: 2529, }, + Stmts: []node.Node{}, }, Else: &stmt.Else{ Position: &position.Position{ StartLine: 109, - EndLine: 109, - StartPos: 2531, - EndPos: 2537, + EndLine: 109, + StartPos: 2531, + EndPos: 2537, }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 109, - EndLine: 109, - StartPos: 2536, - EndPos: 2537, - }, - Stmts: []node.Node{ + EndLine: 109, + StartPos: 2536, + EndPos: 2537, }, + Stmts: []node.Node{}, }, }, }, &stmt.If{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2541, - EndPos: 2588, + EndLine: 110, + StartPos: 2541, + EndPos: 2588, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2545, - EndPos: 2546, + EndLine: 110, + StartPos: 2545, + EndPos: 2546, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2545, - EndPos: 2546, + EndLine: 110, + StartPos: 2545, + EndPos: 2546, }, Value: "a", }, @@ -5718,34 +5677,33 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2549, - EndPos: 2550, - }, - Stmts: []node.Node{ + EndLine: 110, + StartPos: 2549, + EndPos: 2550, }, + Stmts: []node.Node{}, }, ElseIf: []node.Node{ &stmt.ElseIf{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2552, - EndPos: 2565, + EndLine: 110, + StartPos: 2552, + EndPos: 2565, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2560, - EndPos: 2561, + EndLine: 110, + StartPos: 2560, + EndPos: 2561, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2560, - EndPos: 2561, + EndLine: 110, + StartPos: 2560, + EndPos: 2561, }, Value: "b", }, @@ -5753,34 +5711,33 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2564, - EndPos: 2565, - }, - Stmts: []node.Node{ + EndLine: 110, + StartPos: 2564, + EndPos: 2565, }, + Stmts: []node.Node{}, }, }, &stmt.ElseIf{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2567, - EndPos: 2580, + EndLine: 110, + StartPos: 2567, + EndPos: 2580, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2575, - EndPos: 2576, + EndLine: 110, + StartPos: 2575, + EndPos: 2576, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2575, - EndPos: 2576, + EndLine: 110, + StartPos: 2575, + EndPos: 2576, }, Value: "c", }, @@ -5788,54 +5745,52 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2579, - EndPos: 2580, - }, - Stmts: []node.Node{ + EndLine: 110, + StartPos: 2579, + EndPos: 2580, }, + Stmts: []node.Node{}, }, }, }, Else: &stmt.Else{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2582, - EndPos: 2588, + EndLine: 110, + StartPos: 2582, + EndPos: 2588, }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 110, - EndLine: 110, - StartPos: 2587, - EndPos: 2588, - }, - Stmts: []node.Node{ + EndLine: 110, + StartPos: 2587, + EndPos: 2588, }, + Stmts: []node.Node{}, }, }, }, &stmt.If{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2592, - EndPos: 2640, + EndLine: 111, + StartPos: 2592, + EndPos: 2640, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2596, - EndPos: 2597, + EndLine: 111, + StartPos: 2596, + EndPos: 2597, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2596, - EndPos: 2597, + EndLine: 111, + StartPos: 2596, + EndPos: 2597, }, Value: "a", }, @@ -5843,34 +5798,33 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2600, - EndPos: 2601, - }, - Stmts: []node.Node{ + EndLine: 111, + StartPos: 2600, + EndPos: 2601, }, + Stmts: []node.Node{}, }, ElseIf: []node.Node{ &stmt.ElseIf{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2603, - EndPos: 2616, + EndLine: 111, + StartPos: 2603, + EndPos: 2616, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2611, - EndPos: 2612, + EndLine: 111, + StartPos: 2611, + EndPos: 2612, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2611, - EndPos: 2612, + EndLine: 111, + StartPos: 2611, + EndPos: 2612, }, Value: "b", }, @@ -5878,42 +5832,41 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2615, - EndPos: 2616, - }, - Stmts: []node.Node{ + EndLine: 111, + StartPos: 2615, + EndPos: 2616, }, + Stmts: []node.Node{}, }, }, }, Else: &stmt.Else{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2618, - EndPos: 2640, + EndLine: 111, + StartPos: 2618, + EndPos: 2640, }, Stmt: &stmt.If{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2623, - EndPos: 2640, + EndLine: 111, + StartPos: 2623, + EndPos: 2640, }, Cond: &expr.Variable{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2627, - EndPos: 2628, + EndLine: 111, + StartPos: 2627, + EndPos: 2628, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2627, - EndPos: 2628, + EndLine: 111, + StartPos: 2627, + EndPos: 2628, }, Value: "c", }, @@ -5921,29 +5874,27 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2631, - EndPos: 2632, - }, - Stmts: []node.Node{ + EndLine: 111, + StartPos: 2631, + EndPos: 2632, }, + Stmts: []node.Node{}, }, Else: &stmt.Else{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2634, - EndPos: 2640, + EndLine: 111, + StartPos: 2634, + EndPos: 2640, }, Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 111, - EndLine: 111, - StartPos: 2639, - EndPos: 2640, - }, - Stmts: []node.Node{ + EndLine: 111, + StartPos: 2639, + EndPos: 2640, }, + Stmts: []node.Node{}, }, }, }, @@ -5952,79 +5903,78 @@ func TestPhp7(t *testing.T) { &stmt.Nop{ Position: &position.Position{ StartLine: 112, - EndLine: 112, - StartPos: 2644, - EndPos: 2645, + EndLine: 112, + StartPos: 2644, + EndPos: 2645, }, }, &stmt.InlineHtml{ Position: &position.Position{ StartLine: 112, - EndLine: 112, - StartPos: 2647, - EndPos: 2658, + EndLine: 112, + StartPos: 2647, + EndPos: 2658, }, Value: " ", }, &stmt.Interface{ Position: &position.Position{ StartLine: 113, - EndLine: 113, - StartPos: 2664, - EndPos: 2679, + EndLine: 113, + StartPos: 2664, + EndPos: 2679, }, PhpDocComment: "", InterfaceName: &node.Identifier{ Position: &position.Position{ StartLine: 113, - EndLine: 113, - StartPos: 2674, - EndPos: 2676, + EndLine: 113, + StartPos: 2674, + EndPos: 2676, }, Value: "Foo", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Interface{ Position: &position.Position{ StartLine: 114, - EndLine: 114, - StartPos: 2683, - EndPos: 2710, + EndLine: 114, + StartPos: 2683, + EndPos: 2710, }, PhpDocComment: "", InterfaceName: &node.Identifier{ Position: &position.Position{ StartLine: 114, - EndLine: 114, - StartPos: 2693, - EndPos: 2695, + EndLine: 114, + StartPos: 2693, + EndPos: 2695, }, Value: "Foo", }, Extends: &stmt.InterfaceExtends{ Position: &position.Position{ StartLine: 114, - EndLine: 114, - StartPos: 2697, - EndPos: 2707, + EndLine: 114, + StartPos: 2697, + EndPos: 2707, }, InterfaceNames: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 114, - EndLine: 114, - StartPos: 2705, - EndPos: 2707, + EndLine: 114, + StartPos: 2705, + EndPos: 2707, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 114, - EndLine: 114, - StartPos: 2705, - EndPos: 2707, + EndLine: 114, + StartPos: 2705, + EndPos: 2707, }, Value: "Bar", }, @@ -6032,48 +5982,47 @@ func TestPhp7(t *testing.T) { }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Interface{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2714, - EndPos: 2746, + EndLine: 115, + StartPos: 2714, + EndPos: 2746, }, PhpDocComment: "", InterfaceName: &node.Identifier{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2724, - EndPos: 2726, + EndLine: 115, + StartPos: 2724, + EndPos: 2726, }, Value: "Foo", }, Extends: &stmt.InterfaceExtends{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2728, - EndPos: 2743, + EndLine: 115, + StartPos: 2728, + EndPos: 2743, }, InterfaceNames: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2736, - EndPos: 2738, + EndLine: 115, + StartPos: 2736, + EndPos: 2738, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2736, - EndPos: 2738, + EndLine: 115, + StartPos: 2736, + EndPos: 2738, }, Value: "Bar", }, @@ -6082,17 +6031,17 @@ func TestPhp7(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2741, - EndPos: 2743, + EndLine: 115, + StartPos: 2741, + EndPos: 2743, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 115, - EndLine: 115, - StartPos: 2741, - EndPos: 2743, + EndLine: 115, + StartPos: 2741, + EndPos: 2743, }, Value: "Baz", }, @@ -6100,30 +6049,29 @@ func TestPhp7(t *testing.T) { }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Namespace{ Position: &position.Position{ StartLine: 116, - EndLine: 116, - StartPos: 2750, - EndPos: 2763, + EndLine: 116, + StartPos: 2750, + EndPos: 2763, }, NamespaceName: &name.Name{ Position: &position.Position{ StartLine: 116, - EndLine: 116, - StartPos: 2760, - EndPos: 2762, + EndLine: 116, + StartPos: 2760, + EndPos: 2762, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 116, - EndLine: 116, - StartPos: 2760, - EndPos: 2762, + EndLine: 116, + StartPos: 2760, + EndPos: 2762, }, Value: "Foo", }, @@ -6133,56 +6081,54 @@ func TestPhp7(t *testing.T) { &stmt.Namespace{ Position: &position.Position{ StartLine: 117, - EndLine: 117, - StartPos: 2767, - EndPos: 2782, + EndLine: 117, + StartPos: 2767, + EndPos: 2782, }, NamespaceName: &name.Name{ Position: &position.Position{ StartLine: 117, - EndLine: 117, - StartPos: 2777, - EndPos: 2779, + EndLine: 117, + StartPos: 2777, + EndPos: 2779, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 117, - EndLine: 117, - StartPos: 2777, - EndPos: 2779, + EndLine: 117, + StartPos: 2777, + EndPos: 2779, }, Value: "Foo", }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Namespace{ Position: &position.Position{ StartLine: 118, - EndLine: 118, - StartPos: 2786, - EndPos: 2797, - }, - Stmts: []node.Node{ + EndLine: 118, + StartPos: 2786, + EndPos: 2797, }, + Stmts: []node.Node{}, }, &stmt.Class{ Position: &position.Position{ StartLine: 119, - EndLine: 119, - StartPos: 2801, - EndPos: 2819, + EndLine: 119, + StartPos: 2801, + EndPos: 2819, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 119, - EndLine: 119, - StartPos: 2807, - EndPos: 2809, + EndLine: 119, + StartPos: 2807, + EndPos: 2809, }, Value: "foo", }, @@ -6190,17 +6136,17 @@ func TestPhp7(t *testing.T) { &stmt.PropertyList{ Position: &position.Position{ StartLine: 119, - EndLine: 119, - StartPos: 2812, - EndPos: 2818, + EndLine: 119, + StartPos: 2812, + EndPos: 2818, }, Modifiers: []node.Node{ &node.Identifier{ Position: &position.Position{ StartLine: 119, - EndLine: 119, - StartPos: 2812, - EndPos: 2814, + EndLine: 119, + StartPos: 2812, + EndPos: 2814, }, Value: "var", }, @@ -6209,24 +6155,24 @@ func TestPhp7(t *testing.T) { &stmt.Property{ Position: &position.Position{ StartLine: 119, - EndLine: 119, - StartPos: 2816, - EndPos: 2817, + EndLine: 119, + StartPos: 2816, + EndPos: 2817, }, PhpDocComment: "", Variable: &expr.Variable{ Position: &position.Position{ StartLine: 119, - EndLine: 119, - StartPos: 2816, - EndPos: 2817, + EndLine: 119, + StartPos: 2816, + EndPos: 2817, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 119, - EndLine: 119, - StartPos: 2816, - EndPos: 2817, + EndLine: 119, + StartPos: 2816, + EndPos: 2817, }, Value: "a", }, @@ -6239,17 +6185,17 @@ func TestPhp7(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 120, - EndLine: 120, - StartPos: 2823, - EndPos: 2859, + EndLine: 120, + StartPos: 2823, + EndPos: 2859, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 120, - EndLine: 120, - StartPos: 2829, - EndPos: 2831, + EndLine: 120, + StartPos: 2829, + EndPos: 2831, }, Value: "foo", }, @@ -6257,26 +6203,26 @@ func TestPhp7(t *testing.T) { &stmt.PropertyList{ Position: &position.Position{ StartLine: 120, - EndLine: 120, - StartPos: 2834, - EndPos: 2858, + EndLine: 120, + StartPos: 2834, + EndPos: 2858, }, Modifiers: []node.Node{ &node.Identifier{ Position: &position.Position{ StartLine: 120, - EndLine: 120, - StartPos: 2834, - EndPos: 2839, + EndLine: 120, + StartPos: 2834, + EndPos: 2839, }, Value: "public", }, &node.Identifier{ Position: &position.Position{ StartLine: 120, - EndLine: 120, - StartPos: 2841, - EndPos: 2846, + EndLine: 120, + StartPos: 2841, + EndPos: 2846, }, Value: "static", }, @@ -6285,24 +6231,24 @@ func TestPhp7(t *testing.T) { &stmt.Property{ Position: &position.Position{ StartLine: 120, - EndLine: 120, - StartPos: 2848, - EndPos: 2849, + EndLine: 120, + StartPos: 2848, + EndPos: 2849, }, PhpDocComment: "", Variable: &expr.Variable{ Position: &position.Position{ StartLine: 120, - EndLine: 120, - StartPos: 2848, - EndPos: 2849, + EndLine: 120, + StartPos: 2848, + EndPos: 2849, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 120, - EndLine: 120, - StartPos: 2848, - EndPos: 2849, + EndLine: 120, + StartPos: 2848, + EndPos: 2849, }, Value: "a", }, @@ -6311,24 +6257,24 @@ func TestPhp7(t *testing.T) { &stmt.Property{ Position: &position.Position{ StartLine: 120, - EndLine: 120, - StartPos: 2852, - EndPos: 2857, + EndLine: 120, + StartPos: 2852, + EndPos: 2857, }, PhpDocComment: "", Variable: &expr.Variable{ Position: &position.Position{ StartLine: 120, - EndLine: 120, - StartPos: 2852, - EndPos: 2853, + EndLine: 120, + StartPos: 2852, + EndPos: 2853, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 120, - EndLine: 120, - StartPos: 2852, - EndPos: 2853, + EndLine: 120, + StartPos: 2852, + EndPos: 2853, }, Value: "b", }, @@ -6336,9 +6282,9 @@ func TestPhp7(t *testing.T) { Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 120, - EndLine: 120, - StartPos: 2857, - EndPos: 2857, + EndLine: 120, + StartPos: 2857, + EndPos: 2857, }, Value: "1", }, @@ -6350,31 +6296,31 @@ func TestPhp7(t *testing.T) { &stmt.Static{ Position: &position.Position{ StartLine: 121, - EndLine: 121, - StartPos: 2863, - EndPos: 2880, + EndLine: 121, + StartPos: 2863, + EndPos: 2880, }, Vars: []node.Node{ &stmt.StaticVar{ Position: &position.Position{ StartLine: 121, - EndLine: 121, - StartPos: 2870, - EndPos: 2871, + EndLine: 121, + StartPos: 2870, + EndPos: 2871, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 121, - EndLine: 121, - StartPos: 2870, - EndPos: 2871, + EndLine: 121, + StartPos: 2870, + EndPos: 2871, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 121, - EndLine: 121, - StartPos: 2870, - EndPos: 2871, + EndLine: 121, + StartPos: 2870, + EndPos: 2871, }, Value: "a", }, @@ -6383,23 +6329,23 @@ func TestPhp7(t *testing.T) { &stmt.StaticVar{ Position: &position.Position{ StartLine: 121, - EndLine: 121, - StartPos: 2874, - EndPos: 2879, + EndLine: 121, + StartPos: 2874, + EndPos: 2879, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 121, - EndLine: 121, - StartPos: 2874, - EndPos: 2875, + EndLine: 121, + StartPos: 2874, + EndPos: 2875, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 121, - EndLine: 121, - StartPos: 2874, - EndPos: 2875, + EndLine: 121, + StartPos: 2874, + EndPos: 2875, }, Value: "b", }, @@ -6407,9 +6353,9 @@ func TestPhp7(t *testing.T) { Expr: &scalar.Lnumber{ Position: &position.Position{ StartLine: 121, - EndLine: 121, - StartPos: 2879, - EndPos: 2879, + EndLine: 121, + StartPos: 2879, + EndPos: 2879, }, Value: "1", }, @@ -6419,74 +6365,71 @@ func TestPhp7(t *testing.T) { &stmt.AltSwitch{ Position: &position.Position{ StartLine: 123, - EndLine: 127, - StartPos: 2885, - EndPos: 2943, + EndLine: 127, + StartPos: 2885, + EndPos: 2943, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 123, - EndLine: 123, - StartPos: 2893, - EndPos: 2893, + EndLine: 123, + StartPos: 2893, + EndPos: 2893, }, Value: "1", }, CaseList: &stmt.CaseList{ Position: &position.Position{ StartLine: 124, - EndLine: -1, - StartPos: 2901, - EndPos: -1, + EndLine: -1, + StartPos: 2901, + EndPos: -1, }, Cases: []node.Node{ &stmt.Case{ Position: &position.Position{ StartLine: 124, - EndLine: -1, - StartPos: 2901, - EndPos: -1, + EndLine: -1, + StartPos: 2901, + EndPos: -1, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 124, - EndLine: 124, - StartPos: 2906, - EndPos: 2906, + EndLine: 124, + StartPos: 2906, + EndPos: 2906, }, Value: "1", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Default{ Position: &position.Position{ StartLine: 125, - EndLine: -1, - StartPos: 2912, - EndPos: -1, - }, - Stmts: []node.Node{ + EndLine: -1, + StartPos: 2912, + EndPos: -1, }, + Stmts: []node.Node{}, }, &stmt.Case{ Position: &position.Position{ StartLine: 126, - EndLine: -1, - StartPos: 2924, - EndPos: -1, + EndLine: -1, + StartPos: 2924, + EndPos: -1, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 126, - EndLine: 126, - StartPos: 2929, - EndPos: 2929, + EndLine: 126, + StartPos: 2929, + EndPos: 2929, }, Value: "2", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, }, @@ -6494,64 +6437,62 @@ func TestPhp7(t *testing.T) { &stmt.AltSwitch{ Position: &position.Position{ StartLine: 129, - EndLine: 132, - StartPos: 2948, - EndPos: 2995, + EndLine: 132, + StartPos: 2948, + EndPos: 2995, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 129, - EndLine: 129, - StartPos: 2956, - EndPos: 2956, + EndLine: 129, + StartPos: 2956, + EndPos: 2956, }, Value: "1", }, CaseList: &stmt.CaseList{ Position: &position.Position{ StartLine: 130, - EndLine: -1, - StartPos: 2965, - EndPos: -1, + EndLine: -1, + StartPos: 2965, + EndPos: -1, }, Cases: []node.Node{ &stmt.Case{ Position: &position.Position{ StartLine: 130, - EndLine: -1, - StartPos: 2965, - EndPos: -1, + EndLine: -1, + StartPos: 2965, + EndPos: -1, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 130, - EndLine: 130, - StartPos: 2970, - EndPos: 2970, + EndLine: 130, + StartPos: 2970, + EndPos: 2970, }, Value: "1", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Case{ Position: &position.Position{ StartLine: 131, - EndLine: -1, - StartPos: 2976, - EndPos: -1, + EndLine: -1, + StartPos: 2976, + EndPos: -1, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 131, - EndLine: 131, - StartPos: 2981, - EndPos: 2981, + EndLine: 131, + StartPos: 2981, + EndPos: 2981, }, Value: "2", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, }, @@ -6559,40 +6500,40 @@ func TestPhp7(t *testing.T) { &stmt.Switch{ Position: &position.Position{ StartLine: 134, - EndLine: 137, - StartPos: 3002, - EndPos: 3053, + EndLine: 137, + StartPos: 3002, + EndPos: 3053, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 134, - EndLine: 134, - StartPos: 3010, - EndPos: 3010, + EndLine: 134, + StartPos: 3010, + EndPos: 3010, }, Value: "1", }, CaseList: &stmt.CaseList{ Position: &position.Position{ StartLine: 134, - EndLine: 137, - StartPos: 3013, - EndPos: 3053, + EndLine: 137, + StartPos: 3013, + EndPos: 3053, }, Cases: []node.Node{ &stmt.Case{ Position: &position.Position{ StartLine: 135, - EndLine: 135, - StartPos: 3018, - EndPos: 3031, + EndLine: 135, + StartPos: 3018, + EndPos: 3031, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 135, - EndLine: 135, - StartPos: 3023, - EndPos: 3023, + EndLine: 135, + StartPos: 3023, + EndPos: 3023, }, Value: "1", }, @@ -6600,9 +6541,9 @@ func TestPhp7(t *testing.T) { &stmt.Break{ Position: &position.Position{ StartLine: 135, - EndLine: 135, - StartPos: 3026, - EndPos: 3031, + EndLine: 135, + StartPos: 3026, + EndPos: 3031, }, }, }, @@ -6610,16 +6551,16 @@ func TestPhp7(t *testing.T) { &stmt.Case{ Position: &position.Position{ StartLine: 136, - EndLine: 136, - StartPos: 3036, - EndPos: 3049, + EndLine: 136, + StartPos: 3036, + EndPos: 3049, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 136, - EndLine: 136, - StartPos: 3041, - EndPos: 3041, + EndLine: 136, + StartPos: 3041, + EndPos: 3041, }, Value: "2", }, @@ -6627,9 +6568,9 @@ func TestPhp7(t *testing.T) { &stmt.Break{ Position: &position.Position{ StartLine: 136, - EndLine: 136, - StartPos: 3044, - EndPos: 3049, + EndLine: 136, + StartPos: 3044, + EndPos: 3049, }, }, }, @@ -6640,40 +6581,40 @@ func TestPhp7(t *testing.T) { &stmt.Switch{ Position: &position.Position{ StartLine: 139, - EndLine: 142, - StartPos: 3060, - EndPos: 3112, + EndLine: 142, + StartPos: 3060, + EndPos: 3112, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 139, - EndLine: 139, - StartPos: 3068, - EndPos: 3068, + EndLine: 139, + StartPos: 3068, + EndPos: 3068, }, Value: "1", }, CaseList: &stmt.CaseList{ Position: &position.Position{ StartLine: 139, - EndLine: 142, - StartPos: 3071, - EndPos: 3112, + EndLine: 142, + StartPos: 3071, + EndPos: 3112, }, Cases: []node.Node{ &stmt.Case{ Position: &position.Position{ StartLine: 140, - EndLine: 140, - StartPos: 3077, - EndPos: 3090, + EndLine: 140, + StartPos: 3077, + EndPos: 3090, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 140, - EndLine: 140, - StartPos: 3082, - EndPos: 3082, + EndLine: 140, + StartPos: 3082, + EndPos: 3082, }, Value: "1", }, @@ -6681,9 +6622,9 @@ func TestPhp7(t *testing.T) { &stmt.Break{ Position: &position.Position{ StartLine: 140, - EndLine: 140, - StartPos: 3085, - EndPos: 3090, + EndLine: 140, + StartPos: 3085, + EndPos: 3090, }, }, }, @@ -6691,16 +6632,16 @@ func TestPhp7(t *testing.T) { &stmt.Case{ Position: &position.Position{ StartLine: 141, - EndLine: 141, - StartPos: 3095, - EndPos: 3108, + EndLine: 141, + StartPos: 3095, + EndPos: 3108, }, Cond: &scalar.Lnumber{ Position: &position.Position{ StartLine: 141, - EndLine: 141, - StartPos: 3100, - EndPos: 3100, + EndLine: 141, + StartPos: 3100, + EndPos: 3100, }, Value: "2", }, @@ -6708,9 +6649,9 @@ func TestPhp7(t *testing.T) { &stmt.Break{ Position: &position.Position{ StartLine: 141, - EndLine: 141, - StartPos: 3103, - EndPos: 3108, + EndLine: 141, + StartPos: 3103, + EndPos: 3108, }, }, }, @@ -6721,23 +6662,23 @@ func TestPhp7(t *testing.T) { &stmt.Throw{ Position: &position.Position{ StartLine: 144, - EndLine: 144, - StartPos: 3117, - EndPos: 3125, + EndLine: 144, + StartPos: 3117, + EndPos: 3125, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 144, - EndLine: 144, - StartPos: 3123, - EndPos: 3124, + EndLine: 144, + StartPos: 3123, + EndPos: 3124, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 144, - EndLine: 144, - StartPos: 3123, - EndPos: 3124, + EndLine: 144, + StartPos: 3123, + EndPos: 3124, }, Value: "e", }, @@ -6746,37 +6687,36 @@ func TestPhp7(t *testing.T) { &stmt.Trait{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3130, - EndPos: 3141, + EndLine: 146, + StartPos: 3130, + EndPos: 3141, }, PhpDocComment: "", TraitName: &node.Identifier{ Position: &position.Position{ StartLine: 146, - EndLine: 146, - StartPos: 3136, - EndPos: 3138, + EndLine: 146, + StartPos: 3136, + EndPos: 3138, }, Value: "Foo", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Class{ Position: &position.Position{ StartLine: 147, - EndLine: 147, - StartPos: 3145, - EndPos: 3166, + EndLine: 147, + StartPos: 3145, + EndPos: 3166, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 147, - EndLine: 147, - StartPos: 3151, - EndPos: 3153, + EndLine: 147, + StartPos: 3151, + EndPos: 3153, }, Value: "Foo", }, @@ -6784,25 +6724,25 @@ func TestPhp7(t *testing.T) { &stmt.TraitUse{ Position: &position.Position{ StartLine: 147, - EndLine: 147, - StartPos: 3157, - EndPos: 3164, + EndLine: 147, + StartPos: 3157, + EndPos: 3164, }, Traits: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 147, - EndLine: 147, - StartPos: 3161, - EndPos: 3163, + EndLine: 147, + StartPos: 3161, + EndPos: 3163, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 147, - EndLine: 147, - StartPos: 3161, - EndPos: 3163, + EndLine: 147, + StartPos: 3161, + EndPos: 3163, }, Value: "Bar", }, @@ -6815,17 +6755,17 @@ func TestPhp7(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 148, - EndLine: 148, - StartPos: 3170, - EndPos: 3198, + EndLine: 148, + StartPos: 3170, + EndPos: 3198, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 148, - EndLine: 148, - StartPos: 3176, - EndPos: 3178, + EndLine: 148, + StartPos: 3176, + EndPos: 3178, }, Value: "Foo", }, @@ -6833,25 +6773,25 @@ func TestPhp7(t *testing.T) { &stmt.TraitUse{ Position: &position.Position{ StartLine: 148, - EndLine: 148, - StartPos: 3182, - EndPos: 3196, + EndLine: 148, + StartPos: 3182, + EndPos: 3196, }, Traits: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 148, - EndLine: 148, - StartPos: 3186, - EndPos: 3188, + EndLine: 148, + StartPos: 3186, + EndPos: 3188, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 148, - EndLine: 148, - StartPos: 3186, - EndPos: 3188, + EndLine: 148, + StartPos: 3186, + EndPos: 3188, }, Value: "Bar", }, @@ -6860,17 +6800,17 @@ func TestPhp7(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 148, - EndLine: 148, - StartPos: 3191, - EndPos: 3193, + EndLine: 148, + StartPos: 3191, + EndPos: 3193, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 148, - EndLine: 148, - StartPos: 3191, - EndPos: 3193, + EndLine: 148, + StartPos: 3191, + EndPos: 3193, }, Value: "Baz", }, @@ -6880,9 +6820,9 @@ func TestPhp7(t *testing.T) { TraitAdaptationList: &stmt.TraitAdaptationList{ Position: &position.Position{ StartLine: 148, - EndLine: 148, - StartPos: 3195, - EndPos: 3196, + EndLine: 148, + StartPos: 3195, + EndPos: 3196, }, }, }, @@ -6891,17 +6831,17 @@ func TestPhp7(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3202, - EndPos: 3247, + EndLine: 149, + StartPos: 3202, + EndPos: 3247, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3208, - EndPos: 3210, + EndLine: 149, + StartPos: 3208, + EndPos: 3210, }, Value: "Foo", }, @@ -6909,25 +6849,25 @@ func TestPhp7(t *testing.T) { &stmt.TraitUse{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3214, - EndPos: 3245, + EndLine: 149, + StartPos: 3214, + EndPos: 3245, }, Traits: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3218, - EndPos: 3220, + EndLine: 149, + StartPos: 3218, + EndPos: 3220, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3218, - EndPos: 3220, + EndLine: 149, + StartPos: 3218, + EndPos: 3220, }, Value: "Bar", }, @@ -6936,17 +6876,17 @@ func TestPhp7(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3223, - EndPos: 3225, + EndLine: 149, + StartPos: 3223, + EndPos: 3225, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3223, - EndPos: 3225, + EndLine: 149, + StartPos: 3223, + EndPos: 3225, }, Value: "Baz", }, @@ -6956,31 +6896,31 @@ func TestPhp7(t *testing.T) { TraitAdaptationList: &stmt.TraitAdaptationList{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3227, - EndPos: 3245, + EndLine: 149, + StartPos: 3227, + EndPos: 3245, }, Adaptations: []node.Node{ &stmt.TraitUseAlias{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3229, - EndPos: 3242, + EndLine: 149, + StartPos: 3229, + EndPos: 3242, }, Ref: &stmt.TraitMethodRef{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3229, - EndPos: 3231, + EndLine: 149, + StartPos: 3229, + EndPos: 3231, }, Method: &node.Identifier{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3229, - EndPos: 3231, + EndLine: 149, + StartPos: 3229, + EndPos: 3231, }, Value: "one", }, @@ -6988,9 +6928,9 @@ func TestPhp7(t *testing.T) { Alias: &node.Identifier{ Position: &position.Position{ StartLine: 149, - EndLine: 149, - StartPos: 3236, - EndPos: 3242, + EndLine: 149, + StartPos: 3236, + EndPos: 3242, }, Value: "include", }, @@ -7003,17 +6943,17 @@ func TestPhp7(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3251, - EndPos: 3295, + EndLine: 150, + StartPos: 3251, + EndPos: 3295, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3257, - EndPos: 3259, + EndLine: 150, + StartPos: 3257, + EndPos: 3259, }, Value: "Foo", }, @@ -7021,25 +6961,25 @@ func TestPhp7(t *testing.T) { &stmt.TraitUse{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3263, - EndPos: 3293, + EndLine: 150, + StartPos: 3263, + EndPos: 3293, }, Traits: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3267, - EndPos: 3269, + EndLine: 150, + StartPos: 3267, + EndPos: 3269, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3267, - EndPos: 3269, + EndLine: 150, + StartPos: 3267, + EndPos: 3269, }, Value: "Bar", }, @@ -7048,17 +6988,17 @@ func TestPhp7(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3272, - EndPos: 3274, + EndLine: 150, + StartPos: 3272, + EndPos: 3274, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3272, - EndPos: 3274, + EndLine: 150, + StartPos: 3272, + EndPos: 3274, }, Value: "Baz", }, @@ -7068,31 +7008,31 @@ func TestPhp7(t *testing.T) { TraitAdaptationList: &stmt.TraitAdaptationList{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3276, - EndPos: 3293, + EndLine: 150, + StartPos: 3276, + EndPos: 3293, }, Adaptations: []node.Node{ &stmt.TraitUseAlias{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3278, - EndPos: 3290, + EndLine: 150, + StartPos: 3278, + EndPos: 3290, }, Ref: &stmt.TraitMethodRef{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3278, - EndPos: 3280, + EndLine: 150, + StartPos: 3278, + EndPos: 3280, }, Method: &node.Identifier{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3278, - EndPos: 3280, + EndLine: 150, + StartPos: 3278, + EndPos: 3280, }, Value: "one", }, @@ -7100,9 +7040,9 @@ func TestPhp7(t *testing.T) { Modifier: &node.Identifier{ Position: &position.Position{ StartLine: 150, - EndLine: 150, - StartPos: 3285, - EndPos: 3290, + EndLine: 150, + StartPos: 3285, + EndPos: 3290, }, Value: "public", }, @@ -7115,17 +7055,17 @@ func TestPhp7(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3299, - EndPos: 3347, + EndLine: 151, + StartPos: 3299, + EndPos: 3347, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3305, - EndPos: 3307, + EndLine: 151, + StartPos: 3305, + EndPos: 3307, }, Value: "Foo", }, @@ -7133,25 +7073,25 @@ func TestPhp7(t *testing.T) { &stmt.TraitUse{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3311, - EndPos: 3345, + EndLine: 151, + StartPos: 3311, + EndPos: 3345, }, Traits: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3315, - EndPos: 3317, + EndLine: 151, + StartPos: 3315, + EndPos: 3317, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3315, - EndPos: 3317, + EndLine: 151, + StartPos: 3315, + EndPos: 3317, }, Value: "Bar", }, @@ -7160,17 +7100,17 @@ func TestPhp7(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3320, - EndPos: 3322, + EndLine: 151, + StartPos: 3320, + EndPos: 3322, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3320, - EndPos: 3322, + EndLine: 151, + StartPos: 3320, + EndPos: 3322, }, Value: "Baz", }, @@ -7180,31 +7120,31 @@ func TestPhp7(t *testing.T) { TraitAdaptationList: &stmt.TraitAdaptationList{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3324, - EndPos: 3345, + EndLine: 151, + StartPos: 3324, + EndPos: 3345, }, Adaptations: []node.Node{ &stmt.TraitUseAlias{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3326, - EndPos: 3342, + EndLine: 151, + StartPos: 3326, + EndPos: 3342, }, Ref: &stmt.TraitMethodRef{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3326, - EndPos: 3328, + EndLine: 151, + StartPos: 3326, + EndPos: 3328, }, Method: &node.Identifier{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3326, - EndPos: 3328, + EndLine: 151, + StartPos: 3326, + EndPos: 3328, }, Value: "one", }, @@ -7212,18 +7152,18 @@ func TestPhp7(t *testing.T) { Modifier: &node.Identifier{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3333, - EndPos: 3338, + EndLine: 151, + StartPos: 3333, + EndPos: 3338, }, Value: "public", }, Alias: &node.Identifier{ Position: &position.Position{ StartLine: 151, - EndLine: 151, - StartPos: 3340, - EndPos: 3342, + EndLine: 151, + StartPos: 3340, + EndPos: 3342, }, Value: "two", }, @@ -7236,17 +7176,17 @@ func TestPhp7(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3351, - EndPos: 3427, + EndLine: 152, + StartPos: 3351, + EndPos: 3427, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3357, - EndPos: 3359, + EndLine: 152, + StartPos: 3357, + EndPos: 3359, }, Value: "Foo", }, @@ -7254,25 +7194,25 @@ func TestPhp7(t *testing.T) { &stmt.TraitUse{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3363, - EndPos: 3425, + EndLine: 152, + StartPos: 3363, + EndPos: 3425, }, Traits: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3367, - EndPos: 3369, + EndLine: 152, + StartPos: 3367, + EndPos: 3369, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3367, - EndPos: 3369, + EndLine: 152, + StartPos: 3367, + EndPos: 3369, }, Value: "Bar", }, @@ -7281,17 +7221,17 @@ func TestPhp7(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3372, - EndPos: 3374, + EndLine: 152, + StartPos: 3372, + EndPos: 3374, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3372, - EndPos: 3374, + EndLine: 152, + StartPos: 3372, + EndPos: 3374, }, Value: "Baz", }, @@ -7301,39 +7241,39 @@ func TestPhp7(t *testing.T) { TraitAdaptationList: &stmt.TraitAdaptationList{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3376, - EndPos: 3425, + EndLine: 152, + StartPos: 3376, + EndPos: 3425, }, Adaptations: []node.Node{ &stmt.TraitUsePrecedence{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3378, - EndPos: 3405, + EndLine: 152, + StartPos: 3378, + EndPos: 3405, }, Ref: &stmt.TraitMethodRef{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3378, - EndPos: 3385, + EndLine: 152, + StartPos: 3378, + EndPos: 3385, }, Trait: &name.Name{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3378, - EndPos: 3380, + EndLine: 152, + StartPos: 3378, + EndPos: 3380, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3378, - EndPos: 3380, + EndLine: 152, + StartPos: 3378, + EndPos: 3380, }, Value: "Bar", }, @@ -7342,9 +7282,9 @@ func TestPhp7(t *testing.T) { Method: &node.Identifier{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3383, - EndPos: 3385, + EndLine: 152, + StartPos: 3383, + EndPos: 3385, }, Value: "one", }, @@ -7353,17 +7293,17 @@ func TestPhp7(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3397, - EndPos: 3399, + EndLine: 152, + StartPos: 3397, + EndPos: 3399, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3397, - EndPos: 3399, + EndLine: 152, + StartPos: 3397, + EndPos: 3399, }, Value: "Baz", }, @@ -7372,17 +7312,17 @@ func TestPhp7(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3402, - EndPos: 3405, + EndLine: 152, + StartPos: 3402, + EndPos: 3405, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3402, - EndPos: 3405, + EndLine: 152, + StartPos: 3402, + EndPos: 3405, }, Value: "Quux", }, @@ -7393,31 +7333,31 @@ func TestPhp7(t *testing.T) { &stmt.TraitUseAlias{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3408, - EndPos: 3422, + EndLine: 152, + StartPos: 3408, + EndPos: 3422, }, Ref: &stmt.TraitMethodRef{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3408, - EndPos: 3415, + EndLine: 152, + StartPos: 3408, + EndPos: 3415, }, Trait: &name.Name{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3408, - EndPos: 3410, + EndLine: 152, + StartPos: 3408, + EndPos: 3410, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3408, - EndPos: 3410, + EndLine: 152, + StartPos: 3408, + EndPos: 3410, }, Value: "Baz", }, @@ -7426,9 +7366,9 @@ func TestPhp7(t *testing.T) { Method: &node.Identifier{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3413, - EndPos: 3415, + EndLine: 152, + StartPos: 3413, + EndPos: 3415, }, Value: "one", }, @@ -7436,9 +7376,9 @@ func TestPhp7(t *testing.T) { Alias: &node.Identifier{ Position: &position.Position{ StartLine: 152, - EndLine: 152, - StartPos: 3420, - EndPos: 3422, + EndLine: 152, + StartPos: 3420, + EndPos: 3422, }, Value: "two", }, @@ -7451,47 +7391,44 @@ func TestPhp7(t *testing.T) { &stmt.Try{ Position: &position.Position{ StartLine: 154, - EndLine: -1, - StartPos: 3432, - EndPos: -1, - }, - Stmts: []node.Node{ - }, - Catches: []node.Node{ + EndLine: -1, + StartPos: 3432, + EndPos: -1, }, + Stmts: []node.Node{}, + Catches: []node.Node{}, }, &stmt.Try{ Position: &position.Position{ StartLine: 155, - EndLine: 155, - StartPos: 3441, - EndPos: 3470, - }, - Stmts: []node.Node{ + EndLine: 155, + StartPos: 3441, + EndPos: 3470, }, + Stmts: []node.Node{}, Catches: []node.Node{ &stmt.Catch{ Position: &position.Position{ StartLine: 155, - EndLine: 155, - StartPos: 3448, - EndPos: 3470, + EndLine: 155, + StartPos: 3448, + EndPos: 3470, }, Types: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 155, - EndLine: 155, - StartPos: 3455, - EndPos: 3463, + EndLine: 155, + StartPos: 3455, + EndPos: 3463, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 155, - EndLine: 155, - StartPos: 3455, - EndPos: 3463, + EndLine: 155, + StartPos: 3455, + EndPos: 3463, }, Value: "Exception", }, @@ -7501,57 +7438,55 @@ func TestPhp7(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 155, - EndLine: 155, - StartPos: 3465, - EndPos: 3466, + EndLine: 155, + StartPos: 3465, + EndPos: 3466, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 155, - EndLine: 155, - StartPos: 3465, - EndPos: 3466, + EndLine: 155, + StartPos: 3465, + EndPos: 3466, }, Value: "e", }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, }, &stmt.Try{ Position: &position.Position{ StartLine: 156, - EndLine: 156, - StartPos: 3474, - EndPos: 3520, - }, - Stmts: []node.Node{ + EndLine: 156, + StartPos: 3474, + EndPos: 3520, }, + Stmts: []node.Node{}, Catches: []node.Node{ &stmt.Catch{ Position: &position.Position{ StartLine: 156, - EndLine: 156, - StartPos: 3481, - EndPos: 3520, + EndLine: 156, + StartPos: 3481, + EndPos: 3520, }, Types: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 156, - EndLine: 156, - StartPos: 3488, - EndPos: 3496, + EndLine: 156, + StartPos: 3488, + EndPos: 3496, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 156, - EndLine: 156, - StartPos: 3488, - EndPos: 3496, + EndLine: 156, + StartPos: 3488, + EndPos: 3496, }, Value: "Exception", }, @@ -7560,17 +7495,17 @@ func TestPhp7(t *testing.T) { &name.Name{ Position: &position.Position{ StartLine: 156, - EndLine: 156, - StartPos: 3498, - EndPos: 3513, + EndLine: 156, + StartPos: 3498, + EndPos: 3513, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 156, - EndLine: 156, - StartPos: 3498, - EndPos: 3513, + EndLine: 156, + StartPos: 3498, + EndPos: 3513, }, Value: "RuntimeException", }, @@ -7580,57 +7515,55 @@ func TestPhp7(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 156, - EndLine: 156, - StartPos: 3515, - EndPos: 3516, + EndLine: 156, + StartPos: 3515, + EndPos: 3516, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 156, - EndLine: 156, - StartPos: 3515, - EndPos: 3516, + EndLine: 156, + StartPos: 3515, + EndPos: 3516, }, Value: "e", }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, }, &stmt.Try{ Position: &position.Position{ StartLine: 157, - EndLine: 157, - StartPos: 3524, - EndPos: 3584, - }, - Stmts: []node.Node{ + EndLine: 157, + StartPos: 3524, + EndPos: 3584, }, + Stmts: []node.Node{}, Catches: []node.Node{ &stmt.Catch{ Position: &position.Position{ StartLine: 157, - EndLine: 157, - StartPos: 3531, - EndPos: 3553, + EndLine: 157, + StartPos: 3531, + EndPos: 3553, }, Types: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 157, - EndLine: 157, - StartPos: 3538, - EndPos: 3546, + EndLine: 157, + StartPos: 3538, + EndPos: 3546, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 157, - EndLine: 157, - StartPos: 3538, - EndPos: 3546, + EndLine: 157, + StartPos: 3538, + EndPos: 3546, }, Value: "Exception", }, @@ -7640,45 +7573,44 @@ func TestPhp7(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 157, - EndLine: 157, - StartPos: 3548, - EndPos: 3549, + EndLine: 157, + StartPos: 3548, + EndPos: 3549, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 157, - EndLine: 157, - StartPos: 3548, - EndPos: 3549, + EndLine: 157, + StartPos: 3548, + EndPos: 3549, }, Value: "e", }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Catch{ Position: &position.Position{ StartLine: 157, - EndLine: 157, - StartPos: 3555, - EndPos: 3584, + EndLine: 157, + StartPos: 3555, + EndPos: 3584, }, Types: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 157, - EndLine: 157, - StartPos: 3562, - EndPos: 3577, + EndLine: 157, + StartPos: 3562, + EndPos: 3577, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 157, - EndLine: 157, - StartPos: 3562, - EndPos: 3577, + EndLine: 157, + StartPos: 3562, + EndPos: 3577, }, Value: "RuntimeException", }, @@ -7688,57 +7620,55 @@ func TestPhp7(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 157, - EndLine: 157, - StartPos: 3579, - EndPos: 3580, + EndLine: 157, + StartPos: 3579, + EndPos: 3580, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 157, - EndLine: 157, - StartPos: 3579, - EndPos: 3580, + EndLine: 157, + StartPos: 3579, + EndPos: 3580, }, Value: "e", }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, }, &stmt.Try{ Position: &position.Position{ StartLine: 158, - EndLine: 158, - StartPos: 3588, - EndPos: 3628, - }, - Stmts: []node.Node{ + EndLine: 158, + StartPos: 3588, + EndPos: 3628, }, + Stmts: []node.Node{}, Catches: []node.Node{ &stmt.Catch{ Position: &position.Position{ StartLine: 158, - EndLine: 158, - StartPos: 3595, - EndPos: 3617, + EndLine: 158, + StartPos: 3595, + EndPos: 3617, }, Types: []node.Node{ &name.Name{ Position: &position.Position{ StartLine: 158, - EndLine: 158, - StartPos: 3602, - EndPos: 3610, + EndLine: 158, + StartPos: 3602, + EndPos: 3610, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 158, - EndLine: 158, - StartPos: 3602, - EndPos: 3610, + EndLine: 158, + StartPos: 3602, + EndPos: 3610, }, Value: "Exception", }, @@ -7748,56 +7678,54 @@ func TestPhp7(t *testing.T) { Variable: &expr.Variable{ Position: &position.Position{ StartLine: 158, - EndLine: 158, - StartPos: 3612, - EndPos: 3613, + EndLine: 158, + StartPos: 3612, + EndPos: 3613, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 158, - EndLine: 158, - StartPos: 3612, - EndPos: 3613, + EndLine: 158, + StartPos: 3612, + EndPos: 3613, }, Value: "e", }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, Finally: &stmt.Finally{ Position: &position.Position{ StartLine: 158, - EndLine: 158, - StartPos: 3619, - EndPos: 3628, - }, - Stmts: []node.Node{ + EndLine: 158, + StartPos: 3619, + EndPos: 3628, }, + Stmts: []node.Node{}, }, }, &stmt.Unset{ Position: &position.Position{ StartLine: 160, - EndLine: 160, - StartPos: 3633, - EndPos: 3647, + EndLine: 160, + StartPos: 3633, + EndPos: 3647, }, Vars: []node.Node{ &expr.Variable{ Position: &position.Position{ StartLine: 160, - EndLine: 160, - StartPos: 3639, - EndPos: 3640, + EndLine: 160, + StartPos: 3639, + EndPos: 3640, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 160, - EndLine: 160, - StartPos: 3639, - EndPos: 3640, + EndLine: 160, + StartPos: 3639, + EndPos: 3640, }, Value: "a", }, @@ -7805,16 +7733,16 @@ func TestPhp7(t *testing.T) { &expr.Variable{ Position: &position.Position{ StartLine: 160, - EndLine: 160, - StartPos: 3643, - EndPos: 3644, + EndLine: 160, + StartPos: 3643, + EndPos: 3644, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 160, - EndLine: 160, - StartPos: 3643, - EndPos: 3644, + EndLine: 160, + StartPos: 3643, + EndPos: 3644, }, Value: "b", }, @@ -7824,32 +7752,32 @@ func TestPhp7(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 162, - EndLine: 162, - StartPos: 3652, - EndPos: 3659, + EndLine: 162, + StartPos: 3652, + EndPos: 3659, }, Uses: []node.Node{ &stmt.Use{ Position: &position.Position{ StartLine: 162, - EndLine: 162, - StartPos: 3656, - EndPos: 3658, + EndLine: 162, + StartPos: 3656, + EndPos: 3658, }, Use: &name.Name{ Position: &position.Position{ StartLine: 162, - EndLine: 162, - StartPos: 3656, - EndPos: 3658, + EndLine: 162, + StartPos: 3656, + EndPos: 3658, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 162, - EndLine: 162, - StartPos: 3656, - EndPos: 3658, + EndLine: 162, + StartPos: 3656, + EndPos: 3658, }, Value: "Foo", }, @@ -7861,32 +7789,32 @@ func TestPhp7(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 163, - EndLine: 163, - StartPos: 3663, - EndPos: 3671, + EndLine: 163, + StartPos: 3663, + EndPos: 3671, }, Uses: []node.Node{ &stmt.Use{ Position: &position.Position{ StartLine: 163, - EndLine: 163, - StartPos: 3668, - EndPos: 3670, + EndLine: 163, + StartPos: 3668, + EndPos: 3670, }, Use: &name.Name{ Position: &position.Position{ StartLine: 163, - EndLine: 163, - StartPos: 3668, - EndPos: 3670, + EndLine: 163, + StartPos: 3668, + EndPos: 3670, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 163, - EndLine: 163, - StartPos: 3668, - EndPos: 3670, + EndLine: 163, + StartPos: 3668, + EndPos: 3670, }, Value: "Foo", }, @@ -7898,32 +7826,32 @@ func TestPhp7(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 164, - EndLine: 164, - StartPos: 3675, - EndPos: 3690, + EndLine: 164, + StartPos: 3675, + EndPos: 3690, }, Uses: []node.Node{ &stmt.Use{ Position: &position.Position{ StartLine: 164, - EndLine: 164, - StartPos: 3680, - EndPos: 3689, + EndLine: 164, + StartPos: 3680, + EndPos: 3689, }, Use: &name.Name{ Position: &position.Position{ StartLine: 164, - EndLine: 164, - StartPos: 3680, - EndPos: 3682, + EndLine: 164, + StartPos: 3680, + EndPos: 3682, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 164, - EndLine: 164, - StartPos: 3680, - EndPos: 3682, + EndLine: 164, + StartPos: 3680, + EndPos: 3682, }, Value: "Foo", }, @@ -7932,9 +7860,9 @@ func TestPhp7(t *testing.T) { Alias: &node.Identifier{ Position: &position.Position{ StartLine: 164, - EndLine: 164, - StartPos: 3687, - EndPos: 3689, + EndLine: 164, + StartPos: 3687, + EndPos: 3689, }, Value: "Bar", }, @@ -7944,32 +7872,32 @@ func TestPhp7(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 165, - EndLine: 165, - StartPos: 3694, - EndPos: 3706, + EndLine: 165, + StartPos: 3694, + EndPos: 3706, }, Uses: []node.Node{ &stmt.Use{ Position: &position.Position{ StartLine: 165, - EndLine: 165, - StartPos: 3698, - EndPos: 3700, + EndLine: 165, + StartPos: 3698, + EndPos: 3700, }, Use: &name.Name{ Position: &position.Position{ StartLine: 165, - EndLine: 165, - StartPos: 3698, - EndPos: 3700, + EndLine: 165, + StartPos: 3698, + EndPos: 3700, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 165, - EndLine: 165, - StartPos: 3698, - EndPos: 3700, + EndLine: 165, + StartPos: 3698, + EndPos: 3700, }, Value: "Foo", }, @@ -7979,24 +7907,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 165, - EndLine: 165, - StartPos: 3703, - EndPos: 3705, + EndLine: 165, + StartPos: 3703, + EndPos: 3705, }, Use: &name.Name{ Position: &position.Position{ StartLine: 165, - EndLine: 165, - StartPos: 3703, - EndPos: 3705, + EndLine: 165, + StartPos: 3703, + EndPos: 3705, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 165, - EndLine: 165, - StartPos: 3703, - EndPos: 3705, + EndLine: 165, + StartPos: 3703, + EndPos: 3705, }, Value: "Bar", }, @@ -8008,32 +7936,32 @@ func TestPhp7(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 166, - EndLine: 166, - StartPos: 3710, - EndPos: 3729, + EndLine: 166, + StartPos: 3710, + EndPos: 3729, }, Uses: []node.Node{ &stmt.Use{ Position: &position.Position{ StartLine: 166, - EndLine: 166, - StartPos: 3714, - EndPos: 3716, + EndLine: 166, + StartPos: 3714, + EndPos: 3716, }, Use: &name.Name{ Position: &position.Position{ StartLine: 166, - EndLine: 166, - StartPos: 3714, - EndPos: 3716, + EndLine: 166, + StartPos: 3714, + EndPos: 3716, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 166, - EndLine: 166, - StartPos: 3714, - EndPos: 3716, + EndLine: 166, + StartPos: 3714, + EndPos: 3716, }, Value: "Foo", }, @@ -8043,24 +7971,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 166, - EndLine: 166, - StartPos: 3719, - EndPos: 3728, + EndLine: 166, + StartPos: 3719, + EndPos: 3728, }, Use: &name.Name{ Position: &position.Position{ StartLine: 166, - EndLine: 166, - StartPos: 3719, - EndPos: 3721, + EndLine: 166, + StartPos: 3719, + EndPos: 3721, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 166, - EndLine: 166, - StartPos: 3719, - EndPos: 3721, + EndLine: 166, + StartPos: 3719, + EndPos: 3721, }, Value: "Bar", }, @@ -8069,9 +7997,9 @@ func TestPhp7(t *testing.T) { Alias: &node.Identifier{ Position: &position.Position{ StartLine: 166, - EndLine: 166, - StartPos: 3726, - EndPos: 3728, + EndLine: 166, + StartPos: 3726, + EndPos: 3728, }, Value: "Baz", }, @@ -8081,16 +8009,16 @@ func TestPhp7(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 167, - EndLine: 167, - StartPos: 3733, - EndPos: 3755, + EndLine: 167, + StartPos: 3733, + EndPos: 3755, }, UseType: &node.Identifier{ Position: &position.Position{ StartLine: 167, - EndLine: 167, - StartPos: 3737, - EndPos: 3744, + EndLine: 167, + StartPos: 3737, + EndPos: 3744, }, Value: "function", }, @@ -8098,24 +8026,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 167, - EndLine: 167, - StartPos: 3746, - EndPos: 3748, + EndLine: 167, + StartPos: 3746, + EndPos: 3748, }, Use: &name.Name{ Position: &position.Position{ StartLine: 167, - EndLine: 167, - StartPos: 3746, - EndPos: 3748, + EndLine: 167, + StartPos: 3746, + EndPos: 3748, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 167, - EndLine: 167, - StartPos: 3746, - EndPos: 3748, + EndLine: 167, + StartPos: 3746, + EndPos: 3748, }, Value: "Foo", }, @@ -8125,24 +8053,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 167, - EndLine: 167, - StartPos: 3752, - EndPos: 3754, + EndLine: 167, + StartPos: 3752, + EndPos: 3754, }, Use: &name.Name{ Position: &position.Position{ StartLine: 167, - EndLine: 167, - StartPos: 3752, - EndPos: 3754, + EndLine: 167, + StartPos: 3752, + EndPos: 3754, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 167, - EndLine: 167, - StartPos: 3752, - EndPos: 3754, + EndLine: 167, + StartPos: 3752, + EndPos: 3754, }, Value: "Bar", }, @@ -8154,16 +8082,16 @@ func TestPhp7(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 168, - EndLine: 168, - StartPos: 3759, - EndPos: 3795, + EndLine: 168, + StartPos: 3759, + EndPos: 3795, }, UseType: &node.Identifier{ Position: &position.Position{ StartLine: 168, - EndLine: 168, - StartPos: 3763, - EndPos: 3770, + EndLine: 168, + StartPos: 3763, + EndPos: 3770, }, Value: "function", }, @@ -8171,24 +8099,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 168, - EndLine: 168, - StartPos: 3772, - EndPos: 3781, + EndLine: 168, + StartPos: 3772, + EndPos: 3781, }, Use: &name.Name{ Position: &position.Position{ StartLine: 168, - EndLine: 168, - StartPos: 3772, - EndPos: 3774, + EndLine: 168, + StartPos: 3772, + EndPos: 3774, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 168, - EndLine: 168, - StartPos: 3772, - EndPos: 3774, + EndLine: 168, + StartPos: 3772, + EndPos: 3774, }, Value: "Foo", }, @@ -8197,9 +8125,9 @@ func TestPhp7(t *testing.T) { Alias: &node.Identifier{ Position: &position.Position{ StartLine: 168, - EndLine: 168, - StartPos: 3779, - EndPos: 3781, + EndLine: 168, + StartPos: 3779, + EndPos: 3781, }, Value: "foo", }, @@ -8207,24 +8135,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 168, - EndLine: 168, - StartPos: 3785, - EndPos: 3794, + EndLine: 168, + StartPos: 3785, + EndPos: 3794, }, Use: &name.Name{ Position: &position.Position{ StartLine: 168, - EndLine: 168, - StartPos: 3785, - EndPos: 3787, + EndLine: 168, + StartPos: 3785, + EndPos: 3787, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 168, - EndLine: 168, - StartPos: 3785, - EndPos: 3787, + EndLine: 168, + StartPos: 3785, + EndPos: 3787, }, Value: "Bar", }, @@ -8233,9 +8161,9 @@ func TestPhp7(t *testing.T) { Alias: &node.Identifier{ Position: &position.Position{ StartLine: 168, - EndLine: 168, - StartPos: 3792, - EndPos: 3794, + EndLine: 168, + StartPos: 3792, + EndPos: 3794, }, Value: "bar", }, @@ -8245,16 +8173,16 @@ func TestPhp7(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 169, - EndLine: 169, - StartPos: 3799, - EndPos: 3818, + EndLine: 169, + StartPos: 3799, + EndPos: 3818, }, UseType: &node.Identifier{ Position: &position.Position{ StartLine: 169, - EndLine: 169, - StartPos: 3803, - EndPos: 3807, + EndLine: 169, + StartPos: 3803, + EndPos: 3807, }, Value: "const", }, @@ -8262,24 +8190,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 169, - EndLine: 169, - StartPos: 3809, - EndPos: 3811, + EndLine: 169, + StartPos: 3809, + EndPos: 3811, }, Use: &name.Name{ Position: &position.Position{ StartLine: 169, - EndLine: 169, - StartPos: 3809, - EndPos: 3811, + EndLine: 169, + StartPos: 3809, + EndPos: 3811, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 169, - EndLine: 169, - StartPos: 3809, - EndPos: 3811, + EndLine: 169, + StartPos: 3809, + EndPos: 3811, }, Value: "Foo", }, @@ -8289,24 +8217,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 169, - EndLine: 169, - StartPos: 3815, - EndPos: 3817, + EndLine: 169, + StartPos: 3815, + EndPos: 3817, }, Use: &name.Name{ Position: &position.Position{ StartLine: 169, - EndLine: 169, - StartPos: 3815, - EndPos: 3817, + EndLine: 169, + StartPos: 3815, + EndPos: 3817, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 169, - EndLine: 169, - StartPos: 3815, - EndPos: 3817, + EndLine: 169, + StartPos: 3815, + EndPos: 3817, }, Value: "Bar", }, @@ -8318,16 +8246,16 @@ func TestPhp7(t *testing.T) { &stmt.UseList{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3822, - EndPos: 3855, + EndLine: 170, + StartPos: 3822, + EndPos: 3855, }, UseType: &node.Identifier{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3826, - EndPos: 3830, + EndLine: 170, + StartPos: 3826, + EndPos: 3830, }, Value: "const", }, @@ -8335,24 +8263,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3832, - EndPos: 3841, + EndLine: 170, + StartPos: 3832, + EndPos: 3841, }, Use: &name.Name{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3832, - EndPos: 3834, + EndLine: 170, + StartPos: 3832, + EndPos: 3834, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3832, - EndPos: 3834, + EndLine: 170, + StartPos: 3832, + EndPos: 3834, }, Value: "Foo", }, @@ -8361,9 +8289,9 @@ func TestPhp7(t *testing.T) { Alias: &node.Identifier{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3839, - EndPos: 3841, + EndLine: 170, + StartPos: 3839, + EndPos: 3841, }, Value: "foo", }, @@ -8371,24 +8299,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3845, - EndPos: 3854, + EndLine: 170, + StartPos: 3845, + EndPos: 3854, }, Use: &name.Name{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3845, - EndPos: 3847, + EndLine: 170, + StartPos: 3845, + EndPos: 3847, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3845, - EndPos: 3847, + EndLine: 170, + StartPos: 3845, + EndPos: 3847, }, Value: "Bar", }, @@ -8397,9 +8325,9 @@ func TestPhp7(t *testing.T) { Alias: &node.Identifier{ Position: &position.Position{ StartLine: 170, - EndLine: 170, - StartPos: 3852, - EndPos: 3854, + EndLine: 170, + StartPos: 3852, + EndPos: 3854, }, Value: "bar", }, @@ -8409,24 +8337,24 @@ func TestPhp7(t *testing.T) { &stmt.GroupUse{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3860, - EndPos: 3879, + EndLine: 172, + StartPos: 3860, + EndPos: 3879, }, Prefix: &name.Name{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3865, - EndPos: 3867, + EndLine: 172, + StartPos: 3865, + EndPos: 3867, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3865, - EndPos: 3867, + EndLine: 172, + StartPos: 3865, + EndPos: 3867, }, Value: "Foo", }, @@ -8436,24 +8364,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3870, - EndPos: 3872, + EndLine: 172, + StartPos: 3870, + EndPos: 3872, }, Use: &name.Name{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3870, - EndPos: 3872, + EndLine: 172, + StartPos: 3870, + EndPos: 3872, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3870, - EndPos: 3872, + EndLine: 172, + StartPos: 3870, + EndPos: 3872, }, Value: "Bar", }, @@ -8463,24 +8391,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3875, - EndPos: 3877, + EndLine: 172, + StartPos: 3875, + EndPos: 3877, }, Use: &name.Name{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3875, - EndPos: 3877, + EndLine: 172, + StartPos: 3875, + EndPos: 3877, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 172, - EndLine: 172, - StartPos: 3875, - EndPos: 3877, + EndLine: 172, + StartPos: 3875, + EndPos: 3877, }, Value: "Baz", }, @@ -8492,24 +8420,24 @@ func TestPhp7(t *testing.T) { &stmt.GroupUse{ Position: &position.Position{ StartLine: 173, - EndLine: 173, - StartPos: 3883, - EndPos: 3909, + EndLine: 173, + StartPos: 3883, + EndPos: 3909, }, Prefix: &name.Name{ Position: &position.Position{ StartLine: 173, - EndLine: 173, - StartPos: 3887, - EndPos: 3889, + EndLine: 173, + StartPos: 3887, + EndPos: 3889, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 173, - EndLine: 173, - StartPos: 3887, - EndPos: 3889, + EndLine: 173, + StartPos: 3887, + EndPos: 3889, }, Value: "Foo", }, @@ -8519,24 +8447,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 173, - EndLine: 173, - StartPos: 3892, - EndPos: 3894, + EndLine: 173, + StartPos: 3892, + EndPos: 3894, }, Use: &name.Name{ Position: &position.Position{ StartLine: 173, - EndLine: 173, - StartPos: 3892, - EndPos: 3894, + EndLine: 173, + StartPos: 3892, + EndPos: 3894, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 173, - EndLine: 173, - StartPos: 3892, - EndPos: 3894, + EndLine: 173, + StartPos: 3892, + EndPos: 3894, }, Value: "Bar", }, @@ -8546,24 +8474,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 173, - EndLine: 173, - StartPos: 3897, - EndPos: 3907, + EndLine: 173, + StartPos: 3897, + EndPos: 3907, }, Use: &name.Name{ Position: &position.Position{ StartLine: 173, - EndLine: 173, - StartPos: 3897, - EndPos: 3899, + EndLine: 173, + StartPos: 3897, + EndPos: 3899, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 173, - EndLine: 173, - StartPos: 3897, - EndPos: 3899, + EndLine: 173, + StartPos: 3897, + EndPos: 3899, }, Value: "Baz", }, @@ -8572,9 +8500,9 @@ func TestPhp7(t *testing.T) { Alias: &node.Identifier{ Position: &position.Position{ StartLine: 173, - EndLine: 173, - StartPos: 3904, - EndPos: 3907, + EndLine: 173, + StartPos: 3904, + EndPos: 3907, }, Value: "quux", }, @@ -8584,33 +8512,33 @@ func TestPhp7(t *testing.T) { &stmt.GroupUse{ Position: &position.Position{ StartLine: 174, - EndLine: 174, - StartPos: 3913, - EndPos: 3940, + EndLine: 174, + StartPos: 3913, + EndPos: 3940, }, UseType: &node.Identifier{ Position: &position.Position{ StartLine: 174, - EndLine: 174, - StartPos: 3917, - EndPos: 3924, + EndLine: 174, + StartPos: 3917, + EndPos: 3924, }, Value: "function", }, Prefix: &name.Name{ Position: &position.Position{ StartLine: 174, - EndLine: 174, - StartPos: 3926, - EndPos: 3928, + EndLine: 174, + StartPos: 3926, + EndPos: 3928, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 174, - EndLine: 174, - StartPos: 3926, - EndPos: 3928, + EndLine: 174, + StartPos: 3926, + EndPos: 3928, }, Value: "Foo", }, @@ -8620,24 +8548,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 174, - EndLine: 174, - StartPos: 3931, - EndPos: 3933, + EndLine: 174, + StartPos: 3931, + EndPos: 3933, }, Use: &name.Name{ Position: &position.Position{ StartLine: 174, - EndLine: 174, - StartPos: 3931, - EndPos: 3933, + EndLine: 174, + StartPos: 3931, + EndPos: 3933, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 174, - EndLine: 174, - StartPos: 3931, - EndPos: 3933, + EndLine: 174, + StartPos: 3931, + EndPos: 3933, }, Value: "Bar", }, @@ -8647,24 +8575,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 174, - EndLine: 174, - StartPos: 3936, - EndPos: 3938, + EndLine: 174, + StartPos: 3936, + EndPos: 3938, }, Use: &name.Name{ Position: &position.Position{ StartLine: 174, - EndLine: 174, - StartPos: 3936, - EndPos: 3938, + EndLine: 174, + StartPos: 3936, + EndPos: 3938, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 174, - EndLine: 174, - StartPos: 3936, - EndPos: 3938, + EndLine: 174, + StartPos: 3936, + EndPos: 3938, }, Value: "Baz", }, @@ -8676,33 +8604,33 @@ func TestPhp7(t *testing.T) { &stmt.GroupUse{ Position: &position.Position{ StartLine: 175, - EndLine: 175, - StartPos: 3944, - EndPos: 3969, + EndLine: 175, + StartPos: 3944, + EndPos: 3969, }, UseType: &node.Identifier{ Position: &position.Position{ StartLine: 175, - EndLine: 175, - StartPos: 3948, - EndPos: 3952, + EndLine: 175, + StartPos: 3948, + EndPos: 3952, }, Value: "const", }, Prefix: &name.Name{ Position: &position.Position{ StartLine: 175, - EndLine: 175, - StartPos: 3955, - EndPos: 3957, + EndLine: 175, + StartPos: 3955, + EndPos: 3957, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 175, - EndLine: 175, - StartPos: 3955, - EndPos: 3957, + EndLine: 175, + StartPos: 3955, + EndPos: 3957, }, Value: "Foo", }, @@ -8712,24 +8640,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 175, - EndLine: 175, - StartPos: 3960, - EndPos: 3962, + EndLine: 175, + StartPos: 3960, + EndPos: 3962, }, Use: &name.Name{ Position: &position.Position{ StartLine: 175, - EndLine: 175, - StartPos: 3960, - EndPos: 3962, + EndLine: 175, + StartPos: 3960, + EndPos: 3962, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 175, - EndLine: 175, - StartPos: 3960, - EndPos: 3962, + EndLine: 175, + StartPos: 3960, + EndPos: 3962, }, Value: "Bar", }, @@ -8739,24 +8667,24 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 175, - EndLine: 175, - StartPos: 3965, - EndPos: 3967, + EndLine: 175, + StartPos: 3965, + EndPos: 3967, }, Use: &name.Name{ Position: &position.Position{ StartLine: 175, - EndLine: 175, - StartPos: 3965, - EndPos: 3967, + EndLine: 175, + StartPos: 3965, + EndPos: 3967, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 175, - EndLine: 175, - StartPos: 3965, - EndPos: 3967, + EndLine: 175, + StartPos: 3965, + EndPos: 3967, }, Value: "Baz", }, @@ -8768,24 +8696,24 @@ func TestPhp7(t *testing.T) { &stmt.GroupUse{ Position: &position.Position{ StartLine: 176, - EndLine: 176, - StartPos: 3973, - EndPos: 4006, + EndLine: 176, + StartPos: 3973, + EndPos: 4006, }, Prefix: &name.Name{ Position: &position.Position{ StartLine: 176, - EndLine: 176, - StartPos: 3977, - EndPos: 3979, + EndLine: 176, + StartPos: 3977, + EndPos: 3979, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 176, - EndLine: 176, - StartPos: 3977, - EndPos: 3979, + EndLine: 176, + StartPos: 3977, + EndPos: 3979, }, Value: "Foo", }, @@ -8795,33 +8723,33 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 176, - EndLine: 176, - StartPos: 3988, - EndPos: 3990, + EndLine: 176, + StartPos: 3988, + EndPos: 3990, }, UseType: &node.Identifier{ Position: &position.Position{ StartLine: 176, - EndLine: 176, - StartPos: 3982, - EndPos: 3986, + EndLine: 176, + StartPos: 3982, + EndPos: 3986, }, Value: "const", }, Use: &name.Name{ Position: &position.Position{ StartLine: 176, - EndLine: 176, - StartPos: 3988, - EndPos: 3990, + EndLine: 176, + StartPos: 3988, + EndPos: 3990, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 176, - EndLine: 176, - StartPos: 3988, - EndPos: 3990, + EndLine: 176, + StartPos: 3988, + EndPos: 3990, }, Value: "Bar", }, @@ -8831,33 +8759,33 @@ func TestPhp7(t *testing.T) { &stmt.Use{ Position: &position.Position{ StartLine: 176, - EndLine: 176, - StartPos: 4002, - EndPos: 4004, + EndLine: 176, + StartPos: 4002, + EndPos: 4004, }, UseType: &node.Identifier{ Position: &position.Position{ StartLine: 176, - EndLine: 176, - StartPos: 3993, - EndPos: 4000, + EndLine: 176, + StartPos: 3993, + EndPos: 4000, }, Value: "function", }, Use: &name.Name{ Position: &position.Position{ StartLine: 176, - EndLine: 176, - StartPos: 4002, - EndPos: 4004, + EndLine: 176, + StartPos: 4002, + EndPos: 4004, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 176, - EndLine: 176, - StartPos: 4002, - EndPos: 4004, + EndLine: 176, + StartPos: 4002, + EndPos: 4004, }, Value: "Baz", }, @@ -8869,30 +8797,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 178, - EndLine: 178, - StartPos: 4011, - EndPos: 4016, + EndLine: 178, + StartPos: 4011, + EndPos: 4016, }, Expr: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 178, - EndLine: 178, - StartPos: 4011, - EndPos: 4015, + EndLine: 178, + StartPos: 4011, + EndPos: 4015, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 178, - EndLine: 178, - StartPos: 4011, - EndPos: 4012, + EndLine: 178, + StartPos: 4011, + EndPos: 4012, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 178, - EndLine: 178, - StartPos: 4011, - EndPos: 4012, + EndLine: 178, + StartPos: 4011, + EndPos: 4012, }, Value: "a", }, @@ -8900,9 +8828,9 @@ func TestPhp7(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 178, - EndLine: 178, - StartPos: 4014, - EndPos: 4014, + EndLine: 178, + StartPos: 4014, + EndPos: 4014, }, Value: "1", }, @@ -8911,37 +8839,37 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 179, - EndLine: 179, - StartPos: 4020, - EndPos: 4028, + EndLine: 179, + StartPos: 4020, + EndPos: 4028, }, Expr: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 179, - EndLine: 179, - StartPos: 4020, - EndPos: 4027, + EndLine: 179, + StartPos: 4020, + EndPos: 4027, }, Variable: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 179, - EndLine: 179, - StartPos: 4020, - EndPos: 4024, + EndLine: 179, + StartPos: 4020, + EndPos: 4024, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 179, - EndLine: 179, - StartPos: 4020, - EndPos: 4021, + EndLine: 179, + StartPos: 4020, + EndPos: 4021, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 179, - EndLine: 179, - StartPos: 4020, - EndPos: 4021, + EndLine: 179, + StartPos: 4020, + EndPos: 4021, }, Value: "a", }, @@ -8949,9 +8877,9 @@ func TestPhp7(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 179, - EndLine: 179, - StartPos: 4023, - EndPos: 4023, + EndLine: 179, + StartPos: 4023, + EndPos: 4023, }, Value: "1", }, @@ -8959,9 +8887,9 @@ func TestPhp7(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 179, - EndLine: 179, - StartPos: 4026, - EndPos: 4026, + EndLine: 179, + StartPos: 4026, + EndPos: 4026, }, Value: "2", }, @@ -8970,49 +8898,48 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 180, - EndLine: 180, - StartPos: 4032, - EndPos: 4039, + EndLine: 180, + StartPos: 4032, + EndPos: 4039, }, Expr: &expr.Array{ Position: &position.Position{ StartLine: 180, - EndLine: 180, - StartPos: 4032, - EndPos: 4038, - }, - Items: []node.Node{ + EndLine: 180, + StartPos: 4032, + EndPos: 4038, }, + Items: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4043, - EndPos: 4051, + EndLine: 181, + StartPos: 4043, + EndPos: 4051, }, Expr: &expr.Array{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4043, - EndPos: 4050, + EndLine: 181, + StartPos: 4043, + EndPos: 4050, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4049, - EndPos: 4049, + EndLine: 181, + StartPos: 4049, + EndPos: 4049, }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 181, - EndLine: 181, - StartPos: 4049, - EndPos: 4049, + EndLine: 181, + StartPos: 4049, + EndPos: 4049, }, Value: "1", }, @@ -9023,40 +8950,40 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 182, - EndLine: 182, - StartPos: 4055, - EndPos: 4072, + EndLine: 182, + StartPos: 4055, + EndPos: 4072, }, Expr: &expr.Array{ Position: &position.Position{ StartLine: 182, - EndLine: 182, - StartPos: 4055, - EndPos: 4071, + EndLine: 182, + StartPos: 4055, + EndPos: 4071, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 182, - EndLine: 182, - StartPos: 4061, - EndPos: 4064, + EndLine: 182, + StartPos: 4061, + EndPos: 4064, }, Key: &scalar.Lnumber{ Position: &position.Position{ StartLine: 182, - EndLine: 182, - StartPos: 4061, - EndPos: 4061, + EndLine: 182, + StartPos: 4061, + EndPos: 4061, }, Value: "1", }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 182, - EndLine: 182, - StartPos: 4064, - EndPos: 4064, + EndLine: 182, + StartPos: 4064, + EndPos: 4064, }, Value: "1", }, @@ -9064,68 +8991,67 @@ func TestPhp7(t *testing.T) { &expr.ArrayItem{ Position: &position.Position{ StartLine: 182, - EndLine: 182, - StartPos: 4067, - EndPos: 4069, + EndLine: 182, + StartPos: 4067, + EndPos: 4069, }, Val: &expr.Reference{ Position: &position.Position{ StartLine: 182, - EndLine: 182, - StartPos: 4067, - EndPos: 4069, + EndLine: 182, + StartPos: 4067, + EndPos: 4069, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 182, - EndLine: 182, - StartPos: 4068, - EndPos: 4069, + EndLine: 182, + StartPos: 4068, + EndPos: 4069, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 182, - EndLine: 182, - StartPos: 4068, - EndPos: 4069, + EndLine: 182, + StartPos: 4068, + EndPos: 4069, }, Value: "b", }, }, }, }, - &expr.ArrayItem{ - }, + &expr.ArrayItem{}, }, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 183, - EndLine: 183, - StartPos: 4076, - EndPos: 4079, + EndLine: 183, + StartPos: 4076, + EndPos: 4079, }, Expr: &expr.BitwiseNot{ Position: &position.Position{ StartLine: 183, - EndLine: 183, - StartPos: 4076, - EndPos: 4078, + EndLine: 183, + StartPos: 4076, + EndPos: 4078, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 183, - EndLine: 183, - StartPos: 4077, - EndPos: 4078, + EndLine: 183, + StartPos: 4077, + EndPos: 4078, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 183, - EndLine: 183, - StartPos: 4077, - EndPos: 4078, + EndLine: 183, + StartPos: 4077, + EndPos: 4078, }, Value: "a", }, @@ -9135,30 +9061,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 184, - EndLine: 184, - StartPos: 4083, - EndPos: 4086, + EndLine: 184, + StartPos: 4083, + EndPos: 4086, }, Expr: &expr.BooleanNot{ Position: &position.Position{ StartLine: 184, - EndLine: 184, - StartPos: 4083, - EndPos: 4085, + EndLine: 184, + StartPos: 4083, + EndPos: 4085, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 184, - EndLine: 184, - StartPos: 4084, - EndPos: 4085, + EndLine: 184, + StartPos: 4084, + EndPos: 4085, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 184, - EndLine: 184, - StartPos: 4084, - EndPos: 4085, + EndLine: 184, + StartPos: 4084, + EndPos: 4085, }, Value: "a", }, @@ -9168,31 +9094,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 186, - EndLine: 186, - StartPos: 4091, - EndPos: 4099, + EndLine: 186, + StartPos: 4091, + EndPos: 4099, }, Expr: &expr.ClassConstFetch{ Position: &position.Position{ StartLine: 186, - EndLine: 186, - StartPos: 4091, - EndPos: 4098, + EndLine: 186, + StartPos: 4091, + EndPos: 4098, }, Class: &name.Name{ Position: &position.Position{ StartLine: 186, - EndLine: 186, - StartPos: 4091, - EndPos: 4093, + EndLine: 186, + StartPos: 4091, + EndPos: 4093, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 186, - EndLine: 186, - StartPos: 4091, - EndPos: 4093, + EndLine: 186, + StartPos: 4091, + EndPos: 4093, }, Value: "Foo", }, @@ -9201,9 +9127,9 @@ func TestPhp7(t *testing.T) { ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 186, - EndLine: 186, - StartPos: 4096, - EndPos: 4098, + EndLine: 186, + StartPos: 4096, + EndPos: 4098, }, Value: "Bar", }, @@ -9212,30 +9138,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 187, - EndLine: 187, - StartPos: 4103, - EndPos: 4112, + EndLine: 187, + StartPos: 4103, + EndPos: 4112, }, Expr: &expr.ClassConstFetch{ Position: &position.Position{ StartLine: 187, - EndLine: 187, - StartPos: 4103, - EndPos: 4111, + EndLine: 187, + StartPos: 4103, + EndPos: 4111, }, Class: &expr.Variable{ Position: &position.Position{ StartLine: 187, - EndLine: 187, - StartPos: 4103, - EndPos: 4106, + EndLine: 187, + StartPos: 4103, + EndPos: 4106, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 187, - EndLine: 187, - StartPos: 4103, - EndPos: 4106, + EndLine: 187, + StartPos: 4103, + EndPos: 4106, }, Value: "foo", }, @@ -9243,9 +9169,9 @@ func TestPhp7(t *testing.T) { ConstantName: &node.Identifier{ Position: &position.Position{ StartLine: 187, - EndLine: 187, - StartPos: 4109, - EndPos: 4111, + EndLine: 187, + StartPos: 4109, + EndPos: 4111, }, Value: "Bar", }, @@ -9254,30 +9180,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 188, - EndLine: 188, - StartPos: 4116, - EndPos: 4125, + EndLine: 188, + StartPos: 4116, + EndPos: 4125, }, Expr: &expr.Clone{ Position: &position.Position{ StartLine: 188, - EndLine: 188, - StartPos: 4116, - EndPos: 4123, + EndLine: 188, + StartPos: 4116, + EndPos: 4123, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 188, - EndLine: 188, - StartPos: 4122, - EndPos: 4123, + EndLine: 188, + StartPos: 4122, + EndPos: 4123, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 188, - EndLine: 188, - StartPos: 4122, - EndPos: 4123, + EndLine: 188, + StartPos: 4122, + EndPos: 4123, }, Value: "a", }, @@ -9287,30 +9213,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 189, - EndLine: 189, - StartPos: 4129, - EndPos: 4137, + EndLine: 189, + StartPos: 4129, + EndPos: 4137, }, Expr: &expr.Clone{ Position: &position.Position{ StartLine: 189, - EndLine: 189, - StartPos: 4129, - EndPos: 4136, + EndLine: 189, + StartPos: 4129, + EndPos: 4136, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 189, - EndLine: 189, - StartPos: 4135, - EndPos: 4136, + EndLine: 189, + StartPos: 4135, + EndPos: 4136, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 189, - EndLine: 189, - StartPos: 4135, - EndPos: 4136, + EndLine: 189, + StartPos: 4135, + EndPos: 4136, }, Value: "a", }, @@ -9320,64 +9246,63 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 190, - EndLine: 190, - StartPos: 4141, - EndPos: 4153, + EndLine: 190, + StartPos: 4141, + EndPos: 4153, }, Expr: &expr.Closure{ Position: &position.Position{ StartLine: 190, - EndLine: 190, - StartPos: 4141, - EndPos: 4152, + EndLine: 190, + StartPos: 4141, + EndPos: 4152, }, - ReturnsRef: false, - Static: false, + ReturnsRef: false, + Static: false, PhpDocComment: "", - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 191, - EndLine: 191, - StartPos: 4157, - EndPos: 4190, + EndLine: 191, + StartPos: 4157, + EndPos: 4190, }, Expr: &expr.Closure{ Position: &position.Position{ StartLine: 191, - EndLine: 191, - StartPos: 4157, - EndPos: 4189, + EndLine: 191, + StartPos: 4157, + EndPos: 4189, }, PhpDocComment: "", - ReturnsRef: false, - Static: false, + ReturnsRef: false, + Static: false, Params: []node.Node{ &node.Parameter{ Position: &position.Position{ StartLine: 191, - EndLine: 191, - StartPos: 4166, - EndPos: 4167, + EndLine: 191, + StartPos: 4166, + EndPos: 4167, }, - ByRef: false, + ByRef: false, Variadic: false, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 191, - EndLine: 191, - StartPos: 4166, - EndPos: 4167, + EndLine: 191, + StartPos: 4166, + EndPos: 4167, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 191, - EndLine: 191, - StartPos: 4166, - EndPos: 4167, + EndLine: 191, + StartPos: 4166, + EndPos: 4167, }, Value: "a", }, @@ -9386,25 +9311,25 @@ func TestPhp7(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 191, - EndLine: 191, - StartPos: 4170, - EndPos: 4171, + EndLine: 191, + StartPos: 4170, + EndPos: 4171, }, - ByRef: false, + ByRef: false, Variadic: false, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 191, - EndLine: 191, - StartPos: 4170, - EndPos: 4171, + EndLine: 191, + StartPos: 4170, + EndPos: 4171, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 191, - EndLine: 191, - StartPos: 4170, - EndPos: 4171, + EndLine: 191, + StartPos: 4170, + EndPos: 4171, }, Value: "b", }, @@ -9414,24 +9339,24 @@ func TestPhp7(t *testing.T) { ClosureUse: &expr.ClosureUse{ Position: &position.Position{ StartLine: 191, - EndLine: 191, - StartPos: 4174, - EndPos: 4186, + EndLine: 191, + StartPos: 4174, + EndPos: 4186, }, Uses: []node.Node{ &expr.Variable{ Position: &position.Position{ StartLine: 191, - EndLine: 191, - StartPos: 4179, - EndPos: 4180, + EndLine: 191, + StartPos: 4179, + EndPos: 4180, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 191, - EndLine: 191, - StartPos: 4179, - EndPos: 4180, + EndLine: 191, + StartPos: 4179, + EndPos: 4180, }, Value: "c", }, @@ -9439,23 +9364,23 @@ func TestPhp7(t *testing.T) { &expr.Reference{ Position: &position.Position{ StartLine: 191, - EndLine: 191, - StartPos: 4183, - EndPos: 4185, + EndLine: 191, + StartPos: 4183, + EndPos: 4185, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 191, - EndLine: 191, - StartPos: 4184, - EndPos: 4185, + EndLine: 191, + StartPos: 4184, + EndPos: 4185, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 191, - EndLine: 191, - StartPos: 4184, - EndPos: 4185, + EndLine: 191, + StartPos: 4184, + EndPos: 4185, }, Value: "d", }, @@ -9463,78 +9388,76 @@ func TestPhp7(t *testing.T) { }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 192, - EndLine: 192, - StartPos: 4194, - EndPos: 4213, + EndLine: 192, + StartPos: 4194, + EndPos: 4213, }, Expr: &expr.Closure{ Position: &position.Position{ StartLine: 192, - EndLine: 192, - StartPos: 4194, - EndPos: 4212, + EndLine: 192, + StartPos: 4194, + EndPos: 4212, }, - ReturnsRef: false, - Static: false, + ReturnsRef: false, + Static: false, PhpDocComment: "", ReturnType: &name.Name{ Position: &position.Position{ StartLine: 192, - EndLine: 192, - StartPos: 4206, - EndPos: 4209, + EndLine: 192, + StartPos: 4206, + EndPos: 4209, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 192, - EndLine: 192, - StartPos: 4206, - EndPos: 4209, + EndLine: 192, + StartPos: 4206, + EndPos: 4209, }, Value: "void", }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 193, - EndLine: 193, - StartPos: 4217, - EndPos: 4220, + EndLine: 193, + StartPos: 4217, + EndPos: 4220, }, Expr: &expr.ConstFetch{ Position: &position.Position{ StartLine: 193, - EndLine: 193, - StartPos: 4217, - EndPos: 4219, + EndLine: 193, + StartPos: 4217, + EndPos: 4219, }, Constant: &name.Name{ Position: &position.Position{ StartLine: 193, - EndLine: 193, - StartPos: 4217, - EndPos: 4219, + EndLine: 193, + StartPos: 4217, + EndPos: 4219, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 193, - EndLine: 193, - StartPos: 4217, - EndPos: 4219, + EndLine: 193, + StartPos: 4217, + EndPos: 4219, }, Value: "foo", }, @@ -9545,31 +9468,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 194, - EndLine: 194, - StartPos: 4224, - EndPos: 4237, + EndLine: 194, + StartPos: 4224, + EndPos: 4237, }, Expr: &expr.ConstFetch{ Position: &position.Position{ StartLine: 194, - EndLine: 194, - StartPos: 4224, - EndPos: 4236, + EndLine: 194, + StartPos: 4224, + EndPos: 4236, }, Constant: &name.Relative{ Position: &position.Position{ StartLine: 194, - EndLine: 194, - StartPos: 4224, - EndPos: 4236, + EndLine: 194, + StartPos: 4224, + EndPos: 4236, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 194, - EndLine: 194, - StartPos: 4234, - EndPos: 4236, + EndLine: 194, + StartPos: 4234, + EndPos: 4236, }, Value: "foo", }, @@ -9580,31 +9503,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 195, - EndLine: 195, - StartPos: 4241, - EndPos: 4245, + EndLine: 195, + StartPos: 4241, + EndPos: 4245, }, Expr: &expr.ConstFetch{ Position: &position.Position{ StartLine: 195, - EndLine: 195, - StartPos: 4241, - EndPos: 4244, + EndLine: 195, + StartPos: 4241, + EndPos: 4244, }, Constant: &name.FullyQualified{ Position: &position.Position{ StartLine: 195, - EndLine: 195, - StartPos: 4241, - EndPos: 4244, + EndLine: 195, + StartPos: 4241, + EndPos: 4244, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 195, - EndLine: 195, - StartPos: 4242, - EndPos: 4244, + EndLine: 195, + StartPos: 4242, + EndPos: 4244, }, Value: "foo", }, @@ -9615,30 +9538,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 197, - EndLine: 197, - StartPos: 4250, - EndPos: 4259, + EndLine: 197, + StartPos: 4250, + EndPos: 4259, }, Expr: &expr.Empty{ Position: &position.Position{ StartLine: 197, - EndLine: 197, - StartPos: 4250, - EndPos: 4258, + EndLine: 197, + StartPos: 4250, + EndPos: 4258, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 197, - EndLine: 197, - StartPos: 4256, - EndPos: 4257, + EndLine: 197, + StartPos: 4256, + EndPos: 4257, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 197, - EndLine: 197, - StartPos: 4256, - EndPos: 4257, + EndLine: 197, + StartPos: 4256, + EndPos: 4257, }, Value: "a", }, @@ -9648,30 +9571,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 198, - EndLine: 198, - StartPos: 4263, - EndPos: 4266, + EndLine: 198, + StartPos: 4263, + EndPos: 4266, }, Expr: &expr.ErrorSuppress{ Position: &position.Position{ StartLine: 198, - EndLine: 198, - StartPos: 4263, - EndPos: 4265, + EndLine: 198, + StartPos: 4263, + EndPos: 4265, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 198, - EndLine: 198, - StartPos: 4264, - EndPos: 4265, + EndLine: 198, + StartPos: 4264, + EndPos: 4265, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 198, - EndLine: 198, - StartPos: 4264, - EndPos: 4265, + EndLine: 198, + StartPos: 4264, + EndPos: 4265, }, Value: "a", }, @@ -9681,30 +9604,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 199, - EndLine: 199, - StartPos: 4270, - EndPos: 4278, + EndLine: 199, + StartPos: 4270, + EndPos: 4278, }, Expr: &expr.Eval{ Position: &position.Position{ StartLine: 199, - EndLine: 199, - StartPos: 4270, - EndPos: 4277, + EndLine: 199, + StartPos: 4270, + EndPos: 4277, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 199, - EndLine: 199, - StartPos: 4275, - EndPos: 4276, + EndLine: 199, + StartPos: 4275, + EndPos: 4276, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 199, - EndLine: 199, - StartPos: 4275, - EndPos: 4276, + EndLine: 199, + StartPos: 4275, + EndPos: 4276, }, Value: "a", }, @@ -9714,46 +9637,46 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 200, - EndLine: 200, - StartPos: 4282, - EndPos: 4286, + EndLine: 200, + StartPos: 4282, + EndPos: 4286, }, Expr: &expr.Exit{ Position: &position.Position{ StartLine: 200, - EndLine: 200, - StartPos: 4282, - EndPos: 4285, + EndLine: 200, + StartPos: 4282, + EndPos: 4285, }, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 201, - EndLine: 201, - StartPos: 4290, - EndPos: 4298, + EndLine: 201, + StartPos: 4290, + EndPos: 4298, }, Expr: &expr.Exit{ Position: &position.Position{ StartLine: 201, - EndLine: 201, - StartPos: 4290, - EndPos: 4297, + EndLine: 201, + StartPos: 4290, + EndPos: 4297, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 201, - EndLine: 201, - StartPos: 4295, - EndPos: 4296, + EndLine: 201, + StartPos: 4295, + EndPos: 4296, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 201, - EndLine: 201, - StartPos: 4295, - EndPos: 4296, + EndLine: 201, + StartPos: 4295, + EndPos: 4296, }, Value: "a", }, @@ -9763,46 +9686,46 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 202, - EndLine: 202, - StartPos: 4302, - EndPos: 4305, + EndLine: 202, + StartPos: 4302, + EndPos: 4305, }, Expr: &expr.Die{ Position: &position.Position{ StartLine: 202, - EndLine: 202, - StartPos: 4302, - EndPos: 4304, + EndLine: 202, + StartPos: 4302, + EndPos: 4304, }, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 203, - EndLine: 203, - StartPos: 4309, - EndPos: 4316, + EndLine: 203, + StartPos: 4309, + EndPos: 4316, }, Expr: &expr.Die{ Position: &position.Position{ StartLine: 203, - EndLine: 203, - StartPos: 4309, - EndPos: 4315, + EndLine: 203, + StartPos: 4309, + EndPos: 4315, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 203, - EndLine: 203, - StartPos: 4313, - EndPos: 4314, + EndLine: 203, + StartPos: 4313, + EndPos: 4314, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 203, - EndLine: 203, - StartPos: 4313, - EndPos: 4314, + EndLine: 203, + StartPos: 4313, + EndPos: 4314, }, Value: "a", }, @@ -9812,31 +9735,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 204, - EndLine: 204, - StartPos: 4320, - EndPos: 4325, + EndLine: 204, + StartPos: 4320, + EndPos: 4325, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 204, - EndLine: 204, - StartPos: 4320, - EndPos: 4324, + EndLine: 204, + StartPos: 4320, + EndPos: 4324, }, Function: &name.Name{ Position: &position.Position{ StartLine: 204, - EndLine: 204, - StartPos: 4320, - EndPos: 4322, + EndLine: 204, + StartPos: 4320, + EndPos: 4322, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 204, - EndLine: 204, - StartPos: 4320, - EndPos: 4322, + EndLine: 204, + StartPos: 4320, + EndPos: 4322, }, Value: "foo", }, @@ -9845,9 +9768,9 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 204, - EndLine: 204, - StartPos: 4323, - EndPos: 4324, + EndLine: 204, + StartPos: 4323, + EndPos: 4324, }, }, }, @@ -9855,31 +9778,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 205, - EndLine: 205, - StartPos: 4329, - EndPos: 4344, + EndLine: 205, + StartPos: 4329, + EndPos: 4344, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 205, - EndLine: 205, - StartPos: 4329, - EndPos: 4343, + EndLine: 205, + StartPos: 4329, + EndPos: 4343, }, Function: &name.Relative{ Position: &position.Position{ StartLine: 205, - EndLine: 205, - StartPos: 4329, - EndPos: 4341, + EndLine: 205, + StartPos: 4329, + EndPos: 4341, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 205, - EndLine: 205, - StartPos: 4339, - EndPos: 4341, + EndLine: 205, + StartPos: 4339, + EndPos: 4341, }, Value: "foo", }, @@ -9888,9 +9811,9 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 205, - EndLine: 205, - StartPos: 4342, - EndPos: 4343, + EndLine: 205, + StartPos: 4342, + EndPos: 4343, }, }, }, @@ -9898,31 +9821,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 206, - EndLine: 206, - StartPos: 4348, - EndPos: 4354, + EndLine: 206, + StartPos: 4348, + EndPos: 4354, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 206, - EndLine: 206, - StartPos: 4348, - EndPos: 4353, + EndLine: 206, + StartPos: 4348, + EndPos: 4353, }, Function: &name.FullyQualified{ Position: &position.Position{ StartLine: 206, - EndLine: 206, - StartPos: 4348, - EndPos: 4351, + EndLine: 206, + StartPos: 4348, + EndPos: 4351, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 206, - EndLine: 206, - StartPos: 4349, - EndPos: 4351, + EndLine: 206, + StartPos: 4349, + EndPos: 4351, }, Value: "foo", }, @@ -9931,9 +9854,9 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 206, - EndLine: 206, - StartPos: 4352, - EndPos: 4353, + EndLine: 206, + StartPos: 4352, + EndPos: 4353, }, }, }, @@ -9941,30 +9864,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 207, - EndLine: 207, - StartPos: 4358, - EndPos: 4364, + EndLine: 207, + StartPos: 4358, + EndPos: 4364, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 207, - EndLine: 207, - StartPos: 4358, - EndPos: 4363, + EndLine: 207, + StartPos: 4358, + EndPos: 4363, }, Function: &expr.Variable{ Position: &position.Position{ StartLine: 207, - EndLine: 207, - StartPos: 4358, - EndPos: 4361, + EndLine: 207, + StartPos: 4358, + EndPos: 4361, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 207, - EndLine: 207, - StartPos: 4358, - EndPos: 4361, + EndLine: 207, + StartPos: 4358, + EndPos: 4361, }, Value: "foo", }, @@ -9972,9 +9895,9 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 207, - EndLine: 207, - StartPos: 4362, - EndPos: 4363, + EndLine: 207, + StartPos: 4362, + EndPos: 4363, }, }, }, @@ -9982,30 +9905,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 209, - EndLine: 209, - StartPos: 4369, - EndPos: 4373, + EndLine: 209, + StartPos: 4369, + EndPos: 4373, }, Expr: &expr.PostDec{ Position: &position.Position{ StartLine: 209, - EndLine: 209, - StartPos: 4369, - EndPos: 4372, + EndLine: 209, + StartPos: 4369, + EndPos: 4372, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 209, - EndLine: 209, - StartPos: 4369, - EndPos: 4370, + EndLine: 209, + StartPos: 4369, + EndPos: 4370, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 209, - EndLine: 209, - StartPos: 4369, - EndPos: 4370, + EndLine: 209, + StartPos: 4369, + EndPos: 4370, }, Value: "a", }, @@ -10015,30 +9938,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 210, - EndLine: 210, - StartPos: 4377, - EndPos: 4381, + EndLine: 210, + StartPos: 4377, + EndPos: 4381, }, Expr: &expr.PostInc{ Position: &position.Position{ StartLine: 210, - EndLine: 210, - StartPos: 4377, - EndPos: 4380, + EndLine: 210, + StartPos: 4377, + EndPos: 4380, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 210, - EndLine: 210, - StartPos: 4377, - EndPos: 4378, + EndLine: 210, + StartPos: 4377, + EndPos: 4378, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 210, - EndLine: 210, - StartPos: 4377, - EndPos: 4378, + EndLine: 210, + StartPos: 4377, + EndPos: 4378, }, Value: "a", }, @@ -10048,30 +9971,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 211, - EndLine: 211, - StartPos: 4385, - EndPos: 4389, + EndLine: 211, + StartPos: 4385, + EndPos: 4389, }, Expr: &expr.PreDec{ Position: &position.Position{ StartLine: 211, - EndLine: 211, - StartPos: 4385, - EndPos: 4388, + EndLine: 211, + StartPos: 4385, + EndPos: 4388, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 211, - EndLine: 211, - StartPos: 4387, - EndPos: 4388, + EndLine: 211, + StartPos: 4387, + EndPos: 4388, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 211, - EndLine: 211, - StartPos: 4387, - EndPos: 4388, + EndLine: 211, + StartPos: 4387, + EndPos: 4388, }, Value: "a", }, @@ -10081,30 +10004,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 212, - EndLine: 212, - StartPos: 4393, - EndPos: 4397, + EndLine: 212, + StartPos: 4393, + EndPos: 4397, }, Expr: &expr.PreInc{ Position: &position.Position{ StartLine: 212, - EndLine: 212, - StartPos: 4393, - EndPos: 4396, + EndLine: 212, + StartPos: 4393, + EndPos: 4396, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 212, - EndLine: 212, - StartPos: 4395, - EndPos: 4396, + EndLine: 212, + StartPos: 4395, + EndPos: 4396, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 212, - EndLine: 212, - StartPos: 4395, - EndPos: 4396, + EndLine: 212, + StartPos: 4395, + EndPos: 4396, }, Value: "a", }, @@ -10114,30 +10037,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 214, - EndLine: 214, - StartPos: 4402, - EndPos: 4412, + EndLine: 214, + StartPos: 4402, + EndPos: 4412, }, Expr: &expr.Include{ Position: &position.Position{ StartLine: 214, - EndLine: 214, - StartPos: 4402, - EndPos: 4411, + EndLine: 214, + StartPos: 4402, + EndPos: 4411, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 214, - EndLine: 214, - StartPos: 4410, - EndPos: 4411, + EndLine: 214, + StartPos: 4410, + EndPos: 4411, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 214, - EndLine: 214, - StartPos: 4410, - EndPos: 4411, + EndLine: 214, + StartPos: 4410, + EndPos: 4411, }, Value: "a", }, @@ -10147,30 +10070,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 215, - EndLine: 215, - StartPos: 4416, - EndPos: 4431, + EndLine: 215, + StartPos: 4416, + EndPos: 4431, }, Expr: &expr.IncludeOnce{ Position: &position.Position{ StartLine: 215, - EndLine: 215, - StartPos: 4416, - EndPos: 4430, + EndLine: 215, + StartPos: 4416, + EndPos: 4430, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 215, - EndLine: 215, - StartPos: 4429, - EndPos: 4430, + EndLine: 215, + StartPos: 4429, + EndPos: 4430, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 215, - EndLine: 215, - StartPos: 4429, - EndPos: 4430, + EndLine: 215, + StartPos: 4429, + EndPos: 4430, }, Value: "a", }, @@ -10180,30 +10103,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 216, - EndLine: 216, - StartPos: 4435, - EndPos: 4445, + EndLine: 216, + StartPos: 4435, + EndPos: 4445, }, Expr: &expr.Require{ Position: &position.Position{ StartLine: 216, - EndLine: 216, - StartPos: 4435, - EndPos: 4444, + EndLine: 216, + StartPos: 4435, + EndPos: 4444, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 216, - EndLine: 216, - StartPos: 4443, - EndPos: 4444, + EndLine: 216, + StartPos: 4443, + EndPos: 4444, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 216, - EndLine: 216, - StartPos: 4443, - EndPos: 4444, + EndLine: 216, + StartPos: 4443, + EndPos: 4444, }, Value: "a", }, @@ -10213,30 +10136,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 217, - EndLine: 217, - StartPos: 4449, - EndPos: 4464, + EndLine: 217, + StartPos: 4449, + EndPos: 4464, }, Expr: &expr.RequireOnce{ Position: &position.Position{ StartLine: 217, - EndLine: 217, - StartPos: 4449, - EndPos: 4463, + EndLine: 217, + StartPos: 4449, + EndPos: 4463, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 217, - EndLine: 217, - StartPos: 4462, - EndPos: 4463, + EndLine: 217, + StartPos: 4462, + EndPos: 4463, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 217, - EndLine: 217, - StartPos: 4462, - EndPos: 4463, + EndLine: 217, + StartPos: 4462, + EndPos: 4463, }, Value: "a", }, @@ -10246,30 +10169,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 219, - EndLine: 219, - StartPos: 4469, - EndPos: 4486, + EndLine: 219, + StartPos: 4469, + EndPos: 4486, }, Expr: &expr.InstanceOf{ Position: &position.Position{ StartLine: 219, - EndLine: 219, - StartPos: 4469, - EndPos: 4485, + EndLine: 219, + StartPos: 4469, + EndPos: 4485, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 219, - EndLine: 219, - StartPos: 4469, - EndPos: 4470, + EndLine: 219, + StartPos: 4469, + EndPos: 4470, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 219, - EndLine: 219, - StartPos: 4469, - EndPos: 4470, + EndLine: 219, + StartPos: 4469, + EndPos: 4470, }, Value: "a", }, @@ -10277,17 +10200,17 @@ func TestPhp7(t *testing.T) { Class: &name.Name{ Position: &position.Position{ StartLine: 219, - EndLine: 219, - StartPos: 4483, - EndPos: 4485, + EndLine: 219, + StartPos: 4483, + EndPos: 4485, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 219, - EndLine: 219, - StartPos: 4483, - EndPos: 4485, + EndLine: 219, + StartPos: 4483, + EndPos: 4485, }, Value: "Foo", }, @@ -10298,30 +10221,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 220, - EndLine: 220, - StartPos: 4490, - EndPos: 4517, + EndLine: 220, + StartPos: 4490, + EndPos: 4517, }, Expr: &expr.InstanceOf{ Position: &position.Position{ StartLine: 220, - EndLine: 220, - StartPos: 4490, - EndPos: 4516, + EndLine: 220, + StartPos: 4490, + EndPos: 4516, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 220, - EndLine: 220, - StartPos: 4490, - EndPos: 4491, + EndLine: 220, + StartPos: 4490, + EndPos: 4491, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 220, - EndLine: 220, - StartPos: 4490, - EndPos: 4491, + EndLine: 220, + StartPos: 4490, + EndPos: 4491, }, Value: "a", }, @@ -10329,17 +10252,17 @@ func TestPhp7(t *testing.T) { Class: &name.Relative{ Position: &position.Position{ StartLine: 220, - EndLine: 220, - StartPos: 4504, - EndPos: 4516, + EndLine: 220, + StartPos: 4504, + EndPos: 4516, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 220, - EndLine: 220, - StartPos: 4514, - EndPos: 4516, + EndLine: 220, + StartPos: 4514, + EndPos: 4516, }, Value: "Foo", }, @@ -10350,30 +10273,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 221, - EndLine: 221, - StartPos: 4521, - EndPos: 4539, + EndLine: 221, + StartPos: 4521, + EndPos: 4539, }, Expr: &expr.InstanceOf{ Position: &position.Position{ StartLine: 221, - EndLine: 221, - StartPos: 4521, - EndPos: 4538, + EndLine: 221, + StartPos: 4521, + EndPos: 4538, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 221, - EndLine: 221, - StartPos: 4521, - EndPos: 4522, + EndLine: 221, + StartPos: 4521, + EndPos: 4522, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 221, - EndLine: 221, - StartPos: 4521, - EndPos: 4522, + EndLine: 221, + StartPos: 4521, + EndPos: 4522, }, Value: "a", }, @@ -10381,17 +10304,17 @@ func TestPhp7(t *testing.T) { Class: &name.FullyQualified{ Position: &position.Position{ StartLine: 221, - EndLine: 221, - StartPos: 4535, - EndPos: 4538, + EndLine: 221, + StartPos: 4535, + EndPos: 4538, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 221, - EndLine: 221, - StartPos: 4536, - EndPos: 4538, + EndLine: 221, + StartPos: 4536, + EndPos: 4538, }, Value: "Foo", }, @@ -10402,31 +10325,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 223, - EndLine: 223, - StartPos: 4544, - EndPos: 4557, + EndLine: 223, + StartPos: 4544, + EndPos: 4557, }, Expr: &expr.Isset{ Position: &position.Position{ StartLine: 223, - EndLine: 223, - StartPos: 4544, - EndPos: 4556, + EndLine: 223, + StartPos: 4544, + EndPos: 4556, }, Variables: []node.Node{ &expr.Variable{ Position: &position.Position{ StartLine: 223, - EndLine: 223, - StartPos: 4550, - EndPos: 4551, + EndLine: 223, + StartPos: 4550, + EndPos: 4551, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 223, - EndLine: 223, - StartPos: 4550, - EndPos: 4551, + EndLine: 223, + StartPos: 4550, + EndPos: 4551, }, Value: "a", }, @@ -10434,16 +10357,16 @@ func TestPhp7(t *testing.T) { &expr.Variable{ Position: &position.Position{ StartLine: 223, - EndLine: 223, - StartPos: 4554, - EndPos: 4555, + EndLine: 223, + StartPos: 4554, + EndPos: 4555, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 223, - EndLine: 223, - StartPos: 4554, - EndPos: 4555, + EndLine: 223, + StartPos: 4554, + EndPos: 4555, }, Value: "b", }, @@ -10454,45 +10377,45 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 224, - EndLine: 224, - StartPos: 4561, - EndPos: 4574, + EndLine: 224, + StartPos: 4561, + EndPos: 4574, }, Expr: &assign.Assign{ Position: &position.Position{ StartLine: 224, - EndLine: 224, - StartPos: 4561, - EndPos: 4573, + EndLine: 224, + StartPos: 4561, + EndPos: 4573, }, Variable: &expr.List{ Position: &position.Position{ StartLine: 224, - EndLine: 224, - StartPos: 4561, - EndPos: 4568, + EndLine: 224, + StartPos: 4561, + EndPos: 4568, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 224, - EndLine: 224, - StartPos: 4566, - EndPos: 4567, + EndLine: 224, + StartPos: 4566, + EndPos: 4567, }, Val: &expr.Variable{ Position: &position.Position{ StartLine: 224, - EndLine: 224, - StartPos: 4566, - EndPos: 4567, + EndLine: 224, + StartPos: 4566, + EndPos: 4567, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 224, - EndLine: 224, - StartPos: 4566, - EndPos: 4567, + EndLine: 224, + StartPos: 4566, + EndPos: 4567, }, Value: "a", }, @@ -10503,16 +10426,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 224, - EndLine: 224, - StartPos: 4572, - EndPos: 4573, + EndLine: 224, + StartPos: 4572, + EndPos: 4573, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 224, - EndLine: 224, - StartPos: 4572, - EndPos: 4573, + EndLine: 224, + StartPos: 4572, + EndPos: 4573, }, Value: "b", }, @@ -10522,52 +10445,52 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 225, - EndLine: 225, - StartPos: 4578, - EndPos: 4593, + EndLine: 225, + StartPos: 4578, + EndPos: 4593, }, Expr: &assign.Assign{ Position: &position.Position{ StartLine: 225, - EndLine: 225, - StartPos: 4578, - EndPos: 4592, + EndLine: 225, + StartPos: 4578, + EndPos: 4592, }, Variable: &expr.List{ Position: &position.Position{ StartLine: 225, - EndLine: 225, - StartPos: 4578, - EndPos: 4587, + EndLine: 225, + StartPos: 4578, + EndPos: 4587, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 225, - EndLine: 225, - StartPos: 4583, - EndPos: 4586, + EndLine: 225, + StartPos: 4583, + EndPos: 4586, }, Val: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 225, - EndLine: 225, - StartPos: 4583, - EndPos: 4586, + EndLine: 225, + StartPos: 4583, + EndPos: 4586, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 225, - EndLine: 225, - StartPos: 4583, - EndPos: 4584, + EndLine: 225, + StartPos: 4583, + EndPos: 4584, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 225, - EndLine: 225, - StartPos: 4583, - EndPos: 4584, + EndLine: 225, + StartPos: 4583, + EndPos: 4584, }, Value: "a", }, @@ -10579,16 +10502,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 225, - EndLine: 225, - StartPos: 4591, - EndPos: 4592, + EndLine: 225, + StartPos: 4591, + EndPos: 4592, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 225, - EndLine: 225, - StartPos: 4591, - EndPos: 4592, + EndLine: 225, + StartPos: 4591, + EndPos: 4592, }, Value: "b", }, @@ -10598,60 +10521,60 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 226, - EndLine: 226, - StartPos: 4597, - EndPos: 4616, + EndLine: 226, + StartPos: 4597, + EndPos: 4616, }, Expr: &assign.Assign{ Position: &position.Position{ StartLine: 226, - EndLine: 226, - StartPos: 4597, - EndPos: 4615, + EndLine: 226, + StartPos: 4597, + EndPos: 4615, }, Variable: &expr.List{ Position: &position.Position{ StartLine: 226, - EndLine: 226, - StartPos: 4597, - EndPos: 4610, + EndLine: 226, + StartPos: 4597, + EndPos: 4610, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 226, - EndLine: 226, - StartPos: 4602, - EndPos: 4609, + EndLine: 226, + StartPos: 4602, + EndPos: 4609, }, Val: &expr.List{ Position: &position.Position{ StartLine: 226, - EndLine: 226, - StartPos: 4602, - EndPos: 4609, + EndLine: 226, + StartPos: 4602, + EndPos: 4609, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 226, - EndLine: 226, - StartPos: 4607, - EndPos: 4608, + EndLine: 226, + StartPos: 4607, + EndPos: 4608, }, Val: &expr.Variable{ Position: &position.Position{ StartLine: 226, - EndLine: 226, - StartPos: 4607, - EndPos: 4608, + EndLine: 226, + StartPos: 4607, + EndPos: 4608, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 226, - EndLine: 226, - StartPos: 4607, - EndPos: 4608, + EndLine: 226, + StartPos: 4607, + EndPos: 4608, }, Value: "a", }, @@ -10665,16 +10588,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 226, - EndLine: 226, - StartPos: 4614, - EndPos: 4615, + EndLine: 226, + StartPos: 4614, + EndPos: 4615, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 226, - EndLine: 226, - StartPos: 4614, - EndPos: 4615, + EndLine: 226, + StartPos: 4614, + EndPos: 4615, }, Value: "b", }, @@ -10684,30 +10607,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4621, - EndPos: 4630, + EndLine: 228, + StartPos: 4621, + EndPos: 4630, }, Expr: &expr.MethodCall{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4621, - EndPos: 4629, + EndLine: 228, + StartPos: 4621, + EndPos: 4629, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4621, - EndPos: 4622, + EndLine: 228, + StartPos: 4621, + EndPos: 4622, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4621, - EndPos: 4622, + EndLine: 228, + StartPos: 4621, + EndPos: 4622, }, Value: "a", }, @@ -10715,18 +10638,18 @@ func TestPhp7(t *testing.T) { Method: &node.Identifier{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4625, - EndPos: 4627, + EndLine: 228, + StartPos: 4625, + EndPos: 4627, }, Value: "foo", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 228, - EndLine: 228, - StartPos: 4628, - EndPos: 4629, + EndLine: 228, + StartPos: 4628, + EndPos: 4629, }, }, }, @@ -10734,31 +10657,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 229, - EndLine: 229, - StartPos: 4634, - EndPos: 4643, + EndLine: 229, + StartPos: 4634, + EndPos: 4643, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 229, - EndLine: 229, - StartPos: 4634, - EndPos: 4642, + EndLine: 229, + StartPos: 4634, + EndPos: 4642, }, Class: &name.Name{ Position: &position.Position{ StartLine: 229, - EndLine: 229, - StartPos: 4638, - EndPos: 4640, + EndLine: 229, + StartPos: 4638, + EndPos: 4640, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 229, - EndLine: 229, - StartPos: 4638, - EndPos: 4640, + EndLine: 229, + StartPos: 4638, + EndPos: 4640, }, Value: "Foo", }, @@ -10767,9 +10690,9 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 229, - EndLine: 229, - StartPos: 4641, - EndPos: 4642, + EndLine: 229, + StartPos: 4641, + EndPos: 4642, }, }, }, @@ -10777,31 +10700,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 230, - EndLine: 230, - StartPos: 4647, - EndPos: 4666, + EndLine: 230, + StartPos: 4647, + EndPos: 4666, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 230, - EndLine: 230, - StartPos: 4647, - EndPos: 4665, + EndLine: 230, + StartPos: 4647, + EndPos: 4665, }, Class: &name.Relative{ Position: &position.Position{ StartLine: 230, - EndLine: 230, - StartPos: 4651, - EndPos: 4663, + EndLine: 230, + StartPos: 4651, + EndPos: 4663, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 230, - EndLine: 230, - StartPos: 4661, - EndPos: 4663, + EndLine: 230, + StartPos: 4661, + EndPos: 4663, }, Value: "Foo", }, @@ -10810,9 +10733,9 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 230, - EndLine: 230, - StartPos: 4664, - EndPos: 4665, + EndLine: 230, + StartPos: 4664, + EndPos: 4665, }, }, }, @@ -10820,31 +10743,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 231, - EndLine: 231, - StartPos: 4670, - EndPos: 4680, + EndLine: 231, + StartPos: 4670, + EndPos: 4680, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 231, - EndLine: 231, - StartPos: 4670, - EndPos: 4679, + EndLine: 231, + StartPos: 4670, + EndPos: 4679, }, Class: &name.FullyQualified{ Position: &position.Position{ StartLine: 231, - EndLine: 231, - StartPos: 4674, - EndPos: 4677, + EndLine: 231, + StartPos: 4674, + EndPos: 4677, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 231, - EndLine: 231, - StartPos: 4675, - EndPos: 4677, + EndLine: 231, + StartPos: 4675, + EndPos: 4677, }, Value: "Foo", }, @@ -10853,9 +10776,9 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 231, - EndLine: 231, - StartPos: 4678, - EndPos: 4679, + EndLine: 231, + StartPos: 4678, + EndPos: 4679, }, }, }, @@ -10863,55 +10786,55 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 232, - EndLine: 232, - StartPos: 4684, - EndPos: 4708, + EndLine: 232, + StartPos: 4684, + EndPos: 4708, }, Expr: &expr.New{ Position: &position.Position{ StartLine: 232, - EndLine: 232, - StartPos: 4684, - EndPos: 4707, + EndLine: 232, + StartPos: 4684, + EndPos: 4707, }, Class: &stmt.Class{ Position: &position.Position{ StartLine: 232, - EndLine: 232, - StartPos: 4688, - EndPos: 4707, + EndLine: 232, + StartPos: 4688, + EndPos: 4707, }, PhpDocComment: "", ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 232, - EndLine: 232, - StartPos: 4694, - EndPos: 4704, + EndLine: 232, + StartPos: 4694, + EndPos: 4704, }, Arguments: []node.Node{ &node.Argument{ Position: &position.Position{ StartLine: 232, - EndLine: 232, - StartPos: 4695, - EndPos: 4696, + EndLine: 232, + StartPos: 4695, + EndPos: 4696, }, - Variadic: false, + Variadic: false, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 232, - EndLine: 232, - StartPos: 4695, - EndPos: 4696, + EndLine: 232, + StartPos: 4695, + EndPos: 4696, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 232, - EndLine: 232, - StartPos: 4695, - EndPos: 4696, + EndLine: 232, + StartPos: 4695, + EndPos: 4696, }, Value: "a", }, @@ -10920,25 +10843,25 @@ func TestPhp7(t *testing.T) { &node.Argument{ Position: &position.Position{ StartLine: 232, - EndLine: 232, - StartPos: 4699, - EndPos: 4703, + EndLine: 232, + StartPos: 4699, + EndPos: 4703, }, - Variadic: true, + Variadic: true, IsReference: false, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 232, - EndLine: 232, - StartPos: 4702, - EndPos: 4703, + EndLine: 232, + StartPos: 4702, + EndPos: 4703, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 232, - EndLine: 232, - StartPos: 4702, - EndPos: 4703, + EndLine: 232, + StartPos: 4702, + EndPos: 4703, }, Value: "b", }, @@ -10946,38 +10869,37 @@ func TestPhp7(t *testing.T) { }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 233, - EndLine: 233, - StartPos: 4712, - EndPos: 4721, + EndLine: 233, + StartPos: 4712, + EndPos: 4721, }, Expr: &expr.Print{ Position: &position.Position{ StartLine: 233, - EndLine: 233, - StartPos: 4712, - EndPos: 4719, + EndLine: 233, + StartPos: 4712, + EndPos: 4719, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 233, - EndLine: 233, - StartPos: 4718, - EndPos: 4719, + EndLine: 233, + StartPos: 4718, + EndPos: 4719, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 233, - EndLine: 233, - StartPos: 4718, - EndPos: 4719, + EndLine: 233, + StartPos: 4718, + EndPos: 4719, }, Value: "a", }, @@ -10987,30 +10909,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 234, - EndLine: 234, - StartPos: 4725, - EndPos: 4732, + EndLine: 234, + StartPos: 4725, + EndPos: 4732, }, Expr: &expr.PropertyFetch{ Position: &position.Position{ StartLine: 234, - EndLine: 234, - StartPos: 4725, - EndPos: 4731, + EndLine: 234, + StartPos: 4725, + EndPos: 4731, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 234, - EndLine: 234, - StartPos: 4725, - EndPos: 4726, + EndLine: 234, + StartPos: 4725, + EndPos: 4726, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 234, - EndLine: 234, - StartPos: 4725, - EndPos: 4726, + EndLine: 234, + StartPos: 4725, + EndPos: 4726, }, Value: "a", }, @@ -11018,9 +10940,9 @@ func TestPhp7(t *testing.T) { Property: &node.Identifier{ Position: &position.Position{ StartLine: 234, - EndLine: 234, - StartPos: 4729, - EndPos: 4731, + EndLine: 234, + StartPos: 4729, + EndPos: 4731, }, Value: "foo", }, @@ -11029,40 +10951,40 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 235, - EndLine: 235, - StartPos: 4736, - EndPos: 4744, + EndLine: 235, + StartPos: 4736, + EndPos: 4744, }, Expr: &expr.ShellExec{ Position: &position.Position{ StartLine: 235, - EndLine: 235, - StartPos: 4736, - EndPos: 4743, + EndLine: 235, + StartPos: 4736, + EndPos: 4743, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ Position: &position.Position{ StartLine: 235, - EndLine: 235, - StartPos: 4737, - EndPos: 4740, + EndLine: 235, + StartPos: 4737, + EndPos: 4740, }, Value: "cmd ", }, &expr.Variable{ Position: &position.Position{ StartLine: 235, - EndLine: 235, - StartPos: 4741, - EndPos: 4742, + EndLine: 235, + StartPos: 4741, + EndPos: 4742, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 235, - EndLine: 235, - StartPos: 4741, - EndPos: 4742, + EndLine: 235, + StartPos: 4741, + EndPos: 4742, }, Value: "a", }, @@ -11073,16 +10995,16 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 236, - EndLine: 236, - StartPos: 4748, - EndPos: 4753, + EndLine: 236, + StartPos: 4748, + EndPos: 4753, }, Expr: &expr.ShellExec{ Position: &position.Position{ StartLine: 236, - EndLine: 236, - StartPos: 4748, - EndPos: 4752, + EndLine: 236, + StartPos: 4748, + EndPos: 4752, }, Parts: []node.Node{ &scalar.EncapsedStringPart{ @@ -11094,67 +11016,65 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 237, - EndLine: 237, - StartPos: 4757, - EndPos: 4759, + EndLine: 237, + StartPos: 4757, + EndPos: 4759, }, Expr: &expr.ShellExec{ Position: &position.Position{ StartLine: 237, - EndLine: 237, - StartPos: 4757, - EndPos: 4758, - }, - Parts: []node.Node{ + EndLine: 237, + StartPos: 4757, + EndPos: 4758, }, + Parts: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 238, - EndLine: 238, - StartPos: 4763, - EndPos: 4765, + EndLine: 238, + StartPos: 4763, + EndPos: 4765, }, Expr: &expr.ShortArray{ Position: &position.Position{ StartLine: 238, - EndLine: 238, - StartPos: 4763, - EndPos: 4764, - }, - Items: []node.Node{ + EndLine: 238, + StartPos: 4763, + EndPos: 4764, }, + Items: []node.Node{}, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 239, - EndLine: 239, - StartPos: 4769, - EndPos: 4772, + EndLine: 239, + StartPos: 4769, + EndPos: 4772, }, Expr: &expr.ShortArray{ Position: &position.Position{ StartLine: 239, - EndLine: 239, - StartPos: 4769, - EndPos: 4771, + EndLine: 239, + StartPos: 4769, + EndPos: 4771, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 239, - EndLine: 239, - StartPos: 4770, - EndPos: 4770, + EndLine: 239, + StartPos: 4770, + EndPos: 4770, }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 239, - EndLine: 239, - StartPos: 4770, - EndPos: 4770, + EndLine: 239, + StartPos: 4770, + EndPos: 4770, }, Value: "1", }, @@ -11165,40 +11085,40 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 240, - EndLine: 240, - StartPos: 4776, - EndPos: 4788, + EndLine: 240, + StartPos: 4776, + EndPos: 4788, }, Expr: &expr.ShortArray{ Position: &position.Position{ StartLine: 240, - EndLine: 240, - StartPos: 4776, - EndPos: 4787, + EndLine: 240, + StartPos: 4776, + EndPos: 4787, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 240, - EndLine: 240, - StartPos: 4777, - EndPos: 4780, + EndLine: 240, + StartPos: 4777, + EndPos: 4780, }, Key: &scalar.Lnumber{ Position: &position.Position{ StartLine: 240, - EndLine: 240, - StartPos: 4777, - EndPos: 4777, + EndLine: 240, + StartPos: 4777, + EndPos: 4777, }, Value: "1", }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 240, - EndLine: 240, - StartPos: 4780, - EndPos: 4780, + EndLine: 240, + StartPos: 4780, + EndPos: 4780, }, Value: "1", }, @@ -11206,83 +11126,82 @@ func TestPhp7(t *testing.T) { &expr.ArrayItem{ Position: &position.Position{ StartLine: 240, - EndLine: 240, - StartPos: 4783, - EndPos: 4785, + EndLine: 240, + StartPos: 4783, + EndPos: 4785, }, Val: &expr.Reference{ Position: &position.Position{ StartLine: 240, - EndLine: 240, - StartPos: 4783, - EndPos: 4785, + EndLine: 240, + StartPos: 4783, + EndPos: 4785, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 240, - EndLine: 240, - StartPos: 4784, - EndPos: 4785, + EndLine: 240, + StartPos: 4784, + EndPos: 4785, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 240, - EndLine: 240, - StartPos: 4784, - EndPos: 4785, + EndLine: 240, + StartPos: 4784, + EndPos: 4785, }, Value: "b", }, }, }, }, - &expr.ArrayItem{ - }, + &expr.ArrayItem{}, }, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 242, - EndLine: 242, - StartPos: 4793, - EndPos: 4802, + EndLine: 242, + StartPos: 4793, + EndPos: 4802, }, Expr: &assign.Assign{ Position: &position.Position{ StartLine: 242, - EndLine: 242, - StartPos: 4793, - EndPos: 4801, + EndLine: 242, + StartPos: 4793, + EndPos: 4801, }, Variable: &expr.ShortList{ Position: &position.Position{ StartLine: 242, - EndLine: 242, - StartPos: 4793, - EndPos: 4796, + EndLine: 242, + StartPos: 4793, + EndPos: 4796, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 242, - EndLine: 242, - StartPos: 4794, - EndPos: 4795, + EndLine: 242, + StartPos: 4794, + EndPos: 4795, }, Val: &expr.Variable{ Position: &position.Position{ StartLine: 242, - EndLine: 242, - StartPos: 4794, - EndPos: 4795, + EndLine: 242, + StartPos: 4794, + EndPos: 4795, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 242, - EndLine: 242, - StartPos: 4794, - EndPos: 4795, + EndLine: 242, + StartPos: 4794, + EndPos: 4795, }, Value: "a", }, @@ -11293,16 +11212,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 242, - EndLine: 242, - StartPos: 4800, - EndPos: 4801, + EndLine: 242, + StartPos: 4800, + EndPos: 4801, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 242, - EndLine: 242, - StartPos: 4800, - EndPos: 4801, + EndLine: 242, + StartPos: 4800, + EndPos: 4801, }, Value: "b", }, @@ -11312,52 +11231,52 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 243, - EndLine: 243, - StartPos: 4806, - EndPos: 4817, + EndLine: 243, + StartPos: 4806, + EndPos: 4817, }, Expr: &assign.Assign{ Position: &position.Position{ StartLine: 243, - EndLine: 243, - StartPos: 4806, - EndPos: 4816, + EndLine: 243, + StartPos: 4806, + EndPos: 4816, }, Variable: &expr.ShortList{ Position: &position.Position{ StartLine: 243, - EndLine: 243, - StartPos: 4806, - EndPos: 4811, + EndLine: 243, + StartPos: 4806, + EndPos: 4811, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 243, - EndLine: 243, - StartPos: 4807, - EndPos: 4810, + EndLine: 243, + StartPos: 4807, + EndPos: 4810, }, Val: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 243, - EndLine: 243, - StartPos: 4807, - EndPos: 4810, + EndLine: 243, + StartPos: 4807, + EndPos: 4810, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 243, - EndLine: 243, - StartPos: 4807, - EndPos: 4808, + EndLine: 243, + StartPos: 4807, + EndPos: 4808, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 243, - EndLine: 243, - StartPos: 4807, - EndPos: 4808, + EndLine: 243, + StartPos: 4807, + EndPos: 4808, }, Value: "a", }, @@ -11369,16 +11288,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 243, - EndLine: 243, - StartPos: 4815, - EndPos: 4816, + EndLine: 243, + StartPos: 4815, + EndPos: 4816, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 243, - EndLine: 243, - StartPos: 4815, - EndPos: 4816, + EndLine: 243, + StartPos: 4815, + EndPos: 4816, }, Value: "b", }, @@ -11388,60 +11307,60 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 244, - EndLine: 244, - StartPos: 4821, - EndPos: 4836, + EndLine: 244, + StartPos: 4821, + EndPos: 4836, }, Expr: &assign.Assign{ Position: &position.Position{ StartLine: 244, - EndLine: 244, - StartPos: 4821, - EndPos: 4835, + EndLine: 244, + StartPos: 4821, + EndPos: 4835, }, Variable: &expr.ShortList{ Position: &position.Position{ StartLine: 244, - EndLine: 244, - StartPos: 4821, - EndPos: 4830, + EndLine: 244, + StartPos: 4821, + EndPos: 4830, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 244, - EndLine: 244, - StartPos: 4822, - EndPos: 4829, + EndLine: 244, + StartPos: 4822, + EndPos: 4829, }, Val: &expr.List{ Position: &position.Position{ StartLine: 244, - EndLine: 244, - StartPos: 4822, - EndPos: 4829, + EndLine: 244, + StartPos: 4822, + EndPos: 4829, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 244, - EndLine: 244, - StartPos: 4827, - EndPos: 4828, + EndLine: 244, + StartPos: 4827, + EndPos: 4828, }, Val: &expr.Variable{ Position: &position.Position{ StartLine: 244, - EndLine: 244, - StartPos: 4827, - EndPos: 4828, + EndLine: 244, + StartPos: 4827, + EndPos: 4828, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 244, - EndLine: 244, - StartPos: 4827, - EndPos: 4828, + EndLine: 244, + StartPos: 4827, + EndPos: 4828, }, Value: "a", }, @@ -11455,16 +11374,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 244, - EndLine: 244, - StartPos: 4834, - EndPos: 4835, + EndLine: 244, + StartPos: 4834, + EndPos: 4835, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 244, - EndLine: 244, - StartPos: 4834, - EndPos: 4835, + EndLine: 244, + StartPos: 4834, + EndPos: 4835, }, Value: "b", }, @@ -11474,31 +11393,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 245, - EndLine: 245, - StartPos: 4840, - EndPos: 4850, + EndLine: 245, + StartPos: 4840, + EndPos: 4850, }, Expr: &expr.StaticCall{ Position: &position.Position{ StartLine: 245, - EndLine: 245, - StartPos: 4840, - EndPos: 4849, + EndLine: 245, + StartPos: 4840, + EndPos: 4849, }, Class: &name.Name{ Position: &position.Position{ StartLine: 245, - EndLine: 245, - StartPos: 4840, - EndPos: 4842, + EndLine: 245, + StartPos: 4840, + EndPos: 4842, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 245, - EndLine: 245, - StartPos: 4840, - EndPos: 4842, + EndLine: 245, + StartPos: 4840, + EndPos: 4842, }, Value: "Foo", }, @@ -11507,18 +11426,18 @@ func TestPhp7(t *testing.T) { Call: &node.Identifier{ Position: &position.Position{ StartLine: 245, - EndLine: 245, - StartPos: 4845, - EndPos: 4847, + EndLine: 245, + StartPos: 4845, + EndPos: 4847, }, Value: "bar", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 245, - EndLine: 245, - StartPos: 4848, - EndPos: 4849, + EndLine: 245, + StartPos: 4848, + EndPos: 4849, }, }, }, @@ -11526,31 +11445,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 246, - EndLine: 246, - StartPos: 4854, - EndPos: 4874, + EndLine: 246, + StartPos: 4854, + EndPos: 4874, }, Expr: &expr.StaticCall{ Position: &position.Position{ StartLine: 246, - EndLine: 246, - StartPos: 4854, - EndPos: 4873, + EndLine: 246, + StartPos: 4854, + EndPos: 4873, }, Class: &name.Relative{ Position: &position.Position{ StartLine: 246, - EndLine: 246, - StartPos: 4854, - EndPos: 4866, + EndLine: 246, + StartPos: 4854, + EndPos: 4866, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 246, - EndLine: 246, - StartPos: 4864, - EndPos: 4866, + EndLine: 246, + StartPos: 4864, + EndPos: 4866, }, Value: "Foo", }, @@ -11559,18 +11478,18 @@ func TestPhp7(t *testing.T) { Call: &node.Identifier{ Position: &position.Position{ StartLine: 246, - EndLine: 246, - StartPos: 4869, - EndPos: 4871, + EndLine: 246, + StartPos: 4869, + EndPos: 4871, }, Value: "bar", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 246, - EndLine: 246, - StartPos: 4872, - EndPos: 4873, + EndLine: 246, + StartPos: 4872, + EndPos: 4873, }, }, }, @@ -11578,31 +11497,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4878, - EndPos: 4889, + EndLine: 247, + StartPos: 4878, + EndPos: 4889, }, Expr: &expr.StaticCall{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4878, - EndPos: 4888, + EndLine: 247, + StartPos: 4878, + EndPos: 4888, }, Class: &name.FullyQualified{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4878, - EndPos: 4881, + EndLine: 247, + StartPos: 4878, + EndPos: 4881, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4879, - EndPos: 4881, + EndLine: 247, + StartPos: 4879, + EndPos: 4881, }, Value: "Foo", }, @@ -11611,18 +11530,18 @@ func TestPhp7(t *testing.T) { Call: &node.Identifier{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4884, - EndPos: 4886, + EndLine: 247, + StartPos: 4884, + EndPos: 4886, }, Value: "bar", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 247, - EndLine: 247, - StartPos: 4887, - EndPos: 4888, + EndLine: 247, + StartPos: 4887, + EndPos: 4888, }, }, }, @@ -11630,31 +11549,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4893, - EndPos: 4902, + EndLine: 248, + StartPos: 4893, + EndPos: 4902, }, Expr: &expr.StaticPropertyFetch{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4893, - EndPos: 4901, + EndLine: 248, + StartPos: 4893, + EndPos: 4901, }, Class: &name.Name{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4893, - EndPos: 4895, + EndLine: 248, + StartPos: 4893, + EndPos: 4895, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4893, - EndPos: 4895, + EndLine: 248, + StartPos: 4893, + EndPos: 4895, }, Value: "Foo", }, @@ -11663,16 +11582,16 @@ func TestPhp7(t *testing.T) { Property: &expr.Variable{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4898, - EndPos: 4901, + EndLine: 248, + StartPos: 4898, + EndPos: 4901, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 248, - EndLine: 248, - StartPos: 4898, - EndPos: 4901, + EndLine: 248, + StartPos: 4898, + EndPos: 4901, }, Value: "bar", }, @@ -11682,30 +11601,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 249, - EndLine: 249, - StartPos: 4906, - EndPos: 4916, + EndLine: 249, + StartPos: 4906, + EndPos: 4916, }, Expr: &expr.StaticPropertyFetch{ Position: &position.Position{ StartLine: 249, - EndLine: 249, - StartPos: 4906, - EndPos: 4915, + EndLine: 249, + StartPos: 4906, + EndPos: 4915, }, Class: &expr.Variable{ Position: &position.Position{ StartLine: 249, - EndLine: 249, - StartPos: 4906, - EndPos: 4909, + EndLine: 249, + StartPos: 4906, + EndPos: 4909, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 249, - EndLine: 249, - StartPos: 4906, - EndPos: 4909, + EndLine: 249, + StartPos: 4906, + EndPos: 4909, }, Value: "foo", }, @@ -11713,16 +11632,16 @@ func TestPhp7(t *testing.T) { Property: &expr.Variable{ Position: &position.Position{ StartLine: 249, - EndLine: 249, - StartPos: 4912, - EndPos: 4915, + EndLine: 249, + StartPos: 4912, + EndPos: 4915, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 249, - EndLine: 249, - StartPos: 4912, - EndPos: 4915, + EndLine: 249, + StartPos: 4912, + EndPos: 4915, }, Value: "bar", }, @@ -11732,31 +11651,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 250, - EndLine: 250, - StartPos: 4920, - EndPos: 4939, + EndLine: 250, + StartPos: 4920, + EndPos: 4939, }, Expr: &expr.StaticPropertyFetch{ Position: &position.Position{ StartLine: 250, - EndLine: 250, - StartPos: 4920, - EndPos: 4938, + EndLine: 250, + StartPos: 4920, + EndPos: 4938, }, Class: &name.Relative{ Position: &position.Position{ StartLine: 250, - EndLine: 250, - StartPos: 4920, - EndPos: 4932, + EndLine: 250, + StartPos: 4920, + EndPos: 4932, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 250, - EndLine: 250, - StartPos: 4930, - EndPos: 4932, + EndLine: 250, + StartPos: 4930, + EndPos: 4932, }, Value: "Foo", }, @@ -11765,16 +11684,16 @@ func TestPhp7(t *testing.T) { Property: &expr.Variable{ Position: &position.Position{ StartLine: 250, - EndLine: 250, - StartPos: 4935, - EndPos: 4938, + EndLine: 250, + StartPos: 4935, + EndPos: 4938, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 250, - EndLine: 250, - StartPos: 4935, - EndPos: 4938, + EndLine: 250, + StartPos: 4935, + EndPos: 4938, }, Value: "bar", }, @@ -11784,31 +11703,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 251, - EndLine: 251, - StartPos: 4943, - EndPos: 4953, + EndLine: 251, + StartPos: 4943, + EndPos: 4953, }, Expr: &expr.StaticPropertyFetch{ Position: &position.Position{ StartLine: 251, - EndLine: 251, - StartPos: 4943, - EndPos: 4952, + EndLine: 251, + StartPos: 4943, + EndPos: 4952, }, Class: &name.FullyQualified{ Position: &position.Position{ StartLine: 251, - EndLine: 251, - StartPos: 4943, - EndPos: 4946, + EndLine: 251, + StartPos: 4943, + EndPos: 4946, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 251, - EndLine: 251, - StartPos: 4944, - EndPos: 4946, + EndLine: 251, + StartPos: 4944, + EndPos: 4946, }, Value: "Foo", }, @@ -11817,16 +11736,16 @@ func TestPhp7(t *testing.T) { Property: &expr.Variable{ Position: &position.Position{ StartLine: 251, - EndLine: 251, - StartPos: 4949, - EndPos: 4952, + EndLine: 251, + StartPos: 4949, + EndPos: 4952, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 251, - EndLine: 251, - StartPos: 4949, - EndPos: 4952, + EndLine: 251, + StartPos: 4949, + EndPos: 4952, }, Value: "bar", }, @@ -11836,30 +11755,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 252, - EndLine: 252, - StartPos: 4957, - EndPos: 4969, + EndLine: 252, + StartPos: 4957, + EndPos: 4969, }, Expr: &expr.Ternary{ Position: &position.Position{ StartLine: 252, - EndLine: 252, - StartPos: 4957, - EndPos: 4968, + EndLine: 252, + StartPos: 4957, + EndPos: 4968, }, Condition: &expr.Variable{ Position: &position.Position{ StartLine: 252, - EndLine: 252, - StartPos: 4957, - EndPos: 4958, + EndLine: 252, + StartPos: 4957, + EndPos: 4958, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 252, - EndLine: 252, - StartPos: 4957, - EndPos: 4958, + EndLine: 252, + StartPos: 4957, + EndPos: 4958, }, Value: "a", }, @@ -11867,16 +11786,16 @@ func TestPhp7(t *testing.T) { IfTrue: &expr.Variable{ Position: &position.Position{ StartLine: 252, - EndLine: 252, - StartPos: 4962, - EndPos: 4963, + EndLine: 252, + StartPos: 4962, + EndPos: 4963, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 252, - EndLine: 252, - StartPos: 4962, - EndPos: 4963, + EndLine: 252, + StartPos: 4962, + EndPos: 4963, }, Value: "b", }, @@ -11884,16 +11803,16 @@ func TestPhp7(t *testing.T) { IfFalse: &expr.Variable{ Position: &position.Position{ StartLine: 252, - EndLine: 252, - StartPos: 4967, - EndPos: 4968, + EndLine: 252, + StartPos: 4967, + EndPos: 4968, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 252, - EndLine: 252, - StartPos: 4967, - EndPos: 4968, + EndLine: 252, + StartPos: 4967, + EndPos: 4968, }, Value: "c", }, @@ -11903,30 +11822,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 253, - EndLine: 253, - StartPos: 4973, - EndPos: 4982, + EndLine: 253, + StartPos: 4973, + EndPos: 4982, }, Expr: &expr.Ternary{ Position: &position.Position{ StartLine: 253, - EndLine: 253, - StartPos: 4973, - EndPos: 4981, + EndLine: 253, + StartPos: 4973, + EndPos: 4981, }, Condition: &expr.Variable{ Position: &position.Position{ StartLine: 253, - EndLine: 253, - StartPos: 4973, - EndPos: 4974, + EndLine: 253, + StartPos: 4973, + EndPos: 4974, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 253, - EndLine: 253, - StartPos: 4973, - EndPos: 4974, + EndLine: 253, + StartPos: 4973, + EndPos: 4974, }, Value: "a", }, @@ -11934,16 +11853,16 @@ func TestPhp7(t *testing.T) { IfFalse: &expr.Variable{ Position: &position.Position{ StartLine: 253, - EndLine: 253, - StartPos: 4980, - EndPos: 4981, + EndLine: 253, + StartPos: 4980, + EndPos: 4981, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 253, - EndLine: 253, - StartPos: 4980, - EndPos: 4981, + EndLine: 253, + StartPos: 4980, + EndPos: 4981, }, Value: "c", }, @@ -11953,30 +11872,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 4986, - EndPos: 5008, + EndLine: 254, + StartPos: 4986, + EndPos: 5008, }, Expr: &expr.Ternary{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 4986, - EndPos: 5007, + EndLine: 254, + StartPos: 4986, + EndPos: 5007, }, Condition: &expr.Variable{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 4986, - EndPos: 4987, + EndLine: 254, + StartPos: 4986, + EndPos: 4987, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 4986, - EndPos: 4987, + EndLine: 254, + StartPos: 4986, + EndPos: 4987, }, Value: "a", }, @@ -11984,23 +11903,23 @@ func TestPhp7(t *testing.T) { IfTrue: &expr.Ternary{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 4991, - EndPos: 5002, + EndLine: 254, + StartPos: 4991, + EndPos: 5002, }, Condition: &expr.Variable{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 4991, - EndPos: 4992, + EndLine: 254, + StartPos: 4991, + EndPos: 4992, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 4991, - EndPos: 4992, + EndLine: 254, + StartPos: 4991, + EndPos: 4992, }, Value: "b", }, @@ -12008,16 +11927,16 @@ func TestPhp7(t *testing.T) { IfTrue: &expr.Variable{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 4996, - EndPos: 4997, + EndLine: 254, + StartPos: 4996, + EndPos: 4997, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 4996, - EndPos: 4997, + EndLine: 254, + StartPos: 4996, + EndPos: 4997, }, Value: "c", }, @@ -12025,16 +11944,16 @@ func TestPhp7(t *testing.T) { IfFalse: &expr.Variable{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 5001, - EndPos: 5002, + EndLine: 254, + StartPos: 5001, + EndPos: 5002, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 5001, - EndPos: 5002, + EndLine: 254, + StartPos: 5001, + EndPos: 5002, }, Value: "d", }, @@ -12043,16 +11962,16 @@ func TestPhp7(t *testing.T) { IfFalse: &expr.Variable{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 5006, - EndPos: 5007, + EndLine: 254, + StartPos: 5006, + EndPos: 5007, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 254, - EndLine: 254, - StartPos: 5006, - EndPos: 5007, + EndLine: 254, + StartPos: 5006, + EndPos: 5007, }, Value: "e", }, @@ -12062,37 +11981,37 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 5012, - EndPos: 5034, + EndLine: 255, + StartPos: 5012, + EndPos: 5034, }, Expr: &expr.Ternary{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 5012, - EndPos: 5033, + EndLine: 255, + StartPos: 5012, + EndPos: 5033, }, Condition: &expr.Ternary{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 5012, - EndPos: 5023, + EndLine: 255, + StartPos: 5012, + EndPos: 5023, }, Condition: &expr.Variable{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 5012, - EndPos: 5013, + EndLine: 255, + StartPos: 5012, + EndPos: 5013, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 5012, - EndPos: 5013, + EndLine: 255, + StartPos: 5012, + EndPos: 5013, }, Value: "a", }, @@ -12100,16 +12019,16 @@ func TestPhp7(t *testing.T) { IfTrue: &expr.Variable{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 5017, - EndPos: 5018, + EndLine: 255, + StartPos: 5017, + EndPos: 5018, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 5017, - EndPos: 5018, + EndLine: 255, + StartPos: 5017, + EndPos: 5018, }, Value: "b", }, @@ -12117,16 +12036,16 @@ func TestPhp7(t *testing.T) { IfFalse: &expr.Variable{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 5022, - EndPos: 5023, + EndLine: 255, + StartPos: 5022, + EndPos: 5023, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 5022, - EndPos: 5023, + EndLine: 255, + StartPos: 5022, + EndPos: 5023, }, Value: "c", }, @@ -12135,16 +12054,16 @@ func TestPhp7(t *testing.T) { IfTrue: &expr.Variable{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 5027, - EndPos: 5028, + EndLine: 255, + StartPos: 5027, + EndPos: 5028, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 5027, - EndPos: 5028, + EndLine: 255, + StartPos: 5027, + EndPos: 5028, }, Value: "d", }, @@ -12152,16 +12071,16 @@ func TestPhp7(t *testing.T) { IfFalse: &expr.Variable{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 5032, - EndPos: 5033, + EndLine: 255, + StartPos: 5032, + EndPos: 5033, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 255, - EndLine: 255, - StartPos: 5032, - EndPos: 5033, + EndLine: 255, + StartPos: 5032, + EndPos: 5033, }, Value: "e", }, @@ -12171,30 +12090,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 256, - EndLine: 256, - StartPos: 5038, - EndPos: 5041, + EndLine: 256, + StartPos: 5038, + EndPos: 5041, }, Expr: &expr.UnaryMinus{ Position: &position.Position{ StartLine: 256, - EndLine: 256, - StartPos: 5038, - EndPos: 5040, + EndLine: 256, + StartPos: 5038, + EndPos: 5040, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 256, - EndLine: 256, - StartPos: 5039, - EndPos: 5040, + EndLine: 256, + StartPos: 5039, + EndPos: 5040, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 256, - EndLine: 256, - StartPos: 5039, - EndPos: 5040, + EndLine: 256, + StartPos: 5039, + EndPos: 5040, }, Value: "a", }, @@ -12204,30 +12123,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 257, - EndLine: 257, - StartPos: 5045, - EndPos: 5048, + EndLine: 257, + StartPos: 5045, + EndPos: 5048, }, Expr: &expr.UnaryPlus{ Position: &position.Position{ StartLine: 257, - EndLine: 257, - StartPos: 5045, - EndPos: 5047, + EndLine: 257, + StartPos: 5045, + EndPos: 5047, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 257, - EndLine: 257, - StartPos: 5046, - EndPos: 5047, + EndLine: 257, + StartPos: 5046, + EndPos: 5047, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 257, - EndLine: 257, - StartPos: 5046, - EndPos: 5047, + EndLine: 257, + StartPos: 5046, + EndPos: 5047, }, Value: "a", }, @@ -12237,30 +12156,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 258, - EndLine: 258, - StartPos: 5052, - EndPos: 5055, + EndLine: 258, + StartPos: 5052, + EndPos: 5055, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 258, - EndLine: 258, - StartPos: 5052, - EndPos: 5054, + EndLine: 258, + StartPos: 5052, + EndPos: 5054, }, VarName: &expr.Variable{ Position: &position.Position{ StartLine: 258, - EndLine: 258, - StartPos: 5053, - EndPos: 5054, + EndLine: 258, + StartPos: 5053, + EndPos: 5054, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 258, - EndLine: 258, - StartPos: 5053, - EndPos: 5054, + EndLine: 258, + StartPos: 5053, + EndPos: 5054, }, Value: "a", }, @@ -12270,46 +12189,46 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 259, - EndLine: 259, - StartPos: 5059, - EndPos: 5064, + EndLine: 259, + StartPos: 5059, + EndPos: 5064, }, Expr: &expr.Yield{ Position: &position.Position{ StartLine: 259, - EndLine: 259, - StartPos: 5059, - EndPos: 5063, + EndLine: 259, + StartPos: 5059, + EndPos: 5063, }, }, }, &stmt.Expression{ Position: &position.Position{ StartLine: 260, - EndLine: 260, - StartPos: 5068, - EndPos: 5076, + EndLine: 260, + StartPos: 5068, + EndPos: 5076, }, Expr: &expr.Yield{ Position: &position.Position{ StartLine: 260, - EndLine: 260, - StartPos: 5068, - EndPos: 5075, + EndLine: 260, + StartPos: 5068, + EndPos: 5075, }, Value: &expr.Variable{ Position: &position.Position{ StartLine: 260, - EndLine: 260, - StartPos: 5074, - EndPos: 5075, + EndLine: 260, + StartPos: 5074, + EndPos: 5075, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 260, - EndLine: 260, - StartPos: 5074, - EndPos: 5075, + EndLine: 260, + StartPos: 5074, + EndPos: 5075, }, Value: "a", }, @@ -12319,30 +12238,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 261, - EndLine: 261, - StartPos: 5080, - EndPos: 5094, + EndLine: 261, + StartPos: 5080, + EndPos: 5094, }, Expr: &expr.Yield{ Position: &position.Position{ StartLine: 261, - EndLine: 261, - StartPos: 5080, - EndPos: 5093, + EndLine: 261, + StartPos: 5080, + EndPos: 5093, }, Key: &expr.Variable{ Position: &position.Position{ StartLine: 261, - EndLine: 261, - StartPos: 5086, - EndPos: 5087, + EndLine: 261, + StartPos: 5086, + EndPos: 5087, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 261, - EndLine: 261, - StartPos: 5086, - EndPos: 5087, + EndLine: 261, + StartPos: 5086, + EndPos: 5087, }, Value: "a", }, @@ -12350,16 +12269,16 @@ func TestPhp7(t *testing.T) { Value: &expr.Variable{ Position: &position.Position{ StartLine: 261, - EndLine: 261, - StartPos: 5092, - EndPos: 5093, + EndLine: 261, + StartPos: 5092, + EndPos: 5093, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 261, - EndLine: 261, - StartPos: 5092, - EndPos: 5093, + EndLine: 261, + StartPos: 5092, + EndPos: 5093, }, Value: "b", }, @@ -12369,30 +12288,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 262, - EndLine: 262, - StartPos: 5098, - EndPos: 5111, + EndLine: 262, + StartPos: 5098, + EndPos: 5111, }, Expr: &expr.YieldFrom{ Position: &position.Position{ StartLine: 262, - EndLine: 262, - StartPos: 5098, - EndPos: 5110, + EndLine: 262, + StartPos: 5098, + EndPos: 5110, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 262, - EndLine: 262, - StartPos: 5109, - EndPos: 5110, + EndLine: 262, + StartPos: 5109, + EndPos: 5110, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 262, - EndLine: 262, - StartPos: 5109, - EndPos: 5110, + EndLine: 262, + StartPos: 5109, + EndPos: 5110, }, Value: "a", }, @@ -12402,30 +12321,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 264, - EndLine: 264, - StartPos: 5118, - EndPos: 5127, + EndLine: 264, + StartPos: 5118, + EndPos: 5127, }, Expr: &cast.Array{ Position: &position.Position{ StartLine: 264, - EndLine: 264, - StartPos: 5118, - EndPos: 5126, + EndLine: 264, + StartPos: 5118, + EndPos: 5126, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 264, - EndLine: 264, - StartPos: 5125, - EndPos: 5126, + EndLine: 264, + StartPos: 5125, + EndPos: 5126, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 264, - EndLine: 264, - StartPos: 5125, - EndPos: 5126, + EndLine: 264, + StartPos: 5125, + EndPos: 5126, }, Value: "a", }, @@ -12435,30 +12354,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 265, - EndLine: 265, - StartPos: 5131, - EndPos: 5142, + EndLine: 265, + StartPos: 5131, + EndPos: 5142, }, Expr: &cast.Bool{ Position: &position.Position{ StartLine: 265, - EndLine: 265, - StartPos: 5131, - EndPos: 5141, + EndLine: 265, + StartPos: 5131, + EndPos: 5141, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 265, - EndLine: 265, - StartPos: 5140, - EndPos: 5141, + EndLine: 265, + StartPos: 5140, + EndPos: 5141, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 265, - EndLine: 265, - StartPos: 5140, - EndPos: 5141, + EndLine: 265, + StartPos: 5140, + EndPos: 5141, }, Value: "a", }, @@ -12468,30 +12387,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 266, - EndLine: 266, - StartPos: 5146, - EndPos: 5154, + EndLine: 266, + StartPos: 5146, + EndPos: 5154, }, Expr: &cast.Bool{ Position: &position.Position{ StartLine: 266, - EndLine: 266, - StartPos: 5146, - EndPos: 5153, + EndLine: 266, + StartPos: 5146, + EndPos: 5153, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 266, - EndLine: 266, - StartPos: 5152, - EndPos: 5153, + EndLine: 266, + StartPos: 5152, + EndPos: 5153, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 266, - EndLine: 266, - StartPos: 5152, - EndPos: 5153, + EndLine: 266, + StartPos: 5152, + EndPos: 5153, }, Value: "a", }, @@ -12501,30 +12420,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 267, - EndLine: 267, - StartPos: 5158, - EndPos: 5168, + EndLine: 267, + StartPos: 5158, + EndPos: 5168, }, Expr: &cast.Double{ Position: &position.Position{ StartLine: 267, - EndLine: 267, - StartPos: 5158, - EndPos: 5167, + EndLine: 267, + StartPos: 5158, + EndPos: 5167, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 267, - EndLine: 267, - StartPos: 5166, - EndPos: 5167, + EndLine: 267, + StartPos: 5166, + EndPos: 5167, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 267, - EndLine: 267, - StartPos: 5166, - EndPos: 5167, + EndLine: 267, + StartPos: 5166, + EndPos: 5167, }, Value: "a", }, @@ -12534,30 +12453,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 268, - EndLine: 268, - StartPos: 5172, - EndPos: 5181, + EndLine: 268, + StartPos: 5172, + EndPos: 5181, }, Expr: &cast.Double{ Position: &position.Position{ StartLine: 268, - EndLine: 268, - StartPos: 5172, - EndPos: 5180, + EndLine: 268, + StartPos: 5172, + EndPos: 5180, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 268, - EndLine: 268, - StartPos: 5179, - EndPos: 5180, + EndLine: 268, + StartPos: 5179, + EndPos: 5180, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 268, - EndLine: 268, - StartPos: 5179, - EndPos: 5180, + EndLine: 268, + StartPos: 5179, + EndPos: 5180, }, Value: "a", }, @@ -12567,30 +12486,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 269, - EndLine: 269, - StartPos: 5185, - EndPos: 5196, + EndLine: 269, + StartPos: 5185, + EndPos: 5196, }, Expr: &cast.Int{ Position: &position.Position{ StartLine: 269, - EndLine: 269, - StartPos: 5185, - EndPos: 5195, + EndLine: 269, + StartPos: 5185, + EndPos: 5195, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 269, - EndLine: 269, - StartPos: 5194, - EndPos: 5195, + EndLine: 269, + StartPos: 5194, + EndPos: 5195, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 269, - EndLine: 269, - StartPos: 5194, - EndPos: 5195, + EndLine: 269, + StartPos: 5194, + EndPos: 5195, }, Value: "a", }, @@ -12600,30 +12519,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 270, - EndLine: 270, - StartPos: 5200, - EndPos: 5207, + EndLine: 270, + StartPos: 5200, + EndPos: 5207, }, Expr: &cast.Int{ Position: &position.Position{ StartLine: 270, - EndLine: 270, - StartPos: 5200, - EndPos: 5206, + EndLine: 270, + StartPos: 5200, + EndPos: 5206, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 270, - EndLine: 270, - StartPos: 5205, - EndPos: 5206, + EndLine: 270, + StartPos: 5205, + EndPos: 5206, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 270, - EndLine: 270, - StartPos: 5205, - EndPos: 5206, + EndLine: 270, + StartPos: 5205, + EndPos: 5206, }, Value: "a", }, @@ -12633,30 +12552,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 271, - EndLine: 271, - StartPos: 5211, - EndPos: 5221, + EndLine: 271, + StartPos: 5211, + EndPos: 5221, }, Expr: &cast.Object{ Position: &position.Position{ StartLine: 271, - EndLine: 271, - StartPos: 5211, - EndPos: 5220, + EndLine: 271, + StartPos: 5211, + EndPos: 5220, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 271, - EndLine: 271, - StartPos: 5219, - EndPos: 5220, + EndLine: 271, + StartPos: 5219, + EndPos: 5220, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 271, - EndLine: 271, - StartPos: 5219, - EndPos: 5220, + EndLine: 271, + StartPos: 5219, + EndPos: 5220, }, Value: "a", }, @@ -12666,30 +12585,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 272, - EndLine: 272, - StartPos: 5225, - EndPos: 5235, + EndLine: 272, + StartPos: 5225, + EndPos: 5235, }, Expr: &cast.String{ Position: &position.Position{ StartLine: 272, - EndLine: 272, - StartPos: 5225, - EndPos: 5234, + EndLine: 272, + StartPos: 5225, + EndPos: 5234, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 272, - EndLine: 272, - StartPos: 5233, - EndPos: 5234, + EndLine: 272, + StartPos: 5233, + EndPos: 5234, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 272, - EndLine: 272, - StartPos: 5233, - EndPos: 5234, + EndLine: 272, + StartPos: 5233, + EndPos: 5234, }, Value: "a", }, @@ -12699,30 +12618,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 273, - EndLine: 273, - StartPos: 5239, - EndPos: 5248, + EndLine: 273, + StartPos: 5239, + EndPos: 5248, }, Expr: &cast.Unset{ Position: &position.Position{ StartLine: 273, - EndLine: 273, - StartPos: 5239, - EndPos: 5247, + EndLine: 273, + StartPos: 5239, + EndPos: 5247, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 273, - EndLine: 273, - StartPos: 5246, - EndPos: 5247, + EndLine: 273, + StartPos: 5246, + EndPos: 5247, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 273, - EndLine: 273, - StartPos: 5246, - EndPos: 5247, + EndLine: 273, + StartPos: 5246, + EndPos: 5247, }, Value: "a", }, @@ -12732,30 +12651,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 275, - EndLine: 275, - StartPos: 5253, - EndPos: 5260, + EndLine: 275, + StartPos: 5253, + EndPos: 5260, }, Expr: &binary.BitwiseAnd{ Position: &position.Position{ StartLine: 275, - EndLine: 275, - StartPos: 5253, - EndPos: 5259, + EndLine: 275, + StartPos: 5253, + EndPos: 5259, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 275, - EndLine: 275, - StartPos: 5253, - EndPos: 5254, + EndLine: 275, + StartPos: 5253, + EndPos: 5254, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 275, - EndLine: 275, - StartPos: 5253, - EndPos: 5254, + EndLine: 275, + StartPos: 5253, + EndPos: 5254, }, Value: "a", }, @@ -12763,16 +12682,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 275, - EndLine: 275, - StartPos: 5258, - EndPos: 5259, + EndLine: 275, + StartPos: 5258, + EndPos: 5259, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 275, - EndLine: 275, - StartPos: 5258, - EndPos: 5259, + EndLine: 275, + StartPos: 5258, + EndPos: 5259, }, Value: "b", }, @@ -12782,30 +12701,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 276, - EndLine: 276, - StartPos: 5264, - EndPos: 5271, + EndLine: 276, + StartPos: 5264, + EndPos: 5271, }, Expr: &binary.BitwiseOr{ Position: &position.Position{ StartLine: 276, - EndLine: 276, - StartPos: 5264, - EndPos: 5270, + EndLine: 276, + StartPos: 5264, + EndPos: 5270, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 276, - EndLine: 276, - StartPos: 5264, - EndPos: 5265, + EndLine: 276, + StartPos: 5264, + EndPos: 5265, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 276, - EndLine: 276, - StartPos: 5264, - EndPos: 5265, + EndLine: 276, + StartPos: 5264, + EndPos: 5265, }, Value: "a", }, @@ -12813,16 +12732,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 276, - EndLine: 276, - StartPos: 5269, - EndPos: 5270, + EndLine: 276, + StartPos: 5269, + EndPos: 5270, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 276, - EndLine: 276, - StartPos: 5269, - EndPos: 5270, + EndLine: 276, + StartPos: 5269, + EndPos: 5270, }, Value: "b", }, @@ -12832,30 +12751,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 277, - EndLine: 277, - StartPos: 5275, - EndPos: 5282, + EndLine: 277, + StartPos: 5275, + EndPos: 5282, }, Expr: &binary.BitwiseXor{ Position: &position.Position{ StartLine: 277, - EndLine: 277, - StartPos: 5275, - EndPos: 5281, + EndLine: 277, + StartPos: 5275, + EndPos: 5281, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 277, - EndLine: 277, - StartPos: 5275, - EndPos: 5276, + EndLine: 277, + StartPos: 5275, + EndPos: 5276, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 277, - EndLine: 277, - StartPos: 5275, - EndPos: 5276, + EndLine: 277, + StartPos: 5275, + EndPos: 5276, }, Value: "a", }, @@ -12863,16 +12782,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 277, - EndLine: 277, - StartPos: 5280, - EndPos: 5281, + EndLine: 277, + StartPos: 5280, + EndPos: 5281, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 277, - EndLine: 277, - StartPos: 5280, - EndPos: 5281, + EndLine: 277, + StartPos: 5280, + EndPos: 5281, }, Value: "b", }, @@ -12882,30 +12801,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 278, - EndLine: 278, - StartPos: 5286, - EndPos: 5294, + EndLine: 278, + StartPos: 5286, + EndPos: 5294, }, Expr: &binary.BooleanAnd{ Position: &position.Position{ StartLine: 278, - EndLine: 278, - StartPos: 5286, - EndPos: 5293, + EndLine: 278, + StartPos: 5286, + EndPos: 5293, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 278, - EndLine: 278, - StartPos: 5286, - EndPos: 5287, + EndLine: 278, + StartPos: 5286, + EndPos: 5287, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 278, - EndLine: 278, - StartPos: 5286, - EndPos: 5287, + EndLine: 278, + StartPos: 5286, + EndPos: 5287, }, Value: "a", }, @@ -12913,16 +12832,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 278, - EndLine: 278, - StartPos: 5292, - EndPos: 5293, + EndLine: 278, + StartPos: 5292, + EndPos: 5293, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 278, - EndLine: 278, - StartPos: 5292, - EndPos: 5293, + EndLine: 278, + StartPos: 5292, + EndPos: 5293, }, Value: "b", }, @@ -12932,30 +12851,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 279, - EndLine: 279, - StartPos: 5298, - EndPos: 5306, + EndLine: 279, + StartPos: 5298, + EndPos: 5306, }, Expr: &binary.BooleanOr{ Position: &position.Position{ StartLine: 279, - EndLine: 279, - StartPos: 5298, - EndPos: 5305, + EndLine: 279, + StartPos: 5298, + EndPos: 5305, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 279, - EndLine: 279, - StartPos: 5298, - EndPos: 5299, + EndLine: 279, + StartPos: 5298, + EndPos: 5299, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 279, - EndLine: 279, - StartPos: 5298, - EndPos: 5299, + EndLine: 279, + StartPos: 5298, + EndPos: 5299, }, Value: "a", }, @@ -12963,16 +12882,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 279, - EndLine: 279, - StartPos: 5304, - EndPos: 5305, + EndLine: 279, + StartPos: 5304, + EndPos: 5305, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 279, - EndLine: 279, - StartPos: 5304, - EndPos: 5305, + EndLine: 279, + StartPos: 5304, + EndPos: 5305, }, Value: "b", }, @@ -12982,30 +12901,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 280, - EndLine: 280, - StartPos: 5310, - EndPos: 5318, + EndLine: 280, + StartPos: 5310, + EndPos: 5318, }, Expr: &binary.Coalesce{ Position: &position.Position{ StartLine: 280, - EndLine: 280, - StartPos: 5310, - EndPos: 5317, + EndLine: 280, + StartPos: 5310, + EndPos: 5317, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 280, - EndLine: 280, - StartPos: 5310, - EndPos: 5311, + EndLine: 280, + StartPos: 5310, + EndPos: 5311, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 280, - EndLine: 280, - StartPos: 5310, - EndPos: 5311, + EndLine: 280, + StartPos: 5310, + EndPos: 5311, }, Value: "a", }, @@ -13013,16 +12932,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 280, - EndLine: 280, - StartPos: 5316, - EndPos: 5317, + EndLine: 280, + StartPos: 5316, + EndPos: 5317, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 280, - EndLine: 280, - StartPos: 5316, - EndPos: 5317, + EndLine: 280, + StartPos: 5316, + EndPos: 5317, }, Value: "b", }, @@ -13032,30 +12951,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 281, - EndLine: 281, - StartPos: 5322, - EndPos: 5329, + EndLine: 281, + StartPos: 5322, + EndPos: 5329, }, Expr: &binary.Concat{ Position: &position.Position{ StartLine: 281, - EndLine: 281, - StartPos: 5322, - EndPos: 5328, + EndLine: 281, + StartPos: 5322, + EndPos: 5328, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 281, - EndLine: 281, - StartPos: 5322, - EndPos: 5323, + EndLine: 281, + StartPos: 5322, + EndPos: 5323, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 281, - EndLine: 281, - StartPos: 5322, - EndPos: 5323, + EndLine: 281, + StartPos: 5322, + EndPos: 5323, }, Value: "a", }, @@ -13063,16 +12982,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 281, - EndLine: 281, - StartPos: 5327, - EndPos: 5328, + EndLine: 281, + StartPos: 5327, + EndPos: 5328, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 281, - EndLine: 281, - StartPos: 5327, - EndPos: 5328, + EndLine: 281, + StartPos: 5327, + EndPos: 5328, }, Value: "b", }, @@ -13082,30 +13001,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 282, - EndLine: 282, - StartPos: 5333, - EndPos: 5340, + EndLine: 282, + StartPos: 5333, + EndPos: 5340, }, Expr: &binary.Div{ Position: &position.Position{ StartLine: 282, - EndLine: 282, - StartPos: 5333, - EndPos: 5339, + EndLine: 282, + StartPos: 5333, + EndPos: 5339, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 282, - EndLine: 282, - StartPos: 5333, - EndPos: 5334, + EndLine: 282, + StartPos: 5333, + EndPos: 5334, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 282, - EndLine: 282, - StartPos: 5333, - EndPos: 5334, + EndLine: 282, + StartPos: 5333, + EndPos: 5334, }, Value: "a", }, @@ -13113,16 +13032,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 282, - EndLine: 282, - StartPos: 5338, - EndPos: 5339, + EndLine: 282, + StartPos: 5338, + EndPos: 5339, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 282, - EndLine: 282, - StartPos: 5338, - EndPos: 5339, + EndLine: 282, + StartPos: 5338, + EndPos: 5339, }, Value: "b", }, @@ -13132,30 +13051,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 283, - EndLine: 283, - StartPos: 5344, - EndPos: 5352, + EndLine: 283, + StartPos: 5344, + EndPos: 5352, }, Expr: &binary.Equal{ Position: &position.Position{ StartLine: 283, - EndLine: 283, - StartPos: 5344, - EndPos: 5351, + EndLine: 283, + StartPos: 5344, + EndPos: 5351, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 283, - EndLine: 283, - StartPos: 5344, - EndPos: 5345, + EndLine: 283, + StartPos: 5344, + EndPos: 5345, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 283, - EndLine: 283, - StartPos: 5344, - EndPos: 5345, + EndLine: 283, + StartPos: 5344, + EndPos: 5345, }, Value: "a", }, @@ -13163,16 +13082,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 283, - EndLine: 283, - StartPos: 5350, - EndPos: 5351, + EndLine: 283, + StartPos: 5350, + EndPos: 5351, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 283, - EndLine: 283, - StartPos: 5350, - EndPos: 5351, + EndLine: 283, + StartPos: 5350, + EndPos: 5351, }, Value: "b", }, @@ -13182,30 +13101,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 284, - EndLine: 284, - StartPos: 5356, - EndPos: 5364, + EndLine: 284, + StartPos: 5356, + EndPos: 5364, }, Expr: &binary.GreaterOrEqual{ Position: &position.Position{ StartLine: 284, - EndLine: 284, - StartPos: 5356, - EndPos: 5363, + EndLine: 284, + StartPos: 5356, + EndPos: 5363, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 284, - EndLine: 284, - StartPos: 5356, - EndPos: 5357, + EndLine: 284, + StartPos: 5356, + EndPos: 5357, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 284, - EndLine: 284, - StartPos: 5356, - EndPos: 5357, + EndLine: 284, + StartPos: 5356, + EndPos: 5357, }, Value: "a", }, @@ -13213,16 +13132,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 284, - EndLine: 284, - StartPos: 5362, - EndPos: 5363, + EndLine: 284, + StartPos: 5362, + EndPos: 5363, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 284, - EndLine: 284, - StartPos: 5362, - EndPos: 5363, + EndLine: 284, + StartPos: 5362, + EndPos: 5363, }, Value: "b", }, @@ -13232,30 +13151,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 285, - EndLine: 285, - StartPos: 5368, - EndPos: 5375, + EndLine: 285, + StartPos: 5368, + EndPos: 5375, }, Expr: &binary.Greater{ Position: &position.Position{ StartLine: 285, - EndLine: 285, - StartPos: 5368, - EndPos: 5374, + EndLine: 285, + StartPos: 5368, + EndPos: 5374, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 285, - EndLine: 285, - StartPos: 5368, - EndPos: 5369, + EndLine: 285, + StartPos: 5368, + EndPos: 5369, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 285, - EndLine: 285, - StartPos: 5368, - EndPos: 5369, + EndLine: 285, + StartPos: 5368, + EndPos: 5369, }, Value: "a", }, @@ -13263,16 +13182,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 285, - EndLine: 285, - StartPos: 5373, - EndPos: 5374, + EndLine: 285, + StartPos: 5373, + EndPos: 5374, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 285, - EndLine: 285, - StartPos: 5373, - EndPos: 5374, + EndLine: 285, + StartPos: 5373, + EndPos: 5374, }, Value: "b", }, @@ -13282,30 +13201,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 286, - EndLine: 286, - StartPos: 5379, - EndPos: 5388, + EndLine: 286, + StartPos: 5379, + EndPos: 5388, }, Expr: &binary.Identical{ Position: &position.Position{ StartLine: 286, - EndLine: 286, - StartPos: 5379, - EndPos: 5387, + EndLine: 286, + StartPos: 5379, + EndPos: 5387, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 286, - EndLine: 286, - StartPos: 5379, - EndPos: 5380, + EndLine: 286, + StartPos: 5379, + EndPos: 5380, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 286, - EndLine: 286, - StartPos: 5379, - EndPos: 5380, + EndLine: 286, + StartPos: 5379, + EndPos: 5380, }, Value: "a", }, @@ -13313,16 +13232,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 286, - EndLine: 286, - StartPos: 5386, - EndPos: 5387, + EndLine: 286, + StartPos: 5386, + EndPos: 5387, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 286, - EndLine: 286, - StartPos: 5386, - EndPos: 5387, + EndLine: 286, + StartPos: 5386, + EndPos: 5387, }, Value: "b", }, @@ -13332,30 +13251,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 287, - EndLine: 287, - StartPos: 5392, - EndPos: 5401, + EndLine: 287, + StartPos: 5392, + EndPos: 5401, }, Expr: &binary.LogicalAnd{ Position: &position.Position{ StartLine: 287, - EndLine: 287, - StartPos: 5392, - EndPos: 5400, + EndLine: 287, + StartPos: 5392, + EndPos: 5400, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 287, - EndLine: 287, - StartPos: 5392, - EndPos: 5393, + EndLine: 287, + StartPos: 5392, + EndPos: 5393, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 287, - EndLine: 287, - StartPos: 5392, - EndPos: 5393, + EndLine: 287, + StartPos: 5392, + EndPos: 5393, }, Value: "a", }, @@ -13363,16 +13282,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 287, - EndLine: 287, - StartPos: 5399, - EndPos: 5400, + EndLine: 287, + StartPos: 5399, + EndPos: 5400, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 287, - EndLine: 287, - StartPos: 5399, - EndPos: 5400, + EndLine: 287, + StartPos: 5399, + EndPos: 5400, }, Value: "b", }, @@ -13382,30 +13301,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 288, - EndLine: 288, - StartPos: 5405, - EndPos: 5413, + EndLine: 288, + StartPos: 5405, + EndPos: 5413, }, Expr: &binary.LogicalOr{ Position: &position.Position{ StartLine: 288, - EndLine: 288, - StartPos: 5405, - EndPos: 5412, + EndLine: 288, + StartPos: 5405, + EndPos: 5412, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 288, - EndLine: 288, - StartPos: 5405, - EndPos: 5406, + EndLine: 288, + StartPos: 5405, + EndPos: 5406, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 288, - EndLine: 288, - StartPos: 5405, - EndPos: 5406, + EndLine: 288, + StartPos: 5405, + EndPos: 5406, }, Value: "a", }, @@ -13413,16 +13332,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 288, - EndLine: 288, - StartPos: 5411, - EndPos: 5412, + EndLine: 288, + StartPos: 5411, + EndPos: 5412, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 288, - EndLine: 288, - StartPos: 5411, - EndPos: 5412, + EndLine: 288, + StartPos: 5411, + EndPos: 5412, }, Value: "b", }, @@ -13432,30 +13351,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 289, - EndLine: 289, - StartPos: 5417, - EndPos: 5426, + EndLine: 289, + StartPos: 5417, + EndPos: 5426, }, Expr: &binary.LogicalXor{ Position: &position.Position{ StartLine: 289, - EndLine: 289, - StartPos: 5417, - EndPos: 5425, + EndLine: 289, + StartPos: 5417, + EndPos: 5425, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 289, - EndLine: 289, - StartPos: 5417, - EndPos: 5418, + EndLine: 289, + StartPos: 5417, + EndPos: 5418, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 289, - EndLine: 289, - StartPos: 5417, - EndPos: 5418, + EndLine: 289, + StartPos: 5417, + EndPos: 5418, }, Value: "a", }, @@ -13463,16 +13382,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 289, - EndLine: 289, - StartPos: 5424, - EndPos: 5425, + EndLine: 289, + StartPos: 5424, + EndPos: 5425, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 289, - EndLine: 289, - StartPos: 5424, - EndPos: 5425, + EndLine: 289, + StartPos: 5424, + EndPos: 5425, }, Value: "b", }, @@ -13482,30 +13401,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 290, - EndLine: 290, - StartPos: 5430, - EndPos: 5437, + EndLine: 290, + StartPos: 5430, + EndPos: 5437, }, Expr: &binary.Minus{ Position: &position.Position{ StartLine: 290, - EndLine: 290, - StartPos: 5430, - EndPos: 5436, + EndLine: 290, + StartPos: 5430, + EndPos: 5436, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 290, - EndLine: 290, - StartPos: 5430, - EndPos: 5431, + EndLine: 290, + StartPos: 5430, + EndPos: 5431, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 290, - EndLine: 290, - StartPos: 5430, - EndPos: 5431, + EndLine: 290, + StartPos: 5430, + EndPos: 5431, }, Value: "a", }, @@ -13513,16 +13432,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 290, - EndLine: 290, - StartPos: 5435, - EndPos: 5436, + EndLine: 290, + StartPos: 5435, + EndPos: 5436, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 290, - EndLine: 290, - StartPos: 5435, - EndPos: 5436, + EndLine: 290, + StartPos: 5435, + EndPos: 5436, }, Value: "b", }, @@ -13532,30 +13451,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 291, - EndLine: 291, - StartPos: 5441, - EndPos: 5448, + EndLine: 291, + StartPos: 5441, + EndPos: 5448, }, Expr: &binary.Mod{ Position: &position.Position{ StartLine: 291, - EndLine: 291, - StartPos: 5441, - EndPos: 5447, + EndLine: 291, + StartPos: 5441, + EndPos: 5447, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 291, - EndLine: 291, - StartPos: 5441, - EndPos: 5442, + EndLine: 291, + StartPos: 5441, + EndPos: 5442, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 291, - EndLine: 291, - StartPos: 5441, - EndPos: 5442, + EndLine: 291, + StartPos: 5441, + EndPos: 5442, }, Value: "a", }, @@ -13563,16 +13482,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 291, - EndLine: 291, - StartPos: 5446, - EndPos: 5447, + EndLine: 291, + StartPos: 5446, + EndPos: 5447, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 291, - EndLine: 291, - StartPos: 5446, - EndPos: 5447, + EndLine: 291, + StartPos: 5446, + EndPos: 5447, }, Value: "b", }, @@ -13582,30 +13501,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 292, - EndLine: 292, - StartPos: 5452, - EndPos: 5459, + EndLine: 292, + StartPos: 5452, + EndPos: 5459, }, Expr: &binary.Mul{ Position: &position.Position{ StartLine: 292, - EndLine: 292, - StartPos: 5452, - EndPos: 5458, + EndLine: 292, + StartPos: 5452, + EndPos: 5458, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 292, - EndLine: 292, - StartPos: 5452, - EndPos: 5453, + EndLine: 292, + StartPos: 5452, + EndPos: 5453, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 292, - EndLine: 292, - StartPos: 5452, - EndPos: 5453, + EndLine: 292, + StartPos: 5452, + EndPos: 5453, }, Value: "a", }, @@ -13613,16 +13532,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 292, - EndLine: 292, - StartPos: 5457, - EndPos: 5458, + EndLine: 292, + StartPos: 5457, + EndPos: 5458, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 292, - EndLine: 292, - StartPos: 5457, - EndPos: 5458, + EndLine: 292, + StartPos: 5457, + EndPos: 5458, }, Value: "b", }, @@ -13632,30 +13551,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 293, - EndLine: 293, - StartPos: 5463, - EndPos: 5471, + EndLine: 293, + StartPos: 5463, + EndPos: 5471, }, Expr: &binary.NotEqual{ Position: &position.Position{ StartLine: 293, - EndLine: 293, - StartPos: 5463, - EndPos: 5470, + EndLine: 293, + StartPos: 5463, + EndPos: 5470, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 293, - EndLine: 293, - StartPos: 5463, - EndPos: 5464, + EndLine: 293, + StartPos: 5463, + EndPos: 5464, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 293, - EndLine: 293, - StartPos: 5463, - EndPos: 5464, + EndLine: 293, + StartPos: 5463, + EndPos: 5464, }, Value: "a", }, @@ -13663,16 +13582,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 293, - EndLine: 293, - StartPos: 5469, - EndPos: 5470, + EndLine: 293, + StartPos: 5469, + EndPos: 5470, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 293, - EndLine: 293, - StartPos: 5469, - EndPos: 5470, + EndLine: 293, + StartPos: 5469, + EndPos: 5470, }, Value: "b", }, @@ -13682,30 +13601,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 294, - EndLine: 294, - StartPos: 5475, - EndPos: 5484, + EndLine: 294, + StartPos: 5475, + EndPos: 5484, }, Expr: &binary.NotIdentical{ Position: &position.Position{ StartLine: 294, - EndLine: 294, - StartPos: 5475, - EndPos: 5483, + EndLine: 294, + StartPos: 5475, + EndPos: 5483, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 294, - EndLine: 294, - StartPos: 5475, - EndPos: 5476, + EndLine: 294, + StartPos: 5475, + EndPos: 5476, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 294, - EndLine: 294, - StartPos: 5475, - EndPos: 5476, + EndLine: 294, + StartPos: 5475, + EndPos: 5476, }, Value: "a", }, @@ -13713,16 +13632,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 294, - EndLine: 294, - StartPos: 5482, - EndPos: 5483, + EndLine: 294, + StartPos: 5482, + EndPos: 5483, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 294, - EndLine: 294, - StartPos: 5482, - EndPos: 5483, + EndLine: 294, + StartPos: 5482, + EndPos: 5483, }, Value: "b", }, @@ -13732,30 +13651,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 295, - EndLine: 295, - StartPos: 5488, - EndPos: 5495, + EndLine: 295, + StartPos: 5488, + EndPos: 5495, }, Expr: &binary.Plus{ Position: &position.Position{ StartLine: 295, - EndLine: 295, - StartPos: 5488, - EndPos: 5494, + EndLine: 295, + StartPos: 5488, + EndPos: 5494, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 295, - EndLine: 295, - StartPos: 5488, - EndPos: 5489, + EndLine: 295, + StartPos: 5488, + EndPos: 5489, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 295, - EndLine: 295, - StartPos: 5488, - EndPos: 5489, + EndLine: 295, + StartPos: 5488, + EndPos: 5489, }, Value: "a", }, @@ -13763,16 +13682,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 295, - EndLine: 295, - StartPos: 5493, - EndPos: 5494, + EndLine: 295, + StartPos: 5493, + EndPos: 5494, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 295, - EndLine: 295, - StartPos: 5493, - EndPos: 5494, + EndLine: 295, + StartPos: 5493, + EndPos: 5494, }, Value: "b", }, @@ -13782,30 +13701,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 296, - EndLine: 296, - StartPos: 5499, - EndPos: 5507, + EndLine: 296, + StartPos: 5499, + EndPos: 5507, }, Expr: &binary.Pow{ Position: &position.Position{ StartLine: 296, - EndLine: 296, - StartPos: 5499, - EndPos: 5506, + EndLine: 296, + StartPos: 5499, + EndPos: 5506, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 296, - EndLine: 296, - StartPos: 5499, - EndPos: 5500, + EndLine: 296, + StartPos: 5499, + EndPos: 5500, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 296, - EndLine: 296, - StartPos: 5499, - EndPos: 5500, + EndLine: 296, + StartPos: 5499, + EndPos: 5500, }, Value: "a", }, @@ -13813,16 +13732,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 296, - EndLine: 296, - StartPos: 5505, - EndPos: 5506, + EndLine: 296, + StartPos: 5505, + EndPos: 5506, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 296, - EndLine: 296, - StartPos: 5505, - EndPos: 5506, + EndLine: 296, + StartPos: 5505, + EndPos: 5506, }, Value: "b", }, @@ -13832,30 +13751,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 297, - EndLine: 297, - StartPos: 5511, - EndPos: 5519, + EndLine: 297, + StartPos: 5511, + EndPos: 5519, }, Expr: &binary.ShiftLeft{ Position: &position.Position{ StartLine: 297, - EndLine: 297, - StartPos: 5511, - EndPos: 5518, + EndLine: 297, + StartPos: 5511, + EndPos: 5518, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 297, - EndLine: 297, - StartPos: 5511, - EndPos: 5512, + EndLine: 297, + StartPos: 5511, + EndPos: 5512, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 297, - EndLine: 297, - StartPos: 5511, - EndPos: 5512, + EndLine: 297, + StartPos: 5511, + EndPos: 5512, }, Value: "a", }, @@ -13863,16 +13782,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 297, - EndLine: 297, - StartPos: 5517, - EndPos: 5518, + EndLine: 297, + StartPos: 5517, + EndPos: 5518, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 297, - EndLine: 297, - StartPos: 5517, - EndPos: 5518, + EndLine: 297, + StartPos: 5517, + EndPos: 5518, }, Value: "b", }, @@ -13882,30 +13801,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5523, - EndPos: 5531, + EndLine: 298, + StartPos: 5523, + EndPos: 5531, }, Expr: &binary.ShiftRight{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5523, - EndPos: 5530, + EndLine: 298, + StartPos: 5523, + EndPos: 5530, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5523, - EndPos: 5524, + EndLine: 298, + StartPos: 5523, + EndPos: 5524, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5523, - EndPos: 5524, + EndLine: 298, + StartPos: 5523, + EndPos: 5524, }, Value: "a", }, @@ -13913,16 +13832,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5529, - EndPos: 5530, + EndLine: 298, + StartPos: 5529, + EndPos: 5530, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 298, - EndLine: 298, - StartPos: 5529, - EndPos: 5530, + EndLine: 298, + StartPos: 5529, + EndPos: 5530, }, Value: "b", }, @@ -13932,30 +13851,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 299, - EndLine: 299, - StartPos: 5535, - EndPos: 5543, + EndLine: 299, + StartPos: 5535, + EndPos: 5543, }, Expr: &binary.SmallerOrEqual{ Position: &position.Position{ StartLine: 299, - EndLine: 299, - StartPos: 5535, - EndPos: 5542, + EndLine: 299, + StartPos: 5535, + EndPos: 5542, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 299, - EndLine: 299, - StartPos: 5535, - EndPos: 5536, + EndLine: 299, + StartPos: 5535, + EndPos: 5536, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 299, - EndLine: 299, - StartPos: 5535, - EndPos: 5536, + EndLine: 299, + StartPos: 5535, + EndPos: 5536, }, Value: "a", }, @@ -13963,16 +13882,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 299, - EndLine: 299, - StartPos: 5541, - EndPos: 5542, + EndLine: 299, + StartPos: 5541, + EndPos: 5542, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 299, - EndLine: 299, - StartPos: 5541, - EndPos: 5542, + EndLine: 299, + StartPos: 5541, + EndPos: 5542, }, Value: "b", }, @@ -13982,30 +13901,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 300, - EndLine: 300, - StartPos: 5547, - EndPos: 5554, + EndLine: 300, + StartPos: 5547, + EndPos: 5554, }, Expr: &binary.Smaller{ Position: &position.Position{ StartLine: 300, - EndLine: 300, - StartPos: 5547, - EndPos: 5553, + EndLine: 300, + StartPos: 5547, + EndPos: 5553, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 300, - EndLine: 300, - StartPos: 5547, - EndPos: 5548, + EndLine: 300, + StartPos: 5547, + EndPos: 5548, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 300, - EndLine: 300, - StartPos: 5547, - EndPos: 5548, + EndLine: 300, + StartPos: 5547, + EndPos: 5548, }, Value: "a", }, @@ -14013,16 +13932,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 300, - EndLine: 300, - StartPos: 5552, - EndPos: 5553, + EndLine: 300, + StartPos: 5552, + EndPos: 5553, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 300, - EndLine: 300, - StartPos: 5552, - EndPos: 5553, + EndLine: 300, + StartPos: 5552, + EndPos: 5553, }, Value: "b", }, @@ -14032,30 +13951,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 301, - EndLine: 301, - StartPos: 5558, - EndPos: 5567, + EndLine: 301, + StartPos: 5558, + EndPos: 5567, }, Expr: &binary.Spaceship{ Position: &position.Position{ StartLine: 301, - EndLine: 301, - StartPos: 5558, - EndPos: 5566, + EndLine: 301, + StartPos: 5558, + EndPos: 5566, }, Left: &expr.Variable{ Position: &position.Position{ StartLine: 301, - EndLine: 301, - StartPos: 5558, - EndPos: 5559, + EndLine: 301, + StartPos: 5558, + EndPos: 5559, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 301, - EndLine: 301, - StartPos: 5558, - EndPos: 5559, + EndLine: 301, + StartPos: 5558, + EndPos: 5559, }, Value: "a", }, @@ -14063,16 +13982,16 @@ func TestPhp7(t *testing.T) { Right: &expr.Variable{ Position: &position.Position{ StartLine: 301, - EndLine: 301, - StartPos: 5565, - EndPos: 5566, + EndLine: 301, + StartPos: 5565, + EndPos: 5566, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 301, - EndLine: 301, - StartPos: 5565, - EndPos: 5566, + EndLine: 301, + StartPos: 5565, + EndPos: 5566, }, Value: "b", }, @@ -14082,30 +14001,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 303, - EndLine: 303, - StartPos: 5572, - EndPos: 5580, + EndLine: 303, + StartPos: 5572, + EndPos: 5580, }, Expr: &assign.Reference{ Position: &position.Position{ StartLine: 303, - EndLine: 303, - StartPos: 5572, - EndPos: 5579, + EndLine: 303, + StartPos: 5572, + EndPos: 5579, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 303, - EndLine: 303, - StartPos: 5572, - EndPos: 5573, + EndLine: 303, + StartPos: 5572, + EndPos: 5573, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 303, - EndLine: 303, - StartPos: 5572, - EndPos: 5573, + EndLine: 303, + StartPos: 5572, + EndPos: 5573, }, Value: "a", }, @@ -14113,16 +14032,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 303, - EndLine: 303, - StartPos: 5578, - EndPos: 5579, + EndLine: 303, + StartPos: 5578, + EndPos: 5579, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 303, - EndLine: 303, - StartPos: 5578, - EndPos: 5579, + EndLine: 303, + StartPos: 5578, + EndPos: 5579, }, Value: "b", }, @@ -14132,30 +14051,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 304, - EndLine: 304, - StartPos: 5584, - EndPos: 5591, + EndLine: 304, + StartPos: 5584, + EndPos: 5591, }, Expr: &assign.Assign{ Position: &position.Position{ StartLine: 304, - EndLine: 304, - StartPos: 5584, - EndPos: 5590, + EndLine: 304, + StartPos: 5584, + EndPos: 5590, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 304, - EndLine: 304, - StartPos: 5584, - EndPos: 5585, + EndLine: 304, + StartPos: 5584, + EndPos: 5585, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 304, - EndLine: 304, - StartPos: 5584, - EndPos: 5585, + EndLine: 304, + StartPos: 5584, + EndPos: 5585, }, Value: "a", }, @@ -14163,16 +14082,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 304, - EndLine: 304, - StartPos: 5589, - EndPos: 5590, + EndLine: 304, + StartPos: 5589, + EndPos: 5590, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 304, - EndLine: 304, - StartPos: 5589, - EndPos: 5590, + EndLine: 304, + StartPos: 5589, + EndPos: 5590, }, Value: "b", }, @@ -14182,30 +14101,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 305, - EndLine: 305, - StartPos: 5595, - EndPos: 5603, + EndLine: 305, + StartPos: 5595, + EndPos: 5603, }, Expr: &assign.BitwiseAnd{ Position: &position.Position{ StartLine: 305, - EndLine: 305, - StartPos: 5595, - EndPos: 5602, + EndLine: 305, + StartPos: 5595, + EndPos: 5602, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 305, - EndLine: 305, - StartPos: 5595, - EndPos: 5596, + EndLine: 305, + StartPos: 5595, + EndPos: 5596, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 305, - EndLine: 305, - StartPos: 5595, - EndPos: 5596, + EndLine: 305, + StartPos: 5595, + EndPos: 5596, }, Value: "a", }, @@ -14213,16 +14132,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 305, - EndLine: 305, - StartPos: 5601, - EndPos: 5602, + EndLine: 305, + StartPos: 5601, + EndPos: 5602, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 305, - EndLine: 305, - StartPos: 5601, - EndPos: 5602, + EndLine: 305, + StartPos: 5601, + EndPos: 5602, }, Value: "b", }, @@ -14232,30 +14151,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 306, - EndLine: 306, - StartPos: 5607, - EndPos: 5615, + EndLine: 306, + StartPos: 5607, + EndPos: 5615, }, Expr: &assign.BitwiseOr{ Position: &position.Position{ StartLine: 306, - EndLine: 306, - StartPos: 5607, - EndPos: 5614, + EndLine: 306, + StartPos: 5607, + EndPos: 5614, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 306, - EndLine: 306, - StartPos: 5607, - EndPos: 5608, + EndLine: 306, + StartPos: 5607, + EndPos: 5608, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 306, - EndLine: 306, - StartPos: 5607, - EndPos: 5608, + EndLine: 306, + StartPos: 5607, + EndPos: 5608, }, Value: "a", }, @@ -14263,16 +14182,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 306, - EndLine: 306, - StartPos: 5613, - EndPos: 5614, + EndLine: 306, + StartPos: 5613, + EndPos: 5614, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 306, - EndLine: 306, - StartPos: 5613, - EndPos: 5614, + EndLine: 306, + StartPos: 5613, + EndPos: 5614, }, Value: "b", }, @@ -14282,30 +14201,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 307, - EndLine: 307, - StartPos: 5619, - EndPos: 5627, + EndLine: 307, + StartPos: 5619, + EndPos: 5627, }, Expr: &assign.BitwiseXor{ Position: &position.Position{ StartLine: 307, - EndLine: 307, - StartPos: 5619, - EndPos: 5626, + EndLine: 307, + StartPos: 5619, + EndPos: 5626, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 307, - EndLine: 307, - StartPos: 5619, - EndPos: 5620, + EndLine: 307, + StartPos: 5619, + EndPos: 5620, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 307, - EndLine: 307, - StartPos: 5619, - EndPos: 5620, + EndLine: 307, + StartPos: 5619, + EndPos: 5620, }, Value: "a", }, @@ -14313,16 +14232,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 307, - EndLine: 307, - StartPos: 5625, - EndPos: 5626, + EndLine: 307, + StartPos: 5625, + EndPos: 5626, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 307, - EndLine: 307, - StartPos: 5625, - EndPos: 5626, + EndLine: 307, + StartPos: 5625, + EndPos: 5626, }, Value: "b", }, @@ -14332,30 +14251,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 308, - EndLine: 308, - StartPos: 5631, - EndPos: 5639, + EndLine: 308, + StartPos: 5631, + EndPos: 5639, }, Expr: &assign.Concat{ Position: &position.Position{ StartLine: 308, - EndLine: 308, - StartPos: 5631, - EndPos: 5638, + EndLine: 308, + StartPos: 5631, + EndPos: 5638, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 308, - EndLine: 308, - StartPos: 5631, - EndPos: 5632, + EndLine: 308, + StartPos: 5631, + EndPos: 5632, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 308, - EndLine: 308, - StartPos: 5631, - EndPos: 5632, + EndLine: 308, + StartPos: 5631, + EndPos: 5632, }, Value: "a", }, @@ -14363,16 +14282,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 308, - EndLine: 308, - StartPos: 5637, - EndPos: 5638, + EndLine: 308, + StartPos: 5637, + EndPos: 5638, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 308, - EndLine: 308, - StartPos: 5637, - EndPos: 5638, + EndLine: 308, + StartPos: 5637, + EndPos: 5638, }, Value: "b", }, @@ -14382,30 +14301,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 309, - EndLine: 309, - StartPos: 5643, - EndPos: 5651, + EndLine: 309, + StartPos: 5643, + EndPos: 5651, }, Expr: &assign.Div{ Position: &position.Position{ StartLine: 309, - EndLine: 309, - StartPos: 5643, - EndPos: 5650, + EndLine: 309, + StartPos: 5643, + EndPos: 5650, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 309, - EndLine: 309, - StartPos: 5643, - EndPos: 5644, + EndLine: 309, + StartPos: 5643, + EndPos: 5644, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 309, - EndLine: 309, - StartPos: 5643, - EndPos: 5644, + EndLine: 309, + StartPos: 5643, + EndPos: 5644, }, Value: "a", }, @@ -14413,16 +14332,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 309, - EndLine: 309, - StartPos: 5649, - EndPos: 5650, + EndLine: 309, + StartPos: 5649, + EndPos: 5650, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 309, - EndLine: 309, - StartPos: 5649, - EndPos: 5650, + EndLine: 309, + StartPos: 5649, + EndPos: 5650, }, Value: "b", }, @@ -14432,30 +14351,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 310, - EndLine: 310, - StartPos: 5655, - EndPos: 5663, + EndLine: 310, + StartPos: 5655, + EndPos: 5663, }, Expr: &assign.Minus{ Position: &position.Position{ StartLine: 310, - EndLine: 310, - StartPos: 5655, - EndPos: 5662, + EndLine: 310, + StartPos: 5655, + EndPos: 5662, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 310, - EndLine: 310, - StartPos: 5655, - EndPos: 5656, + EndLine: 310, + StartPos: 5655, + EndPos: 5656, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 310, - EndLine: 310, - StartPos: 5655, - EndPos: 5656, + EndLine: 310, + StartPos: 5655, + EndPos: 5656, }, Value: "a", }, @@ -14463,16 +14382,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 310, - EndLine: 310, - StartPos: 5661, - EndPos: 5662, + EndLine: 310, + StartPos: 5661, + EndPos: 5662, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 310, - EndLine: 310, - StartPos: 5661, - EndPos: 5662, + EndLine: 310, + StartPos: 5661, + EndPos: 5662, }, Value: "b", }, @@ -14482,30 +14401,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 311, - EndLine: 311, - StartPos: 5667, - EndPos: 5675, + EndLine: 311, + StartPos: 5667, + EndPos: 5675, }, Expr: &assign.Mod{ Position: &position.Position{ StartLine: 311, - EndLine: 311, - StartPos: 5667, - EndPos: 5674, + EndLine: 311, + StartPos: 5667, + EndPos: 5674, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 311, - EndLine: 311, - StartPos: 5667, - EndPos: 5668, + EndLine: 311, + StartPos: 5667, + EndPos: 5668, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 311, - EndLine: 311, - StartPos: 5667, - EndPos: 5668, + EndLine: 311, + StartPos: 5667, + EndPos: 5668, }, Value: "a", }, @@ -14513,16 +14432,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 311, - EndLine: 311, - StartPos: 5673, - EndPos: 5674, + EndLine: 311, + StartPos: 5673, + EndPos: 5674, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 311, - EndLine: 311, - StartPos: 5673, - EndPos: 5674, + EndLine: 311, + StartPos: 5673, + EndPos: 5674, }, Value: "b", }, @@ -14532,30 +14451,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 312, - EndLine: 312, - StartPos: 5679, - EndPos: 5687, + EndLine: 312, + StartPos: 5679, + EndPos: 5687, }, Expr: &assign.Mul{ Position: &position.Position{ StartLine: 312, - EndLine: 312, - StartPos: 5679, - EndPos: 5686, + EndLine: 312, + StartPos: 5679, + EndPos: 5686, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 312, - EndLine: 312, - StartPos: 5679, - EndPos: 5680, + EndLine: 312, + StartPos: 5679, + EndPos: 5680, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 312, - EndLine: 312, - StartPos: 5679, - EndPos: 5680, + EndLine: 312, + StartPos: 5679, + EndPos: 5680, }, Value: "a", }, @@ -14563,16 +14482,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 312, - EndLine: 312, - StartPos: 5685, - EndPos: 5686, + EndLine: 312, + StartPos: 5685, + EndPos: 5686, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 312, - EndLine: 312, - StartPos: 5685, - EndPos: 5686, + EndLine: 312, + StartPos: 5685, + EndPos: 5686, }, Value: "b", }, @@ -14582,30 +14501,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 313, - EndLine: 313, - StartPos: 5691, - EndPos: 5699, + EndLine: 313, + StartPos: 5691, + EndPos: 5699, }, Expr: &assign.Plus{ Position: &position.Position{ StartLine: 313, - EndLine: 313, - StartPos: 5691, - EndPos: 5698, + EndLine: 313, + StartPos: 5691, + EndPos: 5698, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 313, - EndLine: 313, - StartPos: 5691, - EndPos: 5692, + EndLine: 313, + StartPos: 5691, + EndPos: 5692, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 313, - EndLine: 313, - StartPos: 5691, - EndPos: 5692, + EndLine: 313, + StartPos: 5691, + EndPos: 5692, }, Value: "a", }, @@ -14613,16 +14532,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 313, - EndLine: 313, - StartPos: 5697, - EndPos: 5698, + EndLine: 313, + StartPos: 5697, + EndPos: 5698, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 313, - EndLine: 313, - StartPos: 5697, - EndPos: 5698, + EndLine: 313, + StartPos: 5697, + EndPos: 5698, }, Value: "b", }, @@ -14632,30 +14551,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 314, - EndLine: 314, - StartPos: 5703, - EndPos: 5712, + EndLine: 314, + StartPos: 5703, + EndPos: 5712, }, Expr: &assign.Pow{ Position: &position.Position{ StartLine: 314, - EndLine: 314, - StartPos: 5703, - EndPos: 5711, + EndLine: 314, + StartPos: 5703, + EndPos: 5711, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 314, - EndLine: 314, - StartPos: 5703, - EndPos: 5704, + EndLine: 314, + StartPos: 5703, + EndPos: 5704, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 314, - EndLine: 314, - StartPos: 5703, - EndPos: 5704, + EndLine: 314, + StartPos: 5703, + EndPos: 5704, }, Value: "a", }, @@ -14663,16 +14582,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 314, - EndLine: 314, - StartPos: 5710, - EndPos: 5711, + EndLine: 314, + StartPos: 5710, + EndPos: 5711, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 314, - EndLine: 314, - StartPos: 5710, - EndPos: 5711, + EndLine: 314, + StartPos: 5710, + EndPos: 5711, }, Value: "b", }, @@ -14682,30 +14601,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 315, - EndLine: 315, - StartPos: 5716, - EndPos: 5725, + EndLine: 315, + StartPos: 5716, + EndPos: 5725, }, Expr: &assign.ShiftLeft{ Position: &position.Position{ StartLine: 315, - EndLine: 315, - StartPos: 5716, - EndPos: 5724, + EndLine: 315, + StartPos: 5716, + EndPos: 5724, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 315, - EndLine: 315, - StartPos: 5716, - EndPos: 5717, + EndLine: 315, + StartPos: 5716, + EndPos: 5717, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 315, - EndLine: 315, - StartPos: 5716, - EndPos: 5717, + EndLine: 315, + StartPos: 5716, + EndPos: 5717, }, Value: "a", }, @@ -14713,16 +14632,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 315, - EndLine: 315, - StartPos: 5723, - EndPos: 5724, + EndLine: 315, + StartPos: 5723, + EndPos: 5724, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 315, - EndLine: 315, - StartPos: 5723, - EndPos: 5724, + EndLine: 315, + StartPos: 5723, + EndPos: 5724, }, Value: "b", }, @@ -14732,30 +14651,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 316, - EndLine: 316, - StartPos: 5729, - EndPos: 5738, + EndLine: 316, + StartPos: 5729, + EndPos: 5738, }, Expr: &assign.ShiftRight{ Position: &position.Position{ StartLine: 316, - EndLine: 316, - StartPos: 5729, - EndPos: 5737, + EndLine: 316, + StartPos: 5729, + EndPos: 5737, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 316, - EndLine: 316, - StartPos: 5729, - EndPos: 5730, + EndLine: 316, + StartPos: 5729, + EndPos: 5730, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 316, - EndLine: 316, - StartPos: 5729, - EndPos: 5730, + EndLine: 316, + StartPos: 5729, + EndPos: 5730, }, Value: "a", }, @@ -14763,16 +14682,16 @@ func TestPhp7(t *testing.T) { Expression: &expr.Variable{ Position: &position.Position{ StartLine: 316, - EndLine: 316, - StartPos: 5736, - EndPos: 5737, + EndLine: 316, + StartPos: 5736, + EndPos: 5737, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 316, - EndLine: 316, - StartPos: 5736, - EndPos: 5737, + EndLine: 316, + StartPos: 5736, + EndPos: 5737, }, Value: "b", }, @@ -14782,17 +14701,17 @@ func TestPhp7(t *testing.T) { &stmt.Class{ Position: &position.Position{ StartLine: 318, - EndLine: 318, - StartPos: 5743, - EndPos: 5781, + EndLine: 318, + StartPos: 5743, + EndPos: 5781, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 318, - EndLine: 318, - StartPos: 5749, - EndPos: 5751, + EndLine: 318, + StartPos: 5749, + EndPos: 5751, }, Value: "foo", }, @@ -14800,18 +14719,18 @@ func TestPhp7(t *testing.T) { &stmt.ClassMethod{ Position: &position.Position{ StartLine: 318, - EndLine: 318, - StartPos: 5754, - EndPos: 5779, + EndLine: 318, + StartPos: 5754, + EndPos: 5779, }, PhpDocComment: "", - ReturnsRef: false, + ReturnsRef: false, MethodName: &node.Identifier{ Position: &position.Position{ StartLine: 318, - EndLine: 318, - StartPos: 5770, - EndPos: 5774, + EndLine: 318, + StartPos: 5770, + EndPos: 5774, }, Value: "class", }, @@ -14819,9 +14738,9 @@ func TestPhp7(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 318, - EndLine: 318, - StartPos: 5754, - EndPos: 5759, + EndLine: 318, + StartPos: 5754, + EndPos: 5759, }, Value: "public", }, @@ -14829,12 +14748,11 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 318, - EndLine: 318, - StartPos: 5778, - EndPos: 5779, - }, - Stmts: []node.Node{ + EndLine: 318, + StartPos: 5778, + EndPos: 5779, }, + Stmts: []node.Node{}, }, }, }, @@ -14842,40 +14760,40 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 319, - EndLine: 319, - StartPos: 5785, - EndPos: 5795, + EndLine: 319, + StartPos: 5785, + EndPos: 5795, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 319, - EndLine: 319, - StartPos: 5785, - EndPos: 5794, + EndLine: 319, + StartPos: 5785, + EndPos: 5794, }, Function: &name.FullyQualified{ Position: &position.Position{ StartLine: 319, - EndLine: 319, - StartPos: 5785, - EndPos: 5792, + EndLine: 319, + StartPos: 5785, + EndPos: 5792, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 319, - EndLine: 319, - StartPos: 5786, - EndPos: 5788, + EndLine: 319, + StartPos: 5786, + EndPos: 5788, }, Value: "foo", }, &name.NamePart{ Position: &position.Position{ StartLine: 319, - EndLine: 319, - StartPos: 5790, - EndPos: 5792, + EndLine: 319, + StartPos: 5790, + EndPos: 5792, }, Value: "bar", }, @@ -14884,9 +14802,9 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 319, - EndLine: 319, - StartPos: 5793, - EndPos: 5794, + EndLine: 319, + StartPos: 5793, + EndPos: 5794, }, }, }, @@ -14894,18 +14812,18 @@ func TestPhp7(t *testing.T) { &stmt.Function{ Position: &position.Position{ StartLine: 321, - EndLine: 327, - StartPos: 5800, - EndPos: 5926, + EndLine: 327, + StartPos: 5800, + EndPos: 5926, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", FunctionName: &node.Identifier{ Position: &position.Position{ StartLine: 321, - EndLine: 321, - StartPos: 5809, - EndPos: 5811, + EndLine: 321, + StartPos: 5809, + EndPos: 5811, }, Value: "foo", }, @@ -14913,25 +14831,25 @@ func TestPhp7(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 321, - EndLine: 321, - StartPos: 5813, - EndPos: 5815, + EndLine: 321, + StartPos: 5813, + EndPos: 5815, }, - ByRef: true, + ByRef: true, Variadic: false, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 321, - EndLine: 321, - StartPos: 5814, - EndPos: 5815, + EndLine: 321, + StartPos: 5814, + EndPos: 5815, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 321, - EndLine: 321, - StartPos: 5814, - EndPos: 5815, + EndLine: 321, + StartPos: 5814, + EndPos: 5815, }, Value: "a", }, @@ -14940,25 +14858,25 @@ func TestPhp7(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 321, - EndLine: 321, - StartPos: 5818, - EndPos: 5822, + EndLine: 321, + StartPos: 5818, + EndPos: 5822, }, - ByRef: false, + ByRef: false, Variadic: true, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 321, - EndLine: 321, - StartPos: 5821, - EndPos: 5822, + EndLine: 321, + StartPos: 5821, + EndPos: 5822, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 321, - EndLine: 321, - StartPos: 5821, - EndPos: 5822, + EndLine: 321, + StartPos: 5821, + EndPos: 5822, }, Value: "b", }, @@ -14969,109 +14887,105 @@ func TestPhp7(t *testing.T) { &stmt.HaltCompiler{ Position: &position.Position{ StartLine: 322, - EndLine: 322, - StartPos: 5830, - EndPos: 5847, + EndLine: 322, + StartPos: 5830, + EndPos: 5847, }, }, &stmt.Function{ Position: &position.Position{ StartLine: 323, - EndLine: 323, - StartPos: 5852, - EndPos: 5868, + EndLine: 323, + StartPos: 5852, + EndPos: 5868, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", FunctionName: &node.Identifier{ Position: &position.Position{ StartLine: 323, - EndLine: 323, - StartPos: 5861, - EndPos: 5863, + EndLine: 323, + StartPos: 5861, + EndPos: 5863, }, Value: "bar", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Class{ Position: &position.Position{ StartLine: 324, - EndLine: 324, - StartPos: 5873, - EndPos: 5884, + EndLine: 324, + StartPos: 5873, + EndPos: 5884, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 324, - EndLine: 324, - StartPos: 5879, - EndPos: 5881, + EndLine: 324, + StartPos: 5879, + EndPos: 5881, }, Value: "Baz", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Trait{ Position: &position.Position{ StartLine: 325, - EndLine: 325, - StartPos: 5889, - EndPos: 5900, + EndLine: 325, + StartPos: 5889, + EndPos: 5900, }, PhpDocComment: "", TraitName: &node.Identifier{ Position: &position.Position{ StartLine: 325, - EndLine: 325, - StartPos: 5895, - EndPos: 5898, + EndLine: 325, + StartPos: 5895, + EndPos: 5898, }, Value: "Quux", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Interface{ Position: &position.Position{ StartLine: 326, - EndLine: 326, - StartPos: 5905, - EndPos: 5922, + EndLine: 326, + StartPos: 5905, + EndPos: 5922, }, PhpDocComment: "", InterfaceName: &node.Identifier{ Position: &position.Position{ StartLine: 326, - EndLine: 326, - StartPos: 5915, - EndPos: 5919, + EndLine: 326, + StartPos: 5915, + EndPos: 5919, }, Value: "Quuux", }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, }, }, &stmt.Function{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5933, - EndPos: 5975, + EndLine: 329, + StartPos: 5933, + EndPos: 5975, }, PhpDocComment: "", - ReturnsRef: false, + ReturnsRef: false, FunctionName: &node.Identifier{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5942, - EndPos: 5944, + EndLine: 329, + StartPos: 5942, + EndPos: 5944, }, Value: "foo", }, @@ -15079,25 +14993,25 @@ func TestPhp7(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5946, - EndPos: 5952, + EndLine: 329, + StartPos: 5946, + EndPos: 5952, }, - ByRef: true, + ByRef: true, Variadic: false, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5947, - EndPos: 5948, + EndLine: 329, + StartPos: 5947, + EndPos: 5948, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5947, - EndPos: 5948, + EndLine: 329, + StartPos: 5947, + EndPos: 5948, }, Value: "a", }, @@ -15105,9 +15019,9 @@ func TestPhp7(t *testing.T) { DefaultValue: &scalar.Lnumber{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5952, - EndPos: 5952, + EndLine: 329, + StartPos: 5952, + EndPos: 5952, }, Value: "1", }, @@ -15115,25 +15029,25 @@ func TestPhp7(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5955, - EndPos: 5963, + EndLine: 329, + StartPos: 5955, + EndPos: 5963, }, Variadic: true, - ByRef: false, + ByRef: false, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5958, - EndPos: 5959, + EndLine: 329, + StartPos: 5958, + EndPos: 5959, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5958, - EndPos: 5959, + EndLine: 329, + StartPos: 5958, + EndPos: 5959, }, Value: "b", }, @@ -15141,9 +15055,9 @@ func TestPhp7(t *testing.T) { DefaultValue: &scalar.Lnumber{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5963, - EndPos: 5963, + EndLine: 329, + StartPos: 5963, + EndPos: 5963, }, Value: "1", }, @@ -15151,25 +15065,25 @@ func TestPhp7(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5966, - EndPos: 5971, + EndLine: 329, + StartPos: 5966, + EndPos: 5971, }, - ByRef: false, + ByRef: false, Variadic: false, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5966, - EndPos: 5967, + EndLine: 329, + StartPos: 5966, + EndPos: 5967, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5966, - EndPos: 5967, + EndLine: 329, + StartPos: 5966, + EndPos: 5967, }, Value: "c", }, @@ -15177,32 +15091,31 @@ func TestPhp7(t *testing.T) { DefaultValue: &scalar.Lnumber{ Position: &position.Position{ StartLine: 329, - EndLine: 329, - StartPos: 5971, - EndPos: 5971, + EndLine: 329, + StartPos: 5971, + EndPos: 5971, }, Value: "1", }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Function{ Position: &position.Position{ StartLine: 330, - EndLine: 330, - StartPos: 5979, - EndPos: 6016, + EndLine: 330, + StartPos: 5979, + EndPos: 6016, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", FunctionName: &node.Identifier{ Position: &position.Position{ StartLine: 330, - EndLine: 330, - StartPos: 5988, - EndPos: 5990, + EndLine: 330, + StartPos: 5988, + EndPos: 5990, }, Value: "foo", }, @@ -15210,34 +15123,34 @@ func TestPhp7(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 330, - EndLine: 330, - StartPos: 5992, - EndPos: 5999, + EndLine: 330, + StartPos: 5992, + EndPos: 5999, }, - ByRef: false, + ByRef: false, Variadic: false, VariableType: &node.Identifier{ Position: &position.Position{ StartLine: 330, - EndLine: 330, - StartPos: 5992, - EndPos: 5996, + EndLine: 330, + StartPos: 5992, + EndPos: 5996, }, Value: "array", }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 330, - EndLine: 330, - StartPos: 5998, - EndPos: 5999, + EndLine: 330, + StartPos: 5998, + EndPos: 5999, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 330, - EndLine: 330, - StartPos: 5998, - EndPos: 5999, + EndLine: 330, + StartPos: 5998, + EndPos: 5999, }, Value: "a", }, @@ -15246,57 +15159,56 @@ func TestPhp7(t *testing.T) { &node.Parameter{ Position: &position.Position{ StartLine: 330, - EndLine: 330, - StartPos: 6002, - EndPos: 6012, + EndLine: 330, + StartPos: 6002, + EndPos: 6012, }, - ByRef: false, + ByRef: false, Variadic: false, VariableType: &node.Identifier{ Position: &position.Position{ StartLine: 330, - EndLine: 330, - StartPos: 6002, - EndPos: 6009, + EndLine: 330, + StartPos: 6002, + EndPos: 6009, }, Value: "callable", }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 330, - EndLine: 330, - StartPos: 6011, - EndPos: 6012, + EndLine: 330, + StartPos: 6011, + EndPos: 6012, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 330, - EndLine: 330, - StartPos: 6011, - EndPos: 6012, + EndLine: 330, + StartPos: 6011, + EndPos: 6012, }, Value: "b", }, }, }, }, - Stmts: []node.Node{ - }, + Stmts: []node.Node{}, }, &stmt.Class{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 6020, - EndPos: 6121, + EndLine: 331, + StartPos: 6020, + EndPos: 6121, }, PhpDocComment: "", ClassName: &node.Identifier{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 6041, - EndPos: 6043, + EndLine: 331, + StartPos: 6041, + EndPos: 6043, }, Value: "foo", }, @@ -15304,18 +15216,18 @@ func TestPhp7(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 6020, - EndPos: 6027, + EndLine: 331, + StartPos: 6020, + EndPos: 6027, }, Value: "abstract", }, &node.Identifier{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 6029, - EndPos: 6033, + EndLine: 331, + StartPos: 6029, + EndPos: 6033, }, Value: "final", }, @@ -15324,18 +15236,18 @@ func TestPhp7(t *testing.T) { &stmt.ClassMethod{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 6047, - EndPos: 6087, + EndLine: 331, + StartPos: 6047, + EndPos: 6087, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", MethodName: &node.Identifier{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 6082, - EndPos: 6084, + EndLine: 331, + StartPos: 6082, + EndPos: 6084, }, Value: "bar", }, @@ -15343,27 +15255,27 @@ func TestPhp7(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 6047, - EndPos: 6054, + EndLine: 331, + StartPos: 6047, + EndPos: 6054, }, Value: "abstract", }, &node.Identifier{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 6056, - EndPos: 6064, + EndLine: 331, + StartPos: 6056, + EndPos: 6064, }, Value: "protected", }, &node.Identifier{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 6066, - EndPos: 6071, + EndLine: 331, + StartPos: 6066, + EndPos: 6071, }, Value: "static", }, @@ -15371,27 +15283,27 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.Nop{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 6087, - EndPos: 6087, + EndLine: 331, + StartPos: 6087, + EndPos: 6087, }, }, }, &stmt.ClassMethod{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 6089, - EndPos: 6119, + EndLine: 331, + StartPos: 6089, + EndPos: 6119, }, - ReturnsRef: false, + ReturnsRef: false, PhpDocComment: "", MethodName: &node.Identifier{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 6112, - EndPos: 6114, + EndLine: 331, + StartPos: 6112, + EndPos: 6114, }, Value: "baz", }, @@ -15399,18 +15311,18 @@ func TestPhp7(t *testing.T) { &node.Identifier{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 6089, - EndPos: 6093, + EndLine: 331, + StartPos: 6089, + EndPos: 6093, }, Value: "final", }, &node.Identifier{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 6095, - EndPos: 6101, + EndLine: 331, + StartPos: 6095, + EndPos: 6101, }, Value: "private", }, @@ -15418,12 +15330,11 @@ func TestPhp7(t *testing.T) { Stmt: &stmt.StmtList{ Position: &position.Position{ StartLine: 331, - EndLine: 331, - StartPos: 6118, - EndPos: 6119, - }, - Stmts: []node.Node{ + EndLine: 331, + StartPos: 6118, + EndPos: 6119, }, + Stmts: []node.Node{}, }, }, }, @@ -15431,38 +15342,38 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 333, - EndLine: 333, - StartPos: 6127, - EndPos: 6140, + EndLine: 333, + StartPos: 6127, + EndPos: 6140, }, Expr: &expr.PropertyFetch{ Position: &position.Position{ StartLine: 333, - EndLine: 333, - StartPos: 6127, - EndPos: 6139, + EndLine: 333, + StartPos: 6127, + EndPos: 6139, }, Variable: &expr.New{ Position: &position.Position{ StartLine: 333, - EndLine: 333, - StartPos: 6127, - EndPos: 6133, + EndLine: 333, + StartPos: 6127, + EndPos: 6133, }, Class: &name.Name{ Position: &position.Position{ StartLine: 333, - EndLine: 333, - StartPos: 6131, - EndPos: 6133, + EndLine: 333, + StartPos: 6131, + EndPos: 6133, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 333, - EndLine: 333, - StartPos: 6131, - EndPos: 6133, + EndLine: 333, + StartPos: 6131, + EndPos: 6133, }, Value: "Foo", }, @@ -15472,9 +15383,9 @@ func TestPhp7(t *testing.T) { Property: &node.Identifier{ Position: &position.Position{ StartLine: 333, - EndLine: 333, - StartPos: 6137, - EndPos: 6139, + EndLine: 333, + StartPos: 6137, + EndPos: 6139, }, Value: "bar", }, @@ -15483,38 +15394,38 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 334, - EndLine: 334, - StartPos: 6145, - EndPos: 6155, + EndLine: 334, + StartPos: 6145, + EndPos: 6155, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 334, - EndLine: 334, - StartPos: 6145, - EndPos: 6154, + EndLine: 334, + StartPos: 6145, + EndPos: 6154, }, Function: &expr.New{ Position: &position.Position{ StartLine: 334, - EndLine: 334, - StartPos: 6145, - EndPos: 6151, + EndLine: 334, + StartPos: 6145, + EndPos: 6151, }, Class: &name.Name{ Position: &position.Position{ StartLine: 334, - EndLine: 334, - StartPos: 6149, - EndPos: 6151, + EndLine: 334, + StartPos: 6149, + EndPos: 6151, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 334, - EndLine: 334, - StartPos: 6149, - EndPos: 6151, + EndLine: 334, + StartPos: 6149, + EndPos: 6151, }, Value: "Foo", }, @@ -15524,9 +15435,9 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 334, - EndLine: 334, - StartPos: 6153, - EndPos: 6154, + EndLine: 334, + StartPos: 6153, + EndPos: 6154, }, }, }, @@ -15534,52 +15445,52 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6159, - EndPos: 6170, + EndLine: 335, + StartPos: 6159, + EndPos: 6170, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6159, - EndPos: 6169, + EndLine: 335, + StartPos: 6159, + EndPos: 6169, }, Function: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6159, - EndPos: 6167, + EndLine: 335, + StartPos: 6159, + EndPos: 6167, }, Variable: &expr.ShortArray{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6159, - EndPos: 6164, + EndLine: 335, + StartPos: 6159, + EndPos: 6164, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6160, - EndPos: 6163, + EndLine: 335, + StartPos: 6160, + EndPos: 6163, }, Val: &expr.Variable{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6160, - EndPos: 6163, + EndLine: 335, + StartPos: 6160, + EndPos: 6163, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6160, - EndPos: 6163, + EndLine: 335, + StartPos: 6160, + EndPos: 6163, }, Value: "foo", }, @@ -15590,9 +15501,9 @@ func TestPhp7(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6166, - EndPos: 6166, + EndLine: 335, + StartPos: 6166, + EndPos: 6166, }, Value: "0", }, @@ -15600,9 +15511,9 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 335, - EndLine: 335, - StartPos: 6168, - EndPos: 6169, + EndLine: 335, + StartPos: 6168, + EndPos: 6169, }, }, }, @@ -15610,45 +15521,45 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 336, - EndLine: 336, - StartPos: 6174, - EndPos: 6182, + EndLine: 336, + StartPos: 6174, + EndPos: 6182, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 336, - EndLine: 336, - StartPos: 6174, - EndPos: 6181, + EndLine: 336, + StartPos: 6174, + EndPos: 6181, }, Function: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 336, - EndLine: 336, - StartPos: 6174, - EndPos: 6179, + EndLine: 336, + StartPos: 6174, + EndPos: 6179, }, Variable: &expr.ConstFetch{ Position: &position.Position{ StartLine: 336, - EndLine: 336, - StartPos: 6174, - EndPos: 6176, + EndLine: 336, + StartPos: 6174, + EndPos: 6176, }, Constant: &name.Name{ Position: &position.Position{ StartLine: 336, - EndLine: 336, - StartPos: 6174, - EndPos: 6176, + EndLine: 336, + StartPos: 6174, + EndPos: 6176, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 336, - EndLine: 336, - StartPos: 6174, - EndPos: 6176, + EndLine: 336, + StartPos: 6174, + EndPos: 6176, }, Value: "foo", }, @@ -15658,9 +15569,9 @@ func TestPhp7(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 336, - EndLine: 336, - StartPos: 6178, - EndPos: 6178, + EndLine: 336, + StartPos: 6178, + EndPos: 6178, }, Value: "1", }, @@ -15668,9 +15579,9 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 336, - EndLine: 336, - StartPos: 6180, - EndPos: 6181, + EndLine: 336, + StartPos: 6180, + EndPos: 6181, }, }, }, @@ -15678,32 +15589,32 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 337, - EndLine: 337, - StartPos: 6186, - EndPos: 6193, + EndLine: 337, + StartPos: 6186, + EndPos: 6193, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 337, - EndLine: 337, - StartPos: 6186, - EndPos: 6192, + EndLine: 337, + StartPos: 6186, + EndPos: 6192, }, Function: &scalar.String{ Position: &position.Position{ StartLine: 337, - EndLine: 337, - StartPos: 6186, - EndPos: 6190, + EndLine: 337, + StartPos: 6186, + EndPos: 6190, }, Value: "\"foo\"", }, ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 337, - EndLine: 337, - StartPos: 6191, - EndPos: 6192, + EndLine: 337, + StartPos: 6191, + EndPos: 6192, }, }, }, @@ -15711,45 +15622,45 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 338, - EndLine: 338, - StartPos: 6197, - EndPos: 6208, + EndLine: 338, + StartPos: 6197, + EndPos: 6208, }, Expr: &expr.FunctionCall{ Position: &position.Position{ StartLine: 338, - EndLine: 338, - StartPos: 6197, - EndPos: 6207, + EndLine: 338, + StartPos: 6197, + EndPos: 6207, }, Function: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 338, - EndLine: 338, - StartPos: 6197, - EndPos: 6205, + EndLine: 338, + StartPos: 6197, + EndPos: 6205, }, Variable: &expr.ShortArray{ Position: &position.Position{ StartLine: 338, - EndLine: 338, - StartPos: 6197, - EndPos: 6199, + EndLine: 338, + StartPos: 6197, + EndPos: 6199, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 338, - EndLine: 338, - StartPos: 6198, - EndPos: 6198, + EndLine: 338, + StartPos: 6198, + EndPos: 6198, }, Val: &scalar.Lnumber{ Position: &position.Position{ StartLine: 338, - EndLine: 338, - StartPos: 6198, - EndPos: 6198, + EndLine: 338, + StartPos: 6198, + EndPos: 6198, }, Value: "1", }, @@ -15759,16 +15670,16 @@ func TestPhp7(t *testing.T) { Dim: &expr.Variable{ Position: &position.Position{ StartLine: 338, - EndLine: 338, - StartPos: 6201, - EndPos: 6204, + EndLine: 338, + StartPos: 6201, + EndPos: 6204, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 338, - EndLine: 338, - StartPos: 6201, - EndPos: 6204, + EndLine: 338, + StartPos: 6201, + EndPos: 6204, }, Value: "foo", }, @@ -15777,9 +15688,9 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 338, - EndLine: 338, - StartPos: 6206, - EndPos: 6207, + EndLine: 338, + StartPos: 6206, + EndPos: 6207, }, }, }, @@ -15787,38 +15698,38 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 339, - EndLine: 339, - StartPos: 6212, - EndPos: 6220, + EndLine: 339, + StartPos: 6212, + EndPos: 6220, }, Expr: &expr.Variable{ Position: &position.Position{ StartLine: 339, - EndLine: 339, - StartPos: 6212, - EndPos: 6219, + EndLine: 339, + StartPos: 6212, + EndPos: 6219, }, VarName: &expr.FunctionCall{ Position: &position.Position{ StartLine: 339, - EndLine: 339, - StartPos: 6214, - EndPos: 6218, + EndLine: 339, + StartPos: 6214, + EndPos: 6218, }, Function: &name.Name{ Position: &position.Position{ StartLine: 339, - EndLine: 339, - StartPos: 6214, - EndPos: 6216, + EndLine: 339, + StartPos: 6214, + EndPos: 6216, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 339, - EndLine: 339, - StartPos: 6214, - EndPos: 6216, + EndLine: 339, + StartPos: 6214, + EndPos: 6216, }, Value: "foo", }, @@ -15827,9 +15738,9 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 339, - EndLine: 339, - StartPos: 6217, - EndPos: 6218, + EndLine: 339, + StartPos: 6217, + EndPos: 6218, }, }, }, @@ -15838,31 +15749,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 341, - EndLine: 341, - StartPos: 6225, - EndPos: 6236, + EndLine: 341, + StartPos: 6225, + EndPos: 6236, }, Expr: &expr.StaticCall{ Position: &position.Position{ StartLine: 341, - EndLine: 341, - StartPos: 6225, - EndPos: 6235, + EndLine: 341, + StartPos: 6225, + EndPos: 6235, }, Class: &name.Name{ Position: &position.Position{ StartLine: 341, - EndLine: 341, - StartPos: 6225, - EndPos: 6227, + EndLine: 341, + StartPos: 6225, + EndPos: 6227, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 341, - EndLine: 341, - StartPos: 6225, - EndPos: 6227, + EndLine: 341, + StartPos: 6225, + EndPos: 6227, }, Value: "Foo", }, @@ -15871,16 +15782,16 @@ func TestPhp7(t *testing.T) { Call: &expr.Variable{ Position: &position.Position{ StartLine: 341, - EndLine: 341, - StartPos: 6230, - EndPos: 6233, + EndLine: 341, + StartPos: 6230, + EndPos: 6233, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 341, - EndLine: 341, - StartPos: 6230, - EndPos: 6233, + EndLine: 341, + StartPos: 6230, + EndPos: 6233, }, Value: "bar", }, @@ -15888,9 +15799,9 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 341, - EndLine: 341, - StartPos: 6234, - EndPos: 6235, + EndLine: 341, + StartPos: 6234, + EndPos: 6235, }, }, }, @@ -15898,31 +15809,31 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 342, - EndLine: 342, - StartPos: 6240, - EndPos: 6256, + EndLine: 342, + StartPos: 6240, + EndPos: 6256, }, Expr: &expr.StaticCall{ Position: &position.Position{ StartLine: 342, - EndLine: 342, - StartPos: 6240, - EndPos: 6255, + EndLine: 342, + StartPos: 6240, + EndPos: 6255, }, Class: &name.Name{ Position: &position.Position{ StartLine: 342, - EndLine: 342, - StartPos: 6240, - EndPos: 6242, + EndLine: 342, + StartPos: 6240, + EndPos: 6242, }, Parts: []node.Node{ &name.NamePart{ Position: &position.Position{ StartLine: 342, - EndLine: 342, - StartPos: 6240, - EndPos: 6242, + EndLine: 342, + StartPos: 6240, + EndPos: 6242, }, Value: "Foo", }, @@ -15931,23 +15842,23 @@ func TestPhp7(t *testing.T) { Call: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 342, - EndLine: 342, - StartPos: 6246, - EndPos: 6252, + EndLine: 342, + StartPos: 6246, + EndPos: 6252, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 342, - EndLine: 342, - StartPos: 6246, - EndPos: 6249, + EndLine: 342, + StartPos: 6246, + EndPos: 6249, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 342, - EndLine: 342, - StartPos: 6246, - EndPos: 6249, + EndLine: 342, + StartPos: 6246, + EndPos: 6249, }, Value: "bar", }, @@ -15955,9 +15866,9 @@ func TestPhp7(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 342, - EndLine: 342, - StartPos: 6251, - EndPos: 6251, + EndLine: 342, + StartPos: 6251, + EndPos: 6251, }, Value: "0", }, @@ -15965,9 +15876,9 @@ func TestPhp7(t *testing.T) { ArgumentList: &node.ArgumentList{ Position: &position.Position{ StartLine: 342, - EndLine: 342, - StartPos: 6254, - EndPos: 6255, + EndLine: 342, + StartPos: 6254, + EndPos: 6255, }, }, }, @@ -15975,30 +15886,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 344, - EndLine: 344, - StartPos: 6263, - EndPos: 6273, + EndLine: 344, + StartPos: 6263, + EndPos: 6273, }, Expr: &expr.PropertyFetch{ Position: &position.Position{ StartLine: 344, - EndLine: 344, - StartPos: 6263, - EndPos: 6272, + EndLine: 344, + StartPos: 6263, + EndPos: 6272, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 344, - EndLine: 344, - StartPos: 6263, - EndPos: 6266, + EndLine: 344, + StartPos: 6263, + EndPos: 6266, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 344, - EndLine: 344, - StartPos: 6263, - EndPos: 6266, + EndLine: 344, + StartPos: 6263, + EndPos: 6266, }, Value: "foo", }, @@ -16006,16 +15917,16 @@ func TestPhp7(t *testing.T) { Property: &expr.Variable{ Position: &position.Position{ StartLine: 344, - EndLine: 344, - StartPos: 6269, - EndPos: 6272, + EndLine: 344, + StartPos: 6269, + EndPos: 6272, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 344, - EndLine: 344, - StartPos: 6269, - EndPos: 6272, + EndLine: 344, + StartPos: 6269, + EndPos: 6272, }, Value: "bar", }, @@ -16025,30 +15936,30 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 345, - EndLine: 345, - StartPos: 6277, - EndPos: 6292, + EndLine: 345, + StartPos: 6277, + EndPos: 6292, }, Expr: &expr.PropertyFetch{ Position: &position.Position{ StartLine: 345, - EndLine: 345, - StartPos: 6277, - EndPos: 6290, + EndLine: 345, + StartPos: 6277, + EndPos: 6290, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 345, - EndLine: 345, - StartPos: 6277, - EndPos: 6280, + EndLine: 345, + StartPos: 6277, + EndPos: 6280, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 345, - EndLine: 345, - StartPos: 6277, - EndPos: 6280, + EndLine: 345, + StartPos: 6277, + EndPos: 6280, }, Value: "foo", }, @@ -16056,23 +15967,23 @@ func TestPhp7(t *testing.T) { Property: &expr.ArrayDimFetch{ Position: &position.Position{ StartLine: 345, - EndLine: 345, - StartPos: 6284, - EndPos: 6290, + EndLine: 345, + StartPos: 6284, + EndPos: 6290, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 345, - EndLine: 345, - StartPos: 6284, - EndPos: 6287, + EndLine: 345, + StartPos: 6284, + EndPos: 6287, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 345, - EndLine: 345, - StartPos: 6284, - EndPos: 6287, + EndLine: 345, + StartPos: 6284, + EndPos: 6287, }, Value: "bar", }, @@ -16080,9 +15991,9 @@ func TestPhp7(t *testing.T) { Dim: &scalar.Lnumber{ Position: &position.Position{ StartLine: 345, - EndLine: 345, - StartPos: 6289, - EndPos: 6289, + EndLine: 345, + StartPos: 6289, + EndPos: 6289, }, Value: "0", }, @@ -16092,54 +16003,54 @@ func TestPhp7(t *testing.T) { &stmt.Expression{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6297, - EndPos: 6318, + EndLine: 347, + StartPos: 6297, + EndPos: 6318, }, Expr: &expr.ShortArray{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6297, - EndPos: 6317, + EndLine: 347, + StartPos: 6297, + EndPos: 6317, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6298, - EndPos: 6303, + EndLine: 347, + StartPos: 6298, + EndPos: 6303, }, Key: &scalar.Lnumber{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6298, - EndPos: 6298, + EndLine: 347, + StartPos: 6298, + EndPos: 6298, }, Value: "1", }, Val: &expr.Reference{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6301, - EndPos: 6303, + EndLine: 347, + StartPos: 6301, + EndPos: 6303, }, Variable: &expr.Variable{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6302, - EndPos: 6303, + EndLine: 347, + StartPos: 6302, + EndPos: 6303, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6302, - EndPos: 6303, + EndLine: 347, + StartPos: 6302, + EndPos: 6303, }, Value: "a", }, @@ -16149,47 +16060,47 @@ func TestPhp7(t *testing.T) { &expr.ArrayItem{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6306, - EndPos: 6316, + EndLine: 347, + StartPos: 6306, + EndPos: 6316, }, Key: &scalar.Lnumber{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6306, - EndPos: 6306, + EndLine: 347, + StartPos: 6306, + EndPos: 6306, }, Value: "2", }, Val: &expr.List{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6309, - EndPos: 6316, + EndLine: 347, + StartPos: 6309, + EndPos: 6316, }, Items: []node.Node{ &expr.ArrayItem{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6314, - EndPos: 6315, + EndLine: 347, + StartPos: 6314, + EndPos: 6315, }, Val: &expr.Variable{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6314, - EndPos: 6315, + EndLine: 347, + StartPos: 6314, + EndPos: 6315, }, VarName: &node.Identifier{ Position: &position.Position{ StartLine: 347, - EndLine: 347, - StartPos: 6314, - EndPos: 6315, + EndLine: 347, + StartPos: 6314, + EndPos: 6315, }, Value: "b", },