[refactoring] update position builder

This commit is contained in:
Vadym Slizov
2020-12-08 02:08:59 +02:00
parent 8064d940f0
commit f3a605aba1
9 changed files with 2910 additions and 2878 deletions

View File

@@ -36,7 +36,7 @@ func NewLexer(data []byte, phpVersion string, errHandlerFunc func(*errors.Error)
stack: make([]int, 0),
tokenPool: token.NewPool(position.DefaultBlockSize),
positionPool: position.NewPool(position.DefaultBlockSize),
positionPool: position.NewPool(token.DefaultBlockSize),
newLines: NewLines{make([]int, 0, 128)},
}