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

@@ -4,12 +4,12 @@ import (
"bytes"
"strings"
pos "github.com/laytan/php-parser/internal/position"
"github.com/laytan/php-parser/pkg/conf"
"github.com/laytan/php-parser/pkg/errors"
"github.com/laytan/php-parser/pkg/position"
"github.com/laytan/php-parser/pkg/token"
"github.com/laytan/php-parser/pkg/version"
pos "git.maride.cc/maride/php-parser/internal/position"
"git.maride.cc/maride/php-parser/pkg/conf"
"git.maride.cc/maride/php-parser/pkg/errors"
"git.maride.cc/maride/php-parser/pkg/position"
"git.maride.cc/maride/php-parser/pkg/token"
"git.maride.cc/maride/php-parser/pkg/version"
)
type Lexer struct {

View File

@@ -1,9 +1,9 @@
package php7
import (
"github.com/laytan/php-parser/pkg/ast"
"github.com/laytan/php-parser/pkg/position"
"github.com/laytan/php-parser/pkg/token"
"git.maride.cc/maride/php-parser/pkg/ast"
"git.maride.cc/maride/php-parser/pkg/position"
"git.maride.cc/maride/php-parser/pkg/token"
)
type ParserBrackets struct {

View File

@@ -1,11 +1,11 @@
package php7
import (
"github.com/laytan/php-parser/internal/position"
"github.com/laytan/php-parser/pkg/ast"
"github.com/laytan/php-parser/pkg/conf"
"github.com/laytan/php-parser/pkg/errors"
"github.com/laytan/php-parser/pkg/token"
"git.maride.cc/maride/php-parser/internal/position"
"git.maride.cc/maride/php-parser/pkg/ast"
"git.maride.cc/maride/php-parser/pkg/conf"
"git.maride.cc/maride/php-parser/pkg/errors"
"git.maride.cc/maride/php-parser/pkg/token"
)
// Parser structure

View File

@@ -5,13 +5,13 @@ import (
"gotest.tools/assert"
"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/errors"
"github.com/laytan/php-parser/pkg/position"
"github.com/laytan/php-parser/pkg/token"
"github.com/laytan/php-parser/pkg/version"
"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/errors"
"git.maride.cc/maride/php-parser/pkg/position"
"git.maride.cc/maride/php-parser/pkg/token"
"git.maride.cc/maride/php-parser/pkg/version"
)
func TestMain(m *testing.M) {

4
internal/php7/php7.go generated
View File

@@ -11,8 +11,8 @@ import __yyfmt__ "fmt"
import (
"strconv"
"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"
)
// line internal/php7/php7.y:13

View File

@@ -5,9 +5,9 @@ import (
"path/filepath"
"testing"
"github.com/laytan/php-parser/internal/php7"
"github.com/laytan/php-parser/pkg/conf"
"github.com/laytan/php-parser/pkg/version"
"git.maride.cc/maride/php-parser/internal/php7"
"git.maride.cc/maride/php-parser/pkg/conf"
"git.maride.cc/maride/php-parser/pkg/version"
)
func BenchmarkPhp7(b *testing.B) {

View File

@@ -6,7 +6,7 @@ import (
"strconv"
"strings"
"github.com/laytan/php-parser/pkg/token"
"git.maride.cc/maride/php-parser/pkg/token"
)
// line internal/php7/scanner.go:15

View File

@@ -4,11 +4,11 @@ import (
"gotest.tools/assert"
"testing"
"github.com/laytan/php-parser/pkg/conf"
"github.com/laytan/php-parser/pkg/errors"
"github.com/laytan/php-parser/pkg/position"
"github.com/laytan/php-parser/pkg/token"
"github.com/laytan/php-parser/pkg/version"
"git.maride.cc/maride/php-parser/pkg/conf"
"git.maride.cc/maride/php-parser/pkg/errors"
"git.maride.cc/maride/php-parser/pkg/position"
"git.maride.cc/maride/php-parser/pkg/token"
"git.maride.cc/maride/php-parser/pkg/version"
)
func TestTokens(t *testing.T) {