refactor: remove unused and confusing function implementations

This commit is contained in:
Laytan Laats 2023-03-25 21:54:47 +01:00
parent 3ba9118676
commit b934f01c67

View File

@ -4,23 +4,9 @@ import (
"github.com/VKCOM/php-parser/pkg/ast"
)
type Null struct {
}
type Null struct{}
func (v *Null) Enter(_ string, _ bool) {
// 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
}
var _ ast.Visitor = &Null{}
func (v *Null) Root(_ *ast.Root) {
// do nothing