build: replace VKCOM import with laytan import
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
package traverser
|
||||
|
||||
import (
|
||||
"github.com/VKCOM/php-parser/pkg/ast"
|
||||
"github.com/laytan/php-parser/pkg/ast"
|
||||
)
|
||||
|
||||
//go:generate go run traverser_gen.go
|
||||
|
||||
@@ -10,7 +10,7 @@ import (
|
||||
"path/filepath"
|
||||
"text/template"
|
||||
|
||||
phpast "github.com/VKCOM/php-parser/pkg/ast"
|
||||
phpast "github.com/laytan/php-parser/pkg/ast"
|
||||
"golang.org/x/tools/go/packages"
|
||||
)
|
||||
|
||||
@@ -32,7 +32,7 @@ var fileTempl = template.Must(
|
||||
|
||||
package traverser
|
||||
|
||||
import "github.com/VKCOM/php-parser/pkg/ast"
|
||||
import "github.com/laytan/php-parser/pkg/ast"
|
||||
{{range $typ := .Types}}
|
||||
func (t *Traverser) {{$typ.FuncName}}(n *ast.{{$typ.Name}}) {
|
||||
if !t.checkEntrance(n) {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
|
||||
package traverser
|
||||
|
||||
import "github.com/VKCOM/php-parser/pkg/ast"
|
||||
import "github.com/laytan/php-parser/pkg/ast"
|
||||
|
||||
func (t *Traverser) Root(n *ast.Root) {
|
||||
if !t.checkEntrance(n) {
|
||||
|
||||
@@ -3,9 +3,9 @@ package traverser_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/VKCOM/php-parser/pkg/ast"
|
||||
"github.com/VKCOM/php-parser/pkg/visitor"
|
||||
"github.com/VKCOM/php-parser/pkg/visitor/traverser"
|
||||
"github.com/laytan/php-parser/pkg/ast"
|
||||
"github.com/laytan/php-parser/pkg/visitor"
|
||||
"github.com/laytan/php-parser/pkg/visitor/traverser"
|
||||
)
|
||||
|
||||
// testCase is a traverser that does not go into any class statement or its children.
|
||||
|
||||
Reference in New Issue
Block a user