v0.5.0
Enhancements:
- Error-tolerant parsing
- Possibility to parse files concurrently
- Saving all comments
- Saving comments position
Breaking changes:
- Removed
DocComment
andPlainComment
types - Removed
boolWithToken
,altSintaxNode
,nodesWithEndToken
types - Created
node.Root
,node.ArgumentList
,stmt.TraitAdaptationList
,stmt.CaseList
,stmt.ClassExtends
,stmt.ClassImplements
,stmt.InterfaceExtends
,expr.Reference
nodes - Changed
ClosureUse
node purpose, now it represents variables list instead of wrapping the variable Builder
was renamed toPositionBuilder
scanner.CreateToken
returns pointerscanner.Token
saves position asposition.Position
Parser
interface moved toparser
packagetoken
package merged intoscanner
packagePositions
andComments
moved intoparser
package
Fixes:
- scanner: added
(binary)
cast - #28 fixed race conditions
- #18
heredocLabel
variable moved from global intoscanner.Lexer
- fixed panic on 32-bit systems
- fixed bug when scanning an empty inline comment
- fixed namespace resolver fail on anonymous class
- fixed the saving non-latin comments
Optimisations:
- #21 refactored
scanner.Lexer.charsToBytes
and renamed toscanner.Lexer.tokenString