[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

@@ -4,7 +4,6 @@ import (
"bytes"
"fmt"
"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"
@@ -13,12 +12,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
@@ -66,7 +64,6 @@ func (p *Parser) Parse() int {
// init
p.errors = nil
p.rootNode = nil
p.positionBuilder = &positionbuilder.PositionBuilder{}
// parse

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff