build: replace VKCOM import with laytan import

This commit is contained in:
Laytan Laats
2023-03-31 16:50:08 +02:00
parent 92d341cbb5
commit 68ac672368
62 changed files with 201 additions and 200 deletions

View File

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

View File

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

View File

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

View File

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