refactor: remove unused and confusing function implementations
This commit is contained in:
parent
3ba9118676
commit
b934f01c67
@ -4,23 +4,9 @@ import (
|
|||||||
"github.com/VKCOM/php-parser/pkg/ast"
|
"github.com/VKCOM/php-parser/pkg/ast"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Null struct {
|
type Null struct{}
|
||||||
}
|
|
||||||
|
|
||||||
func (v *Null) Enter(_ string, _ bool) {
|
var _ ast.Visitor = &Null{}
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
func (v *Null) Leave(_ string, _ bool) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
func (v *Null) EnterNode(_ ast.Vertex) bool {
|
|
||||||
return true
|
|
||||||
}
|
|
||||||
|
|
||||||
func (v *Null) LeaveNode(_ ast.Vertex) {
|
|
||||||
// do nothing
|
|
||||||
}
|
|
||||||
|
|
||||||
func (v *Null) Root(_ *ast.Root) {
|
func (v *Null) Root(_ *ast.Root) {
|
||||||
// do nothing
|
// do nothing
|
||||||
|
Loading…
Reference in New Issue
Block a user