go mod tidy

This commit is contained in:
2023-12-09 22:36:19 +01:00
parent 65868e812d
commit 966682546c
63 changed files with 244 additions and 255 deletions

View File

@@ -5,10 +5,10 @@ import (
"strconv"
"strings"
"github.com/laytan/php-parser/pkg/position"
"github.com/laytan/php-parser/pkg/token"
"git.maride.cc/maride/php-parser/pkg/position"
"git.maride.cc/maride/php-parser/pkg/token"
"github.com/laytan/php-parser/pkg/ast"
"git.maride.cc/maride/php-parser/pkg/ast"
)
type Dumper struct {

View File

@@ -4,11 +4,11 @@ import (
"bytes"
"testing"
"github.com/laytan/php-parser/pkg/position"
"github.com/laytan/php-parser/pkg/token"
"github.com/laytan/php-parser/pkg/visitor/dumper"
"git.maride.cc/maride/php-parser/pkg/position"
"git.maride.cc/maride/php-parser/pkg/token"
"git.maride.cc/maride/php-parser/pkg/visitor/dumper"
"github.com/laytan/php-parser/pkg/ast"
"git.maride.cc/maride/php-parser/pkg/ast"
)
func TestDumper_root(t *testing.T) {

View File

@@ -3,8 +3,8 @@ package formatter
import (
"bytes"
"github.com/laytan/php-parser/pkg/ast"
"github.com/laytan/php-parser/pkg/token"
"git.maride.cc/maride/php-parser/pkg/ast"
"git.maride.cc/maride/php-parser/pkg/token"
)
type formatterState int

View File

@@ -2,12 +2,12 @@ package formatter_test
import (
"bytes"
"github.com/laytan/php-parser/pkg/token"
"github.com/laytan/php-parser/pkg/visitor/formatter"
"github.com/laytan/php-parser/pkg/visitor/printer"
"git.maride.cc/maride/php-parser/pkg/token"
"git.maride.cc/maride/php-parser/pkg/visitor/formatter"
"git.maride.cc/maride/php-parser/pkg/visitor/printer"
"testing"
"github.com/laytan/php-parser/pkg/ast"
"git.maride.cc/maride/php-parser/pkg/ast"
)
func TestFormatter_Root(t *testing.T) {

View File

@@ -5,8 +5,8 @@ import (
"errors"
"strings"
"github.com/laytan/php-parser/pkg/ast"
"github.com/laytan/php-parser/pkg/visitor"
"git.maride.cc/maride/php-parser/pkg/ast"
"git.maride.cc/maride/php-parser/pkg/visitor"
)
// NamespaceResolver visitor

View File

@@ -3,12 +3,12 @@ package nsresolver_test
import (
"testing"
"github.com/laytan/php-parser/pkg/visitor/nsresolver"
"github.com/laytan/php-parser/pkg/visitor/traverser"
"git.maride.cc/maride/php-parser/pkg/visitor/nsresolver"
"git.maride.cc/maride/php-parser/pkg/visitor/traverser"
"gotest.tools/assert"
"github.com/laytan/php-parser/pkg/ast"
"git.maride.cc/maride/php-parser/pkg/ast"
)
func TestResolveStaticCall(t *testing.T) {

View File

@@ -1,7 +1,7 @@
package visitor
import (
"github.com/laytan/php-parser/pkg/ast"
"git.maride.cc/maride/php-parser/pkg/ast"
)
type Null struct{}

View File

@@ -4,8 +4,8 @@ import (
"bytes"
"io"
"github.com/laytan/php-parser/pkg/ast"
"github.com/laytan/php-parser/pkg/token"
"git.maride.cc/maride/php-parser/pkg/ast"
"git.maride.cc/maride/php-parser/pkg/token"
)
type printerState int

View File

@@ -5,11 +5,11 @@ import (
"os"
"testing"
"github.com/laytan/php-parser/internal/php7"
"github.com/laytan/php-parser/pkg/ast"
"github.com/laytan/php-parser/pkg/conf"
"github.com/laytan/php-parser/pkg/version"
"github.com/laytan/php-parser/pkg/visitor/printer"
"git.maride.cc/maride/php-parser/internal/php7"
"git.maride.cc/maride/php-parser/pkg/ast"
"git.maride.cc/maride/php-parser/pkg/conf"
"git.maride.cc/maride/php-parser/pkg/version"
"git.maride.cc/maride/php-parser/pkg/visitor/printer"
)
func ExamplePrinter() {

View File

@@ -3,7 +3,7 @@ package printer_test
import (
"testing"
"github.com/laytan/php-parser/internal/tester"
"git.maride.cc/maride/php-parser/internal/tester"
)
func TestParseAndPrintReadonlyModifierPHP81(t *testing.T) {

View File

@@ -5,12 +5,12 @@ import (
"os"
"testing"
"github.com/laytan/php-parser/internal/php8"
"github.com/laytan/php-parser/internal/tester"
"github.com/laytan/php-parser/pkg/ast"
"github.com/laytan/php-parser/pkg/conf"
"github.com/laytan/php-parser/pkg/version"
"github.com/laytan/php-parser/pkg/visitor/printer"
"git.maride.cc/maride/php-parser/internal/php8"
"git.maride.cc/maride/php-parser/internal/tester"
"git.maride.cc/maride/php-parser/pkg/ast"
"git.maride.cc/maride/php-parser/pkg/conf"
"git.maride.cc/maride/php-parser/pkg/version"
"git.maride.cc/maride/php-parser/pkg/visitor/printer"
"gotest.tools/assert"
)

View File

@@ -2,11 +2,11 @@ package printer_test
import (
"bytes"
"github.com/laytan/php-parser/pkg/token"
"github.com/laytan/php-parser/pkg/visitor/printer"
"git.maride.cc/maride/php-parser/pkg/token"
"git.maride.cc/maride/php-parser/pkg/visitor/printer"
"testing"
"github.com/laytan/php-parser/pkg/ast"
"git.maride.cc/maride/php-parser/pkg/ast"
)
func TestPrinterPrintFile(t *testing.T) {

View File

@@ -1,7 +1,7 @@
package traverser
import (
"github.com/laytan/php-parser/pkg/ast"
"git.maride.cc/maride/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/laytan/php-parser/pkg/ast"
phpast "git.maride.cc/maride/php-parser/pkg/ast"
"golang.org/x/tools/go/packages"
)
@@ -32,7 +32,7 @@ var fileTempl = template.Must(
package traverser
import "github.com/laytan/php-parser/pkg/ast"
import "git.maride.cc/maride/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/laytan/php-parser/pkg/ast"
import "git.maride.cc/maride/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/laytan/php-parser/pkg/ast"
"github.com/laytan/php-parser/pkg/visitor"
"github.com/laytan/php-parser/pkg/visitor/traverser"
"git.maride.cc/maride/php-parser/pkg/ast"
"git.maride.cc/maride/php-parser/pkg/visitor"
"git.maride.cc/maride/php-parser/pkg/visitor/traverser"
)
// testCase is a traverser that does not go into any class statement or its children.