all: renamed github.com/z7zmey/php-parser with github.com/VKCOM/php-parser

This commit is contained in:
Makhnev Petr
2021-07-30 21:01:34 +03:00
committed by GitHub
parent 049ce7ddc6
commit 72cd222aeb
63 changed files with 236 additions and 236 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
package ast
import "github.com/z7zmey/php-parser/pkg/position"
import "github.com/VKCOM/php-parser/pkg/position"
type Vertex interface {
Accept(v Visitor)
+2 -2
View File
@@ -1,8 +1,8 @@
package ast
import (
"github.com/z7zmey/php-parser/pkg/position"
"github.com/z7zmey/php-parser/pkg/token"
"github.com/VKCOM/php-parser/pkg/position"
"github.com/VKCOM/php-parser/pkg/token"
)
// Root node
+2 -2
View File
@@ -1,8 +1,8 @@
package conf
import (
"github.com/z7zmey/php-parser/pkg/errors"
"github.com/z7zmey/php-parser/pkg/version"
"github.com/VKCOM/php-parser/pkg/errors"
"github.com/VKCOM/php-parser/pkg/version"
)
type Config struct {
+1 -1
View File
@@ -3,7 +3,7 @@ package errors
import (
"fmt"
"github.com/z7zmey/php-parser/pkg/position"
"github.com/VKCOM/php-parser/pkg/position"
)
// Error parsing error
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"gotest.tools/assert"
"github.com/z7zmey/php-parser/pkg/errors"
"github.com/z7zmey/php-parser/pkg/position"
"github.com/VKCOM/php-parser/pkg/errors"
"github.com/VKCOM/php-parser/pkg/position"
)
func TestConstructor(t *testing.T) {
+5 -5
View File
@@ -10,11 +10,11 @@ Package usage example:
"log"
"os"
"github.com/z7zmey/php-parser/pkg/conf"
"github.com/z7zmey/php-parser/pkg/errors"
"github.com/z7zmey/php-parser/pkg/parser"
"github.com/z7zmey/php-parser/pkg/version"
"github.com/z7zmey/php-parser/pkg/visitor/dumper"
"github.com/VKCOM/php-parser/pkg/conf"
"github.com/VKCOM/php-parser/pkg/errors"
"github.com/VKCOM/php-parser/pkg/parser"
"github.com/VKCOM/php-parser/pkg/version"
"github.com/VKCOM/php-parser/pkg/visitor/dumper"
)
func main() {
+7 -7
View File
@@ -3,13 +3,13 @@ package parser
import (
"errors"
"github.com/z7zmey/php-parser/internal/php5"
"github.com/z7zmey/php-parser/internal/php7"
"github.com/z7zmey/php-parser/internal/php8"
"github.com/z7zmey/php-parser/internal/scanner"
"github.com/z7zmey/php-parser/pkg/ast"
"github.com/z7zmey/php-parser/pkg/conf"
"github.com/z7zmey/php-parser/pkg/version"
"github.com/VKCOM/php-parser/internal/php5"
"github.com/VKCOM/php-parser/internal/php7"
"github.com/VKCOM/php-parser/internal/php8"
"github.com/VKCOM/php-parser/internal/scanner"
"github.com/VKCOM/php-parser/pkg/ast"
"github.com/VKCOM/php-parser/pkg/conf"
"github.com/VKCOM/php-parser/pkg/version"
)
var (
+1 -1
View File
@@ -1,6 +1,6 @@
package token
import "github.com/z7zmey/php-parser/pkg/position"
import "github.com/VKCOM/php-parser/pkg/position"
//go:generate stringer -type=ID -output ./token_string.go
type ID int
+1 -1
View File
@@ -5,7 +5,7 @@ import (
"gotest.tools/assert"
"github.com/z7zmey/php-parser/pkg/version"
"github.com/VKCOM/php-parser/pkg/version"
)
func Test(t *testing.T) {
+3 -3
View File
@@ -5,10 +5,10 @@ import (
"strconv"
"strings"
"github.com/z7zmey/php-parser/pkg/position"
"github.com/z7zmey/php-parser/pkg/token"
"github.com/VKCOM/php-parser/pkg/position"
"github.com/VKCOM/php-parser/pkg/token"
"github.com/z7zmey/php-parser/pkg/ast"
"github.com/VKCOM/php-parser/pkg/ast"
)
type Dumper struct {
+4 -4
View File
@@ -2,12 +2,12 @@ package dumper_test
import (
"bytes"
"github.com/z7zmey/php-parser/pkg/position"
"github.com/z7zmey/php-parser/pkg/token"
"github.com/z7zmey/php-parser/pkg/visitor/dumper"
"github.com/VKCOM/php-parser/pkg/position"
"github.com/VKCOM/php-parser/pkg/token"
"github.com/VKCOM/php-parser/pkg/visitor/dumper"
"testing"
"github.com/z7zmey/php-parser/pkg/ast"
"github.com/VKCOM/php-parser/pkg/ast"
)
func TestDumper_root(t *testing.T) {
+2 -2
View File
@@ -3,8 +3,8 @@ package formatter
import (
"bytes"
"github.com/z7zmey/php-parser/pkg/ast"
"github.com/z7zmey/php-parser/pkg/token"
"github.com/VKCOM/php-parser/pkg/ast"
"github.com/VKCOM/php-parser/pkg/token"
)
type formatterState int
+4 -4
View File
@@ -2,12 +2,12 @@ package formatter_test
import (
"bytes"
"github.com/z7zmey/php-parser/pkg/token"
"github.com/z7zmey/php-parser/pkg/visitor/formatter"
"github.com/z7zmey/php-parser/pkg/visitor/printer"
"github.com/VKCOM/php-parser/pkg/token"
"github.com/VKCOM/php-parser/pkg/visitor/formatter"
"github.com/VKCOM/php-parser/pkg/visitor/printer"
"testing"
"github.com/z7zmey/php-parser/pkg/ast"
"github.com/VKCOM/php-parser/pkg/ast"
)
func TestFormatter_Root(t *testing.T) {
+2 -2
View File
@@ -5,8 +5,8 @@ import (
"errors"
"strings"
"github.com/z7zmey/php-parser/pkg/ast"
"github.com/z7zmey/php-parser/pkg/visitor"
"github.com/VKCOM/php-parser/pkg/ast"
"github.com/VKCOM/php-parser/pkg/visitor"
)
// NamespaceResolver visitor
@@ -1,13 +1,13 @@
package nsresolver_test
import (
"github.com/z7zmey/php-parser/pkg/visitor/nsresolver"
"github.com/z7zmey/php-parser/pkg/visitor/traverser"
"github.com/VKCOM/php-parser/pkg/visitor/nsresolver"
"github.com/VKCOM/php-parser/pkg/visitor/traverser"
"testing"
"gotest.tools/assert"
"github.com/z7zmey/php-parser/pkg/ast"
"github.com/VKCOM/php-parser/pkg/ast"
)
func TestResolveStaticCall(t *testing.T) {
+1 -1
View File
@@ -1,7 +1,7 @@
package visitor
import (
"github.com/z7zmey/php-parser/pkg/ast"
"github.com/VKCOM/php-parser/pkg/ast"
)
type Null struct {
+2 -2
View File
@@ -4,8 +4,8 @@ import (
"bytes"
"io"
"github.com/z7zmey/php-parser/pkg/ast"
"github.com/z7zmey/php-parser/pkg/token"
"github.com/VKCOM/php-parser/pkg/ast"
"github.com/VKCOM/php-parser/pkg/token"
)
type printerState int
+6 -6
View File
@@ -4,12 +4,12 @@ import (
"bytes"
"testing"
"github.com/z7zmey/php-parser/internal/php5"
"github.com/z7zmey/php-parser/internal/scanner"
"github.com/z7zmey/php-parser/pkg/ast"
"github.com/z7zmey/php-parser/pkg/conf"
"github.com/z7zmey/php-parser/pkg/version"
"github.com/z7zmey/php-parser/pkg/visitor/printer"
"github.com/VKCOM/php-parser/internal/php5"
"github.com/VKCOM/php-parser/internal/scanner"
"github.com/VKCOM/php-parser/pkg/ast"
"github.com/VKCOM/php-parser/pkg/conf"
"github.com/VKCOM/php-parser/pkg/version"
"github.com/VKCOM/php-parser/pkg/visitor/printer"
)
func parsePhp5(src string) ast.Vertex {
+6 -6
View File
@@ -5,12 +5,12 @@ import (
"os"
"testing"
"github.com/z7zmey/php-parser/internal/php7"
"github.com/z7zmey/php-parser/internal/scanner"
"github.com/z7zmey/php-parser/pkg/ast"
"github.com/z7zmey/php-parser/pkg/conf"
"github.com/z7zmey/php-parser/pkg/version"
"github.com/z7zmey/php-parser/pkg/visitor/printer"
"github.com/VKCOM/php-parser/internal/php7"
"github.com/VKCOM/php-parser/internal/scanner"
"github.com/VKCOM/php-parser/pkg/ast"
"github.com/VKCOM/php-parser/pkg/conf"
"github.com/VKCOM/php-parser/pkg/version"
"github.com/VKCOM/php-parser/pkg/visitor/printer"
)
func ExamplePrinter() {
+6 -6
View File
@@ -5,12 +5,12 @@ import (
"os"
"testing"
"github.com/z7zmey/php-parser/internal/php8"
"github.com/z7zmey/php-parser/internal/tester"
"github.com/z7zmey/php-parser/pkg/ast"
"github.com/z7zmey/php-parser/pkg/conf"
"github.com/z7zmey/php-parser/pkg/version"
"github.com/z7zmey/php-parser/pkg/visitor/printer"
"github.com/VKCOM/php-parser/internal/php8"
"github.com/VKCOM/php-parser/internal/tester"
"github.com/VKCOM/php-parser/pkg/ast"
"github.com/VKCOM/php-parser/pkg/conf"
"github.com/VKCOM/php-parser/pkg/version"
"github.com/VKCOM/php-parser/pkg/visitor/printer"
"gotest.tools/assert"
)
+3 -3
View File
@@ -2,11 +2,11 @@ package printer_test
import (
"bytes"
"github.com/z7zmey/php-parser/pkg/token"
"github.com/z7zmey/php-parser/pkg/visitor/printer"
"github.com/VKCOM/php-parser/pkg/token"
"github.com/VKCOM/php-parser/pkg/visitor/printer"
"testing"
"github.com/z7zmey/php-parser/pkg/ast"
"github.com/VKCOM/php-parser/pkg/ast"
)
func TestPrinterPrintFile(t *testing.T) {
+1 -1
View File
@@ -1,7 +1,7 @@
package traverser
import (
"github.com/z7zmey/php-parser/pkg/ast"
"github.com/VKCOM/php-parser/pkg/ast"
)
type Traverser struct {