[refactoring] remove general Node struct

This commit is contained in:
Vadym Slizov
2020-12-08 00:04:12 +02:00
parent f6f86bf99b
commit 20a42da7c9
13 changed files with 4161 additions and 7155 deletions

View File

@@ -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 {

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -20,12 +20,6 @@ func ExampleDump() {
},
},
},
Position: &position.Position{
StartLine: 1,
EndLine: 1,
StartPos: 0,
EndPos: 1,
},
},
Stmts: []ast.Vertex{
&ast.Identifier{},