go mod tidy
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
4
internal/php7/php7.go
generated
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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) {
|
||||
|
||||
@@ -3,10 +3,10 @@ package php8
|
||||
import (
|
||||
"bytes"
|
||||
|
||||
"github.com/laytan/php-parser/internal/position"
|
||||
"github.com/laytan/php-parser/pkg/ast"
|
||||
position2 "github.com/laytan/php-parser/pkg/position"
|
||||
"github.com/laytan/php-parser/pkg/token"
|
||||
"git.maride.cc/maride/php-parser/internal/position"
|
||||
"git.maride.cc/maride/php-parser/pkg/ast"
|
||||
position2 "git.maride.cc/maride/php-parser/pkg/position"
|
||||
"git.maride.cc/maride/php-parser/pkg/token"
|
||||
)
|
||||
|
||||
// Builder is responsible for creating nodes inside grammar rules.
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package php8
|
||||
|
||||
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 {
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
package php8
|
||||
|
||||
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
|
||||
|
||||
@@ -3,7 +3,7 @@ package php8_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/laytan/php-parser/internal/tester"
|
||||
"git.maride.cc/maride/php-parser/internal/tester"
|
||||
)
|
||||
|
||||
func TestReadonlyModifier(t *testing.T) {
|
||||
|
||||
@@ -3,7 +3,7 @@ package php8_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/laytan/php-parser/internal/tester"
|
||||
"git.maride.cc/maride/php-parser/internal/tester"
|
||||
)
|
||||
|
||||
func TestClassReadonlyModifier(t *testing.T) {
|
||||
|
||||
@@ -3,14 +3,14 @@ package php8_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"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/errors"
|
||||
"github.com/laytan/php-parser/pkg/parser"
|
||||
"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/tester"
|
||||
"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/parser"
|
||||
"git.maride.cc/maride/php-parser/pkg/position"
|
||||
"git.maride.cc/maride/php-parser/pkg/token"
|
||||
"git.maride.cc/maride/php-parser/pkg/version"
|
||||
"gotest.tools/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,15 +3,15 @@ package php8_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/laytan/php-parser/internal/php8"
|
||||
"git.maride.cc/maride/php-parser/internal/php8"
|
||||
"gotest.tools/assert"
|
||||
|
||||
"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/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) {
|
||||
|
||||
@@ -10,8 +10,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/php8/php8.y:13
|
||||
|
||||
@@ -5,9 +5,9 @@ import (
|
||||
"path/filepath"
|
||||
"testing"
|
||||
|
||||
"github.com/laytan/php-parser/internal/php8"
|
||||
"github.com/laytan/php-parser/pkg/conf"
|
||||
"github.com/laytan/php-parser/pkg/version"
|
||||
"git.maride.cc/maride/php-parser/internal/php8"
|
||||
"git.maride.cc/maride/php-parser/pkg/conf"
|
||||
"git.maride.cc/maride/php-parser/pkg/version"
|
||||
)
|
||||
|
||||
func BenchmarkPhp8(b *testing.B) {
|
||||
|
||||
@@ -8,7 +8,7 @@ import (
|
||||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/laytan/php-parser/pkg/token"
|
||||
"git.maride.cc/maride/php-parser/pkg/token"
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -3,8 +3,8 @@ package php8_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/laytan/php-parser/internal/tester"
|
||||
"github.com/laytan/php-parser/pkg/token"
|
||||
"git.maride.cc/maride/php-parser/internal/tester"
|
||||
"git.maride.cc/maride/php-parser/pkg/token"
|
||||
)
|
||||
|
||||
func TestReadonlyTokens(t *testing.T) {
|
||||
|
||||
@@ -3,11 +3,11 @@ package php8_test
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/laytan/php-parser/internal/php8"
|
||||
"github.com/laytan/php-parser/internal/tester"
|
||||
"github.com/laytan/php-parser/pkg/conf"
|
||||
"github.com/laytan/php-parser/pkg/position"
|
||||
"github.com/laytan/php-parser/pkg/token"
|
||||
"git.maride.cc/maride/php-parser/internal/php8"
|
||||
"git.maride.cc/maride/php-parser/internal/tester"
|
||||
"git.maride.cc/maride/php-parser/pkg/conf"
|
||||
"git.maride.cc/maride/php-parser/pkg/position"
|
||||
"git.maride.cc/maride/php-parser/pkg/token"
|
||||
"gotest.tools/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -5,11 +5,11 @@ import (
|
||||
|
||||
"gotest.tools/assert"
|
||||
|
||||
"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) {
|
||||
|
||||
@@ -4,7 +4,7 @@ import (
|
||||
"strconv"
|
||||
"testing"
|
||||
|
||||
"github.com/laytan/php-parser/internal/position"
|
||||
"git.maride.cc/maride/php-parser/internal/position"
|
||||
"gotest.tools/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
package position
|
||||
|
||||
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 startPos struct {
|
||||
|
||||
@@ -5,10 +5,10 @@ import (
|
||||
|
||||
"gotest.tools/assert"
|
||||
|
||||
builder "github.com/laytan/php-parser/internal/position"
|
||||
"github.com/laytan/php-parser/pkg/ast"
|
||||
"github.com/laytan/php-parser/pkg/position"
|
||||
"github.com/laytan/php-parser/pkg/token"
|
||||
builder "git.maride.cc/maride/php-parser/internal/position"
|
||||
"git.maride.cc/maride/php-parser/pkg/ast"
|
||||
"git.maride.cc/maride/php-parser/pkg/position"
|
||||
"git.maride.cc/maride/php-parser/pkg/token"
|
||||
)
|
||||
|
||||
func TestNewTokenPosition(t *testing.T) {
|
||||
|
||||
@@ -3,11 +3,11 @@ package tester
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/laytan/php-parser/internal/php7"
|
||||
"github.com/laytan/php-parser/internal/php8"
|
||||
"github.com/laytan/php-parser/pkg/conf"
|
||||
"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/internal/php8"
|
||||
"git.maride.cc/maride/php-parser/pkg/conf"
|
||||
"git.maride.cc/maride/php-parser/pkg/token"
|
||||
"git.maride.cc/maride/php-parser/pkg/version"
|
||||
"gotest.tools/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,10 +3,10 @@ package tester
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/laytan/php-parser/internal/php7"
|
||||
"github.com/laytan/php-parser/internal/php8"
|
||||
"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/internal/php8"
|
||||
"git.maride.cc/maride/php-parser/pkg/conf"
|
||||
"git.maride.cc/maride/php-parser/pkg/version"
|
||||
"gotest.tools/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,11 +3,11 @@ package tester
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/laytan/php-parser/internal/php7"
|
||||
"github.com/laytan/php-parser/internal/php8"
|
||||
"github.com/laytan/php-parser/pkg/conf"
|
||||
"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/internal/php8"
|
||||
"git.maride.cc/maride/php-parser/pkg/conf"
|
||||
"git.maride.cc/maride/php-parser/pkg/token"
|
||||
"git.maride.cc/maride/php-parser/pkg/version"
|
||||
"gotest.tools/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,11 +4,11 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
"github.com/laytan/php-parser/pkg/ast"
|
||||
"github.com/laytan/php-parser/pkg/conf"
|
||||
"github.com/laytan/php-parser/pkg/parser"
|
||||
"github.com/laytan/php-parser/pkg/version"
|
||||
"github.com/laytan/php-parser/pkg/visitor/printer"
|
||||
"git.maride.cc/maride/php-parser/pkg/ast"
|
||||
"git.maride.cc/maride/php-parser/pkg/conf"
|
||||
"git.maride.cc/maride/php-parser/pkg/parser"
|
||||
"git.maride.cc/maride/php-parser/pkg/version"
|
||||
"git.maride.cc/maride/php-parser/pkg/visitor/printer"
|
||||
"gotest.tools/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,10 +3,10 @@ package tester
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/laytan/php-parser/pkg/ast"
|
||||
"github.com/laytan/php-parser/pkg/conf"
|
||||
"github.com/laytan/php-parser/pkg/parser"
|
||||
"github.com/laytan/php-parser/pkg/version"
|
||||
"git.maride.cc/maride/php-parser/pkg/ast"
|
||||
"git.maride.cc/maride/php-parser/pkg/conf"
|
||||
"git.maride.cc/maride/php-parser/pkg/parser"
|
||||
"git.maride.cc/maride/php-parser/pkg/version"
|
||||
"gotest.tools/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@ import (
|
||||
"bytes"
|
||||
"testing"
|
||||
|
||||
"github.com/laytan/php-parser/pkg/conf"
|
||||
"github.com/laytan/php-parser/pkg/parser"
|
||||
"github.com/laytan/php-parser/pkg/version"
|
||||
"github.com/laytan/php-parser/pkg/visitor/dumper"
|
||||
"git.maride.cc/maride/php-parser/pkg/conf"
|
||||
"git.maride.cc/maride/php-parser/pkg/parser"
|
||||
"git.maride.cc/maride/php-parser/pkg/version"
|
||||
"git.maride.cc/maride/php-parser/pkg/visitor/dumper"
|
||||
"gotest.tools/assert"
|
||||
)
|
||||
|
||||
|
||||
@@ -3,10 +3,10 @@ package tester
|
||||
import (
|
||||
"testing"
|
||||
|
||||
"github.com/laytan/php-parser/pkg/conf"
|
||||
"github.com/laytan/php-parser/pkg/errors"
|
||||
"github.com/laytan/php-parser/pkg/parser"
|
||||
"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/parser"
|
||||
"git.maride.cc/maride/php-parser/pkg/version"
|
||||
"gotest.tools/assert"
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user