rename package cfg to conf

This commit is contained in:
Vadym Slizov
2021-02-13 23:54:34 +02:00
parent 9d12f1d162
commit 367eff9de6
14 changed files with 503 additions and 503 deletions

View File

@@ -7,13 +7,13 @@ import (
"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/cfg"
"github.com/z7zmey/php-parser/pkg/conf"
"github.com/z7zmey/php-parser/pkg/version"
"github.com/z7zmey/php-parser/pkg/visitor/printer"
)
func parsePhp5(src string) ast.Vertex {
config := cfg.Config{
config := conf.Config{
Version: &version.Version{
Major: 5,
Minor: 6,

View File

@@ -8,7 +8,7 @@ import (
"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/cfg"
"github.com/z7zmey/php-parser/pkg/conf"
"github.com/z7zmey/php-parser/pkg/version"
"github.com/z7zmey/php-parser/pkg/visitor/printer"
)
@@ -30,7 +30,7 @@ abstract class Bar extends Baz
// parse
config := cfg.Config{
config := conf.Config{
Version: &version.Version{
Major: 7,
Minor: 4,
@@ -68,7 +68,7 @@ abstract class Bar extends Baz
}
func parse(src string) ast.Vertex {
config := cfg.Config{
config := conf.Config{
Version: &version.Version{
Major: 7,
Minor: 4,