[refactoring] internal position package

This commit is contained in:
Vadym Slizov
2020-06-29 14:38:10 +03:00
parent ee673e5667
commit 7eff83624e
9 changed files with 2953 additions and 2994 deletions

View File

@@ -3,7 +3,6 @@ package php7
import (
"bytes"
"github.com/z7zmey/php-parser/internal/positionbuilder"
"github.com/z7zmey/php-parser/internal/scanner"
"github.com/z7zmey/php-parser/pkg/ast"
"github.com/z7zmey/php-parser/pkg/errors"
@@ -12,12 +11,11 @@ import (
// Parser structure
type Parser struct {
Lexer *scanner.Lexer
currentToken *scanner.Token
positionBuilder *positionbuilder.PositionBuilder
rootNode ast.Vertex
errors []*errors.Error
withTokens bool
Lexer *scanner.Lexer
currentToken *scanner.Token
rootNode ast.Vertex
errors []*errors.Error
withTokens bool
}
// NewParser creates and returns new Parser
@@ -64,7 +62,6 @@ func (l *Parser) Parse() int {
// init
l.errors = nil
l.rootNode = nil
l.positionBuilder = &positionbuilder.PositionBuilder{}
// parse

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff