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

@@ -4,12 +4,12 @@ import (
"bytes"
"strings"
pos "github.com/VKCOM/php-parser/internal/position"
"github.com/VKCOM/php-parser/pkg/conf"
"github.com/VKCOM/php-parser/pkg/errors"
"github.com/VKCOM/php-parser/pkg/position"
"github.com/VKCOM/php-parser/pkg/token"
"github.com/VKCOM/php-parser/pkg/version"
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"
)
type Lexer struct {

View File

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

View File

@@ -1,11 +1,11 @@
package php7
import (
"github.com/VKCOM/php-parser/internal/position"
"github.com/VKCOM/php-parser/pkg/ast"
"github.com/VKCOM/php-parser/pkg/conf"
"github.com/VKCOM/php-parser/pkg/errors"
"github.com/VKCOM/php-parser/pkg/token"
"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"
)
// Parser structure

View File

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

4
internal/php7/php7.go generated
View File

@@ -11,8 +11,8 @@ import __yyfmt__ "fmt"
import (
"strconv"
"github.com/VKCOM/php-parser/pkg/ast"
"github.com/VKCOM/php-parser/pkg/token"
"github.com/laytan/php-parser/pkg/ast"
"github.com/laytan/php-parser/pkg/token"
)
// line internal/php7/php7.y:13

View File

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

View File

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

View File

@@ -4,11 +4,11 @@ import (
"gotest.tools/assert"
"testing"
"github.com/VKCOM/php-parser/pkg/conf"
"github.com/VKCOM/php-parser/pkg/errors"
"github.com/VKCOM/php-parser/pkg/position"
"github.com/VKCOM/php-parser/pkg/token"
"github.com/VKCOM/php-parser/pkg/version"
"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"
)
func TestTokens(t *testing.T) {