[refactoring] update ast structure of "ExprMethodCall" and "ExprPropertyFetch" nodes
This commit is contained in:
@@ -1396,10 +1396,12 @@ func (t *DFS) Traverse(n ast.Vertex) {
|
||||
t.Traverse(nn.Method)
|
||||
t.visitor.Leave("Method", true)
|
||||
}
|
||||
if nn.ArgumentList != nil {
|
||||
t.visitor.Enter("ArgumentList", true)
|
||||
t.Traverse(nn.ArgumentList)
|
||||
t.visitor.Leave("ArgumentList", true)
|
||||
if nn.Arguments != nil {
|
||||
t.visitor.Enter("Arguments", false)
|
||||
for _, c := range nn.Arguments {
|
||||
t.Traverse(c)
|
||||
}
|
||||
t.visitor.Leave("Arguments", false)
|
||||
}
|
||||
case *ast.ExprNew:
|
||||
if nn == nil {
|
||||
|
||||
Reference in New Issue
Block a user