[refactoring] update ast structure of "Class" and "Trait" nodes
This commit is contained in:
@@ -1476,7 +1476,7 @@ func (p *PrettyPrinter) printStmtClass(n ast.Vertex) {
|
||||
|
||||
if nn.ArgumentList != nil {
|
||||
io.WriteString(p.w, "(")
|
||||
p.joinPrint(", ", nn.ArgumentList.Arguments)
|
||||
p.joinPrint(", ", nn.ArgumentList.(*ast.ArgumentList).Arguments)
|
||||
io.WriteString(p.w, ")")
|
||||
}
|
||||
|
||||
|
||||
@@ -2097,7 +2097,7 @@ func (p *Printer) printStmtClass(n ast.Vertex) {
|
||||
|
||||
if nn.ArgumentList != nil {
|
||||
p.printFreeFloatingOrDefault(nn.ArgumentList, token.Start, "(")
|
||||
p.joinPrint(",", nn.ArgumentList.Arguments)
|
||||
p.joinPrint(",", nn.ArgumentList.(*ast.ArgumentList).Arguments)
|
||||
p.printFreeFloatingOrDefault(nn.ArgumentList, token.End, ")")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user