PHP-Parser v0.5.0 Release Notes
Release Date: 2018-06-07 // almost 6 years ago-
โจ 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
package - ๐ฆ
token
package merged intoscanner
package - ๐ฆ
Positions
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