diff --git a/cmd/php-parser/main.go b/cmd/php-parser/main.go index c5f2756..e9f4c9c 100644 --- a/cmd/php-parser/main.go +++ b/cmd/php-parser/main.go @@ -16,15 +16,15 @@ import ( "github.com/pkg/profile" "github.com/yookoala/realpath" - "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/version" - "github.com/laytan/php-parser/pkg/visitor/dumper" - "github.com/laytan/php-parser/pkg/visitor/nsresolver" - "github.com/laytan/php-parser/pkg/visitor/printer" - "github.com/laytan/php-parser/pkg/visitor/traverser" + "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/version" + "git.maride.cc/maride/php-parser/pkg/visitor/dumper" + "git.maride.cc/maride/php-parser/pkg/visitor/nsresolver" + "git.maride.cc/maride/php-parser/pkg/visitor/printer" + "git.maride.cc/maride/php-parser/pkg/visitor/traverser" ) var ( diff --git a/go.mod b/go.mod index 1d5d22c..fce0268 100644 --- a/go.mod +++ b/go.mod @@ -1,14 +1,18 @@ module git.maride.cc/maride/php-parser -go 1.13 +go 1.21.1 require ( - github.com/pkg/profile v1.4.0 + github.com/pkg/profile v1.7.0 github.com/yookoala/realpath v1.0.0 + golang.org/x/tools v0.16.0 gotest.tools v2.2.0+incompatible ) require ( - github.com/laytan/php-parser v0.10.0 - golang.org/x/tools v0.7.0 + github.com/felixge/fgprof v0.9.3 // indirect + github.com/google/go-cmp v0.6.0 // indirect + github.com/google/pprof v0.0.0-20211214055906-6f57359322fd // indirect + github.com/pkg/errors v0.9.1 // indirect + golang.org/x/mod v0.14.0 // indirect ) diff --git a/go.sum b/go.sum index 08fab7e..c978924 100644 --- a/go.sum +++ b/go.sum @@ -1,54 +1,39 @@ -github.com/google/go-cmp v0.4.0 h1:xsAVV57WRhGj6kEIi8ReJzQlHHqcBYCElAvkovg3B/4= -github.com/google/go-cmp v0.4.0/go.mod h1:v8dTdLbMG2kIc/vJvl+f65V22dbkXbowE6jgT/gNBxE= -github.com/laytan/php-parser v0.10.0 h1:Vpf4AdrK5uIvBLtEKbh41mnHYzT06e6yu/Kd2mJN2q0= -github.com/laytan/php-parser v0.10.0/go.mod h1:crDMdef5HZkk8JsREDMA6wgTXdip/8mJa4asmjt3ogM= +github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI= +github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e/go.mod h1:nSuG5e5PlCu98SY8svDHJxuZscDgtXS6KTTbou5AhLI= +github.com/chzyer/test v0.0.0-20180213035817-a1ea475d72b1/go.mod h1:Q3SI9o4m/ZMnBNeIyt5eFwwo7qiLfzFZmjNmxjkiQlU= +github.com/davecgh/go-spew v1.1.0/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c= +github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= +github.com/felixge/fgprof v0.9.3 h1:VvyZxILNuCiUCSXtPtYmmtGvb65nqXh2QFWc0Wpf2/g= +github.com/felixge/fgprof v0.9.3/go.mod h1:RdbpDgzqYVh/T9fPELJyV7EYJuHB55UTEULNun8eiPw= +github.com/google/go-cmp v0.6.0 h1:ofyhxvXcZhMsU5ulbFiLKl/XBFqE1GSq7atu8tAmTRI= +github.com/google/go-cmp v0.6.0/go.mod h1:17dUlkBOakJ0+DkrSSNjCkIjxS6bF9zb3elmeNGIjoY= +github.com/google/pprof v0.0.0-20211214055906-6f57359322fd h1:1FjCyPC+syAzJ5/2S8fqdZK1R22vvA0J7JZKcuOIQ7Y= +github.com/google/pprof v0.0.0-20211214055906-6f57359322fd/go.mod h1:KgnwoLYCZ8IQu3XUZ8Nc/bM9CCZFOyjUNOSygVozoDg= +github.com/ianlancetaylor/demangle v0.0.0-20210905161508-09a460cdf81d/go.mod h1:aYm2/VgdVmcIU8iMfdMvDMsRAQjcfZSKFby6HOFvi/w= github.com/pkg/errors v0.9.1 h1:FEBLx1zS214owpjy7qsBeixbURkuhQAwrK5UwLGTwt4= github.com/pkg/errors v0.9.1/go.mod h1:bwawxfHBFNV+L2hUp1rHADufV3IMtnDRdf1r5NINEl0= -github.com/pkg/profile v1.4.0 h1:uCmaf4vVbWAOZz36k1hrQD7ijGRzLwaME8Am/7a4jZI= -github.com/pkg/profile v1.4.0/go.mod h1:NWz/XGvpEW1FyYQ7fCx4dqYBLlfTcE+A9FLAkNKqjFE= +github.com/pkg/profile v1.7.0 h1:hnbDkaNWPCLMO9wGLdBFTIZvzDrDfBM2072E1S9gJkA= +github.com/pkg/profile v1.7.0/go.mod h1:8Uer0jas47ZQMJ7VD+OHknK4YDY07LPUC6dEvqDjvNo= +github.com/pmezard/go-difflib v1.0.0 h1:4DBwDE0NGyQoBHbLQYPwSUPoCMWR5BEzIk/f1lZbAQM= +github.com/pmezard/go-difflib v1.0.0/go.mod h1:iKH77koFhYxTK1pcRnkKkqfTogsbg7gZNVY4sRDYZ/4= +github.com/stretchr/objx v0.1.0/go.mod h1:HFkY916IF+rwdDfMAkV7OtwuqBVzrE8GR6GFx+wExME= +github.com/stretchr/objx v0.4.0/go.mod h1:YvHI0jy2hoMjB+UWwv71VJQ9isScKT/TqJzVSSt89Yw= +github.com/stretchr/testify v1.7.1/go.mod h1:6Fq8oRcR53rry900zMqJjRRixrwX3KX962/h/Wwjteg= +github.com/stretchr/testify v1.8.0 h1:pSgiaMZlXftHpm5L7V1+rVB+AZJydKsMxsQBIJw4PKk= +github.com/stretchr/testify v1.8.0/go.mod h1:yNjHg4UonilssWZ8iaSj1OCr/vHnekPRkoO+kdMU+MU= github.com/yookoala/realpath v1.0.0 h1:7OA9pj4FZd+oZDsyvXWQvjn5oBdcHRTV44PpdMSuImQ= github.com/yookoala/realpath v1.0.0/go.mod h1:gJJMA9wuX7AcqLy1+ffPatSCySA1FQ2S8Ya9AIoYBpE= -github.com/yuin/goldmark v1.4.13/go.mod h1:6yULJ656Px+3vBD8DxQVa3kxgyrAnzto9xy5taEt/CY= -golang.org/x/crypto v0.0.0-20190308221718-c2843e01d9a2/go.mod h1:djNgcEr1/C05ACkg1iLfiJU5Ep61QUkGW8qpdssI0+w= -golang.org/x/crypto v0.0.0-20210921155107-089bfa567519/go.mod h1:GvvjBRRGRdwPK5ydBHafDWAxML/pGHZbMvKqRZ5+Abc= -golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4/go.mod h1:jJ57K6gSWd91VN4djpZkiMVwK6gcyfeH4XE8wZrZaV4= -golang.org/x/mod v0.8.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/mod v0.9.0 h1:KENHtAZL2y3NLMYZeHY9DW8HW8V+kQyJsY/V9JlKvCs= -golang.org/x/mod v0.9.0/go.mod h1:iBbtSCu2XBx23ZKBPSOrRkjjQPZFPuis4dIYUhu/chs= -golang.org/x/net v0.0.0-20190620200207-3b0461eec859/go.mod h1:z5CRVTTTmAJ677TzLLGU+0bjPO0LkuOLi4/5GtJWs/s= -golang.org/x/net v0.0.0-20210226172049-e18ecbb05110/go.mod h1:m0MpNAwzfU5UDzcl9v0D8zg8gWTRqZa9RBIspLL5mdg= -golang.org/x/net v0.0.0-20220722155237-a158d28d115b/go.mod h1:XRhObCWvk6IyKnWLug+ECip1KBveYUHfp+8e9klMJ9c= -golang.org/x/net v0.6.0/go.mod h1:2Tu9+aMcznHK/AK1HMvgo6xiTLG5rD5rZLDS+rp2Bjs= -golang.org/x/net v0.8.0/go.mod h1:QVkue5JL9kW//ek3r6jTKnTFis1tRmNAW2P1shuFdJc= -golang.org/x/sync v0.0.0-20190423024810-112230192c58/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.0.0-20220722155255-886fb9371eb4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sync v0.1.0 h1:wsuoTGHzEhffawBOhz5CYhcrV4IdKZbEyZjBMuTp12o= -golang.org/x/sync v0.1.0/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM= -golang.org/x/sys v0.0.0-20190215142949-d0b11bdaac8a/go.mod h1:STP8DvDyc/dI5b8T5hshtkjS+E42TnysNCUPdjciGhY= -golang.org/x/sys v0.0.0-20201119102817-f84b799fce68/go.mod h1:h1NjWce9XRLGQEsW7wpKNCjG9DtNlClVuFLEZdDNbEs= -golang.org/x/sys v0.0.0-20210615035016-665e8c7367d1/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220520151302-bc2c85ada10a/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.5.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/sys v0.6.0 h1:MVltZSvRTcU2ljQOhs94SXPftV6DCNnZViHeQps87pQ= -golang.org/x/sys v0.6.0/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= -golang.org/x/term v0.0.0-20201126162022-7de9c90e9dd1/go.mod h1:bj7SfCRtBDWHUb9snDiAeCFNEtKQo2Wmx5Cou7ajbmo= -golang.org/x/term v0.0.0-20210927222741-03fcf44c2211/go.mod h1:jbD1KX2456YbFQfuXm/mYQcufACuNUgVhRMnK/tPxf8= -golang.org/x/term v0.5.0/go.mod h1:jMB1sMXY+tzblOD4FWmEbocvup2/aLOaQEp7JmGp78k= -golang.org/x/term v0.6.0/go.mod h1:m6U89DPEgQRMq3DNkDClhWw02AUbt2daBVO4cn4Hv9U= -golang.org/x/text v0.3.0/go.mod h1:NqM8EUOU14njkJ3fqMW+pc6Ldnwhi/IjpwHt7yyuwOQ= -golang.org/x/text v0.3.3/go.mod h1:5Zoc/QRtKVWzQhOtBMvqHzDpF6irO9z98xDceosuGiQ= -golang.org/x/text v0.3.7/go.mod h1:u+2+/6zg+i71rQMx5EYifcz6MCKuco9NR6JIITiCfzQ= -golang.org/x/text v0.7.0/go.mod h1:mrYo+phRRbMaCq/xk9113O4dZlRixOauAjOtrjsXDZ8= -golang.org/x/text v0.8.0/go.mod h1:e1OnstbJyHTd6l/uOt8jFFHp6TRDWZR/bV3emEE/zU8= -golang.org/x/tools v0.0.0-20180917221912-90fa682c2a6e/go.mod h1:n7NCudcB/nEzxVGmLbDWY5pfWTLqBcC2KZ6jyYvM4mQ= -golang.org/x/tools v0.0.0-20191119224855-298f0cb1881e/go.mod h1:b+2E5dAYhXwXZwtnZ6UAqBI28+e2cm9otk0dWdXHAEo= -golang.org/x/tools v0.1.12/go.mod h1:hNGJHUnrk76NpqgfD5Aqm5Crs+Hm0VOH/i9J2+nxYbc= -golang.org/x/tools v0.6.0/go.mod h1:Xwgl3UAJ/d3gWutnCtw505GrjyAbvKui8lOU390QaIU= -golang.org/x/tools v0.7.0 h1:W4OVu8VVOaIO0yzWMNdepAulS7YfoS3Zabrm8DOXXU4= -golang.org/x/tools v0.7.0/go.mod h1:4pg6aUX35JBAogB10C9AtvVL+qowtN4pT3CGSQex14s= -golang.org/x/xerrors v0.0.0-20190717185122-a985d3407aa7/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543 h1:E7g+9GITq07hpfrRu66IVDexMakfv52eLZ2CXBWiKr4= -golang.org/x/xerrors v0.0.0-20191204190536-9bdfabe68543/go.mod h1:I/5z698sn9Ka8TeJc9MKroUUfqBBauWjQqLJ2OPfmY0= +golang.org/x/mod v0.14.0 h1:dGoOF9QVLYng8IHTm7BAyWqCqSheQ5pYWGhzW00YJr0= +golang.org/x/mod v0.14.0/go.mod h1:hTbmBsO62+eylJbnUtE2MGJUyE7QWk4xUqPFrRgJ+7c= +golang.org/x/sync v0.5.0 h1:60k92dhOjHxJkrqnwsfl8KuaHbn/5dl0lUPUklKo3qE= +golang.org/x/sync v0.5.0/go.mod h1:Czt+wKu1gCyEFDUtn0jG5QVvpJ6rzVqr5aXyt9drQfk= +golang.org/x/sys v0.0.0-20211007075335-d3039528d8ac/go.mod h1:oPkhp1MJrh7nUepCBck5+mAzfO9JrbApNNgaTdGDITg= +golang.org/x/tools v0.16.0 h1:GO788SKMRunPIBCXiQyo2AaexLstOrVhuAL5YwsckQM= +golang.org/x/tools v0.16.0/go.mod h1:kYVVN6I1mBNoB1OX+noeBjbRk4IUEPa7JJ+TJMEooJ0= +gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0= +gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= +gopkg.in/yaml.v3 v3.0.1 h1:fxVm/GzAzEWqLHuvctI91KS9hhNmmWOoWu0XTYJS7CA= +gopkg.in/yaml.v3 v3.0.1/go.mod h1:K4uyk7z7BCEPqu6E+C64Yfv1cQ7kz7rIZviUmN+EgEM= gotest.tools v2.2.0+incompatible h1:VsBPFP1AI068pPrMxtb/S8Zkgf9xEmTLJjfM+P5UIEo= gotest.tools v2.2.0+incompatible/go.mod h1:DsYFclhRJ6vuDpmuTbkuFWG+y2sxOXAzmJt81HFBacw= diff --git a/internal/php7/lexer.go b/internal/php7/lexer.go index d5be020..7c9ec5f 100644 --- a/internal/php7/lexer.go +++ b/internal/php7/lexer.go @@ -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 { diff --git a/internal/php7/node.go b/internal/php7/node.go index cc63598..6987e4f 100644 --- a/internal/php7/node.go +++ b/internal/php7/node.go @@ -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 { diff --git a/internal/php7/parser.go b/internal/php7/parser.go index 8f7a0b4..62eee71 100644 --- a/internal/php7/parser.go +++ b/internal/php7/parser.go @@ -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 diff --git a/internal/php7/parser_test.go b/internal/php7/parser_test.go index 1d59455..281c781 100644 --- a/internal/php7/parser_test.go +++ b/internal/php7/parser_test.go @@ -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) { diff --git a/internal/php7/php7.go b/internal/php7/php7.go index dc62a97..1e19de7 100644 Binary files a/internal/php7/php7.go and b/internal/php7/php7.go differ diff --git a/internal/php7/php7_bench_test.go b/internal/php7/php7_bench_test.go index 676c18c..9fe48bd 100644 --- a/internal/php7/php7_bench_test.go +++ b/internal/php7/php7_bench_test.go @@ -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) { diff --git a/internal/php7/scanner.go b/internal/php7/scanner.go index 656aa16..c1ccb7c 100644 --- a/internal/php7/scanner.go +++ b/internal/php7/scanner.go @@ -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 diff --git a/internal/php7/scanner_test.go b/internal/php7/scanner_test.go index 4bcece1..d330f96 100644 --- a/internal/php7/scanner_test.go +++ b/internal/php7/scanner_test.go @@ -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) { diff --git a/internal/php8/builder.go b/internal/php8/builder.go index 0549a48..3481d0a 100644 --- a/internal/php8/builder.go +++ b/internal/php8/builder.go @@ -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. diff --git a/internal/php8/lexer.go b/internal/php8/lexer.go index 24b0436..17db197 100644 --- a/internal/php8/lexer.go +++ b/internal/php8/lexer.go @@ -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 { diff --git a/internal/php8/node.go b/internal/php8/node.go index 69e0d24..edf737e 100644 --- a/internal/php8/node.go +++ b/internal/php8/node.go @@ -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 { diff --git a/internal/php8/parser.go b/internal/php8/parser.go index f07aae9..4f94691 100644 --- a/internal/php8/parser.go +++ b/internal/php8/parser.go @@ -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 diff --git a/internal/php8/parser_php8_1_test.go b/internal/php8/parser_php8_1_test.go index 33652a0..f1e8bf0 100644 --- a/internal/php8/parser_php8_1_test.go +++ b/internal/php8/parser_php8_1_test.go @@ -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) { diff --git a/internal/php8/parser_php8_2_test.go b/internal/php8/parser_php8_2_test.go index 9668349..3e86dc7 100644 --- a/internal/php8/parser_php8_2_test.go +++ b/internal/php8/parser_php8_2_test.go @@ -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) { diff --git a/internal/php8/parser_php8_test.go b/internal/php8/parser_php8_test.go index f48e2ba..a3c7e9b 100644 --- a/internal/php8/parser_php8_test.go +++ b/internal/php8/parser_php8_test.go @@ -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" ) diff --git a/internal/php8/parser_test.go b/internal/php8/parser_test.go index b0305af..1d9681b 100644 --- a/internal/php8/parser_test.go +++ b/internal/php8/parser_test.go @@ -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) { diff --git a/internal/php8/php8.go b/internal/php8/php8.go index f90273a..4e5165f 100644 --- a/internal/php8/php8.go +++ b/internal/php8/php8.go @@ -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 diff --git a/internal/php8/php8_bench_test.go b/internal/php8/php8_bench_test.go index 643ef68..1b85543 100644 --- a/internal/php8/php8_bench_test.go +++ b/internal/php8/php8_bench_test.go @@ -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) { diff --git a/internal/php8/scanner.go b/internal/php8/scanner.go index 733c18e..9b8f9c7 100644 --- a/internal/php8/scanner.go +++ b/internal/php8/scanner.go @@ -8,7 +8,7 @@ import ( "strconv" "strings" - "github.com/laytan/php-parser/pkg/token" + "git.maride.cc/maride/php-parser/pkg/token" ) diff --git a/internal/php8/scanner_php8_1_test.go b/internal/php8/scanner_php8_1_test.go index 1a8f1b2..c8f0480 100644 --- a/internal/php8/scanner_php8_1_test.go +++ b/internal/php8/scanner_php8_1_test.go @@ -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) { diff --git a/internal/php8/scanner_php8_test.go b/internal/php8/scanner_php8_test.go index cfad51e..8be0665 100644 --- a/internal/php8/scanner_php8_test.go +++ b/internal/php8/scanner_php8_test.go @@ -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" ) diff --git a/internal/php8/scanner_test.go b/internal/php8/scanner_test.go index 354b7b3..1263fc8 100644 --- a/internal/php8/scanner_test.go +++ b/internal/php8/scanner_test.go @@ -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) { diff --git a/internal/position/newline_test.go b/internal/position/newline_test.go index 8a74dbb..6029987 100644 --- a/internal/position/newline_test.go +++ b/internal/position/newline_test.go @@ -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" ) diff --git a/internal/position/position.go b/internal/position/position.go index c356adc..9e9cf4f 100644 --- a/internal/position/position.go +++ b/internal/position/position.go @@ -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 { diff --git a/internal/position/position_test.go b/internal/position/position_test.go index 788b794..5d2620f 100644 --- a/internal/position/position_test.go +++ b/internal/position/position_test.go @@ -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) { diff --git a/internal/tester/lexer_token_freefloating.go b/internal/tester/lexer_token_freefloating.go index 7ac62b1..14d1862 100644 --- a/internal/tester/lexer_token_freefloating.go +++ b/internal/tester/lexer_token_freefloating.go @@ -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" ) diff --git a/internal/tester/lexer_token_string.go b/internal/tester/lexer_token_string.go index 7ef31d8..7a5d002 100644 --- a/internal/tester/lexer_token_string.go +++ b/internal/tester/lexer_token_string.go @@ -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" ) diff --git a/internal/tester/lexer_token_struct.go b/internal/tester/lexer_token_struct.go index 032389d..a7107ad 100644 --- a/internal/tester/lexer_token_struct.go +++ b/internal/tester/lexer_token_struct.go @@ -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" ) diff --git a/internal/tester/parse_print.go b/internal/tester/parse_print.go index 8db3dda..57a1a0a 100644 --- a/internal/tester/parse_print.go +++ b/internal/tester/parse_print.go @@ -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" ) diff --git a/internal/tester/parser.go b/internal/tester/parser.go index 8c131b2..d2a5dfc 100644 --- a/internal/tester/parser.go +++ b/internal/tester/parser.go @@ -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" ) diff --git a/internal/tester/parser_dump.go b/internal/tester/parser_dump.go index 2270de8..e8bb0c2 100644 --- a/internal/tester/parser_dump.go +++ b/internal/tester/parser_dump.go @@ -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" ) diff --git a/internal/tester/parser_error.go b/internal/tester/parser_error.go index 416c0e8..ef463df 100644 --- a/internal/tester/parser_error.go +++ b/internal/tester/parser_error.go @@ -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" ) diff --git a/pkg/ast/ast.go b/pkg/ast/ast.go index 3513b74..6a0277c 100644 --- a/pkg/ast/ast.go +++ b/pkg/ast/ast.go @@ -1,6 +1,6 @@ package ast -import "github.com/laytan/php-parser/pkg/position" +import "git.maride.cc/maride/php-parser/pkg/position" // The edge-case/overwrites, from node type name to their visitor function name. var TypeToVisitorNameMap = map[string]string{ diff --git a/pkg/ast/node.go b/pkg/ast/node.go index 2c052d1..ffb1f0e 100644 --- a/pkg/ast/node.go +++ b/pkg/ast/node.go @@ -1,8 +1,8 @@ package ast import ( - "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" ) //go:generate go run node_funcs_gen.go diff --git a/pkg/ast/node_funcs.go b/pkg/ast/node_funcs.go index a2cb970..adb7bfc 100644 --- a/pkg/ast/node_funcs.go +++ b/pkg/ast/node_funcs.go @@ -2,7 +2,7 @@ package ast -import "github.com/laytan/php-parser/pkg/position" +import "git.maride.cc/maride/php-parser/pkg/position" type Type int diff --git a/pkg/ast/node_funcs_gen.go b/pkg/ast/node_funcs_gen.go index f652e0b..ea6e4a9 100644 --- a/pkg/ast/node_funcs_gen.go +++ b/pkg/ast/node_funcs_gen.go @@ -9,7 +9,7 @@ import ( "regexp" "text/template" - "github.com/laytan/php-parser/pkg/ast" + "git.maride.cc/maride/php-parser/pkg/ast" ) type templData struct { @@ -27,7 +27,7 @@ var fileTempl = template.Must( package ast -import "github.com/laytan/php-parser/pkg/position" +import "git.maride.cc/maride/php-parser/pkg/position" type Type int diff --git a/pkg/conf/conf.go b/pkg/conf/conf.go index 0ad5d8b..f4d7500 100644 --- a/pkg/conf/conf.go +++ b/pkg/conf/conf.go @@ -1,8 +1,8 @@ package conf import ( - "github.com/laytan/php-parser/pkg/errors" - "github.com/laytan/php-parser/pkg/version" + "git.maride.cc/maride/php-parser/pkg/errors" + "git.maride.cc/maride/php-parser/pkg/version" ) type Config struct { diff --git a/pkg/errors/error.go b/pkg/errors/error.go index 71a6349..69a847c 100644 --- a/pkg/errors/error.go +++ b/pkg/errors/error.go @@ -3,7 +3,7 @@ package errors import ( "fmt" - "github.com/laytan/php-parser/pkg/position" + "git.maride.cc/maride/php-parser/pkg/position" ) // Error parsing error diff --git a/pkg/errors/error_test.go b/pkg/errors/error_test.go index 643d584..545331e 100644 --- a/pkg/errors/error_test.go +++ b/pkg/errors/error_test.go @@ -5,8 +5,8 @@ import ( "gotest.tools/assert" - "github.com/laytan/php-parser/pkg/errors" - "github.com/laytan/php-parser/pkg/position" + "git.maride.cc/maride/php-parser/pkg/errors" + "git.maride.cc/maride/php-parser/pkg/position" ) func TestConstructor(t *testing.T) { diff --git a/pkg/lexer/lexer.go b/pkg/lexer/lexer.go index d493c41..69805df 100644 --- a/pkg/lexer/lexer.go +++ b/pkg/lexer/lexer.go @@ -3,10 +3,10 @@ package lexer import ( "errors" - "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" + "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" ) var ErrVersionOutOfRange = errors.New("the version is out of supported range") diff --git a/pkg/parser/doc.go b/pkg/parser/doc.go index 2bb464a..b476843 100644 --- a/pkg/parser/doc.go +++ b/pkg/parser/doc.go @@ -9,11 +9,11 @@ Package usage example: "log" "os" - "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" - "github.com/laytan/php-parser/pkg/visitor/dumper" + "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" + "git.maride.cc/maride/php-parser/pkg/visitor/dumper" ) func main() { diff --git a/pkg/parser/parser.go b/pkg/parser/parser.go index 89f09bc..e39027a 100644 --- a/pkg/parser/parser.go +++ b/pkg/parser/parser.go @@ -3,11 +3,11 @@ package parser import ( "errors" - "github.com/laytan/php-parser/internal/php7" - "github.com/laytan/php-parser/internal/php8" - "github.com/laytan/php-parser/pkg/ast" - "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/ast" + "git.maride.cc/maride/php-parser/pkg/conf" + "git.maride.cc/maride/php-parser/pkg/version" ) // ErrVersionOutOfRange is returned if the version is not supported diff --git a/pkg/token/token.go b/pkg/token/token.go index 5ef30e8..d0047a0 100644 --- a/pkg/token/token.go +++ b/pkg/token/token.go @@ -1,6 +1,6 @@ package token -import "github.com/laytan/php-parser/pkg/position" +import "git.maride.cc/maride/php-parser/pkg/position" //go:generate stringer -type=ID -output ./token_string.go type ID int diff --git a/pkg/version/version_test.go b/pkg/version/version_test.go index f327e98..0d47ba2 100644 --- a/pkg/version/version_test.go +++ b/pkg/version/version_test.go @@ -5,7 +5,7 @@ import ( "gotest.tools/assert" - "github.com/laytan/php-parser/pkg/version" + "git.maride.cc/maride/php-parser/pkg/version" ) func Test(t *testing.T) { diff --git a/pkg/visitor/dumper/dumper.go b/pkg/visitor/dumper/dumper.go index d802f6c..f8c08a8 100644 --- a/pkg/visitor/dumper/dumper.go +++ b/pkg/visitor/dumper/dumper.go @@ -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 { diff --git a/pkg/visitor/dumper/dumper_test.go b/pkg/visitor/dumper/dumper_test.go index 0298cac..e32a310 100644 --- a/pkg/visitor/dumper/dumper_test.go +++ b/pkg/visitor/dumper/dumper_test.go @@ -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) { diff --git a/pkg/visitor/formatter/formatter.go b/pkg/visitor/formatter/formatter.go index c9e4d60..ec2e235 100644 --- a/pkg/visitor/formatter/formatter.go +++ b/pkg/visitor/formatter/formatter.go @@ -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 diff --git a/pkg/visitor/formatter/formatter_test.go b/pkg/visitor/formatter/formatter_test.go index 08f2102..7120041 100644 --- a/pkg/visitor/formatter/formatter_test.go +++ b/pkg/visitor/formatter/formatter_test.go @@ -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) { diff --git a/pkg/visitor/nsresolver/namespace_resolver.go b/pkg/visitor/nsresolver/namespace_resolver.go index 7c0d750..0769201 100644 --- a/pkg/visitor/nsresolver/namespace_resolver.go +++ b/pkg/visitor/nsresolver/namespace_resolver.go @@ -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 diff --git a/pkg/visitor/nsresolver/namespace_resolver_test.go b/pkg/visitor/nsresolver/namespace_resolver_test.go index 982cef5..35cb02e 100644 --- a/pkg/visitor/nsresolver/namespace_resolver_test.go +++ b/pkg/visitor/nsresolver/namespace_resolver_test.go @@ -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) { diff --git a/pkg/visitor/null.go b/pkg/visitor/null.go index b3b679e..74530cb 100644 --- a/pkg/visitor/null.go +++ b/pkg/visitor/null.go @@ -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{} diff --git a/pkg/visitor/printer/printer.go b/pkg/visitor/printer/printer.go index 7a04bf8..2f3d3ec 100644 --- a/pkg/visitor/printer/printer.go +++ b/pkg/visitor/printer/printer.go @@ -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 diff --git a/pkg/visitor/printer/printer_php7_test.go b/pkg/visitor/printer/printer_php7_test.go index 46458b1..9565b67 100644 --- a/pkg/visitor/printer/printer_php7_test.go +++ b/pkg/visitor/printer/printer_php7_test.go @@ -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() { diff --git a/pkg/visitor/printer/printer_php8_1_test.go b/pkg/visitor/printer/printer_php8_1_test.go index fee0494..76a3405 100644 --- a/pkg/visitor/printer/printer_php8_1_test.go +++ b/pkg/visitor/printer/printer_php8_1_test.go @@ -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) { diff --git a/pkg/visitor/printer/printer_php8_test.go b/pkg/visitor/printer/printer_php8_test.go index 0ebd26c..6b74440 100644 --- a/pkg/visitor/printer/printer_php8_test.go +++ b/pkg/visitor/printer/printer_php8_test.go @@ -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" ) diff --git a/pkg/visitor/printer/printer_test.go b/pkg/visitor/printer/printer_test.go index cac200b..4c87e14 100644 --- a/pkg/visitor/printer/printer_test.go +++ b/pkg/visitor/printer/printer_test.go @@ -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) { diff --git a/pkg/visitor/traverser/traverser.go b/pkg/visitor/traverser/traverser.go index 30b8ab0..574cab3 100644 --- a/pkg/visitor/traverser/traverser.go +++ b/pkg/visitor/traverser/traverser.go @@ -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 diff --git a/pkg/visitor/traverser/traverser_gen.go b/pkg/visitor/traverser/traverser_gen.go index 84d5be0..c5ff499 100644 --- a/pkg/visitor/traverser/traverser_gen.go +++ b/pkg/visitor/traverser/traverser_gen.go @@ -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) { diff --git a/pkg/visitor/traverser/traverser_impl.go b/pkg/visitor/traverser/traverser_impl.go index e7522de..371415a 100644 --- a/pkg/visitor/traverser/traverser_impl.go +++ b/pkg/visitor/traverser/traverser_impl.go @@ -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) { diff --git a/pkg/visitor/traverser/traverser_test.go b/pkg/visitor/traverser/traverser_test.go index f628035..b1569f8 100644 --- a/pkg/visitor/traverser/traverser_test.go +++ b/pkg/visitor/traverser/traverser_test.go @@ -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.