[refactoring] remove general Node struct
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
package ast
|
||||
|
||||
import "github.com/z7zmey/php-parser/pkg/position"
|
||||
|
||||
type Vertex interface {
|
||||
Accept(v NodeVisitor)
|
||||
GetNode() *Node
|
||||
GetPosition() *position.Position
|
||||
}
|
||||
|
||||
type Traverser interface {
|
||||
|
||||
1207
pkg/ast/node.go
1207
pkg/ast/node.go
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -20,12 +20,6 @@ func ExampleDump() {
|
||||
},
|
||||
},
|
||||
},
|
||||
Position: &position.Position{
|
||||
StartLine: 1,
|
||||
EndLine: 1,
|
||||
StartPos: 0,
|
||||
EndPos: 1,
|
||||
},
|
||||
},
|
||||
Stmts: []ast.Vertex{
|
||||
&ast.Identifier{},
|
||||
|
||||
Reference in New Issue
Block a user