You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
BREAKING CHANGES:
- Merge QuoteAwareConstExprStringNode into ConstExprStringNode: quoteType
is now a required constructor parameter (SINGLE_QUOTED/DOUBLE_QUOTED)
- Remove QuoteAwareConstExprStringNode class
- Remove quoteAwareConstExprString parameter from ConstExprParser and
TypeParser constructors (always quote-aware now)
New features:
- Add ParserConfig class for centralized parser configuration
- Add Comment class for inline comments in type expressions
- Add TOKEN_COMMENT to Lexer for // comment tokenization
- Add skipNewLineTokensAndConsumeComments() to TokenIterator
- Add flushComments() to TokenIterator
- Add COMMENTS attribute constant
- Speculative union/intersection parsing across newlines with comments
(enrichTypeOnUnionOrIntersection pattern from upstream)
Internal changes:
- TokenIterator savepoints now preserve comment state
- All tryConsumeTokenType(TOKEN_PHPDOC_EOL) calls in TypeParser replaced
with skipNewLineTokensAndConsumeComments()
- Transpiler uses ConstExprStringNode.value for property names instead of
toString() to avoid quoted output
0 commit comments