remove nodesWithEndToken type

This commit is contained in:
z7zmey
2018-06-03 09:35:44 +03:00
parent 2abe1dfb84
commit a488f43496
17 changed files with 1393 additions and 1251 deletions

View File

@@ -63,8 +63,8 @@ func ExampleDumper() {
//| "Stmts":
//| [*stmt.ClassMethod]
//| "Position": Pos{Line: 5-9 Pos: 45-134};
//| "PhpDocComment": ;
//| "ReturnsRef": false;
//| "PhpDocComment": ;
//| "MethodName":
//| [*node.Identifier]
//| "Position": Pos{Line: 5-5 Pos: 61-72};
@@ -104,16 +104,19 @@ func ExampleDumper() {
//| [*name.NamePart]
//| "Position": Pos{Line: 5-5 Pos: 86-89};
//| "Value": null;
//| "Stmts":
//| [*stmt.Expression]
//| "Position": Pos{Line: 8-8 Pos: 124-128};
//| "Expr":
//| [*expr.Variable]
//| "Position": Pos{Line: 8-8 Pos: 124-127};
//| "Comments":
//| "// some comment\n" before "VariableToken"
//| "VarName":
//| [*node.Identifier]
//| "Stmt":
//| [*stmt.StmtList]
//| "Position": Pos{Line: 6-9 Pos: 96-134};
//| "Stmts":
//| [*stmt.Expression]
//| "Position": Pos{Line: 8-8 Pos: 124-128};
//| "Expr":
//| [*expr.Variable]
//| "Position": Pos{Line: 8-8 Pos: 124-127};
//| "Value": var;
//| "Comments":
//| "// some comment\n" before "VariableToken"
//| "VarName":
//| [*node.Identifier]
//| "Position": Pos{Line: 8-8 Pos: 124-127};
//| "Value": var;
}

View File

@@ -544,7 +544,9 @@ func TestResolveMethodName(t *testing.T) {
},
},
ReturnType: &node.Nullable{Expr: nameBC},
Stmts: []node.Node{},
Stmt: &stmt.StmtList{
Stmts: []node.Node{},
},
}
expected := map[node.Node]string{