Scalameta v4.9.0
github-actions
released this
15 Feb 12:39
·
191 commits
to refs/heads/main
since this release
Features
- add binary literals support (#3543) @kasiaMarek
- preserve origin and dialect in quasiquotes
- ast: implicit dialect in apply(), store in origin (#3503) @kitbellew
- Dialect: call methods with all arguments named (#3511) @kitbellew
- Dialect: in privateCopy, don't copy if the same (#3510) @kitbellew
- Dialect: use unquote dialect in toString() (#3507) @kitbellew
- Dialect: ignore deprecated and unused fields (#3506) @kitbellew
- Dialect: split isEquivalentTo (#3509) @kitbellew
- Dialect: determine unquote parent by unquote type (#3508) @kitbellew
- InternalTrees: add tokens overload without dialect (#3502) @kitbellew
- InternalTrees: require origin dialect in
tokens
(#3498) @kitbellew - Tree: remove methods defined in InternalTree (#3501) @kitbellew
- Tree: fix
maybeParsed
extension, add ClassTag (#3499) @kitbellew - InternalTrees: clean up error message in
text
(#3497) @kitbellew - Tree: add
maybeParse
extension, for a parsed tree (#3493) @kitbellew - InternalTrees: rename dialectText, add tokenizeFor (#3496) @kitbellew
- InternalTrees: extract tokens caching logic (#3495) @kitbellew
- InternalTrees: extract getting syntax-based input (#3494) @kitbellew
- InternalTrees: another extension to set dialect (#3492) @kitbellew
- InternalTrees: define
text
anddialectText
(#3491) @kitbellew - Transverser: set dialect recursively on root tree (#3490) @kitbellew
- ScalametaParser: keep Lit.{Double,Float} syntax (#3489) @kitbellew
- TreeStructure: don't use tokens, ignore syntax (#3488) @kitbellew
- InternalTrees: add extension withOriginRecursive (#3487) @kitbellew
- ReificationMacros: cosmetic, get position once (#3486) @kitbellew
- ReificationMacros: build three lists in one pass (#3485) @kitbellew
- Trees: save tokens and positions as lazy (#3484) @kitbellew
- Tree: remove privateOrigin, ensure origin is valid (#3481) @kitbellew
- Origin: add a DialectOnly version (#3480) @kitbellew
- ReificationMacros: fix handling of embedded
$
(#3479) @kitbellew - Dialect: replace unquote flags with a single one (#3478) @kitbellew
- Dialect: keep original, pre-quasiquote dialect (#3472) @kitbellew
- ast: save origin as a private field, add
apply()
(#3457) @kitbellew - Tree: expose dialect if available (#3477) @kitbellew
- Origin: move out of
internal
(#3454) @kitbellew - Tokens: use Token.text, not .toString (#3473) @kitbellew
- TreeToString: use a more recent default dialect (#3470) @kitbellew
- ReificationMacros: construct sourceName if needed (#3467) @kitbellew
- Dialect: add private methods to enable unquoting (#3459) @kitbellew
- TokenStreamPosition: move inline in Origin.Parsed (#3456) @kitbellew
- adt.Liftables: include private fields if requested (#3452) @kitbellew
- SuccessSuite: test origin of interp quasiquotes (#3455) @kitbellew
- adt.Reflection: refactor prefix generation (#3447) @kitbellew
- Sort imports if using Origin/TokenStreamPosition (#3453) @kitbellew
- adt.Liftables: obtain latest version only for ast (#3451) @kitbellew
- ReificationMacros: lift origin, dialect and input (#3450) @kitbellew
- adt.Reflection: allow private fields (#3449) @kitbellew
- adt.Reflection: no
isPayload/isAuxiliary
methods (#3448) @kitbellew - ReificationMacros: refactor instantiating dialect (#3446) @kitbellew
- Origin: extract input/dialect into separate class (#3445) @kitbellew
- Origin: add
position
method (#3444) @kitbellew - ast: define private fields with initial values (#3443) @kitbellew
- ReificationMacros: simplify
metaInput
(#3434) @kitbellew - ReificationMacros: extract methods creating holes (#3437) @kitbellew
- adt.Reflection: retrieve fields in sorted order (#3438) @kitbellew
- adt.Reflection: refactor
isField
extension (#3439) @kitbellew - ast: exclude the final apply call from apply body (#3441) @kitbellew
- InternalTree: clean up handling of origin (#3428) @kitbellew
- Dialect: improve isEquivalentTo (#3430) @kitbellew
- adt.Reflection: remove unnecessary methods (#3429) @kitbellew
- Add a quasiquotes test showing
origin
is missing (#3427) @kitbellew - ast: remove intermediate variable in method return (#3433) @kitbellew
- ReificationMacros: save
Hole.isTerm
as val (#3435) @kitbellew - ReificationMacros: don't import
definitions._
(#3436) @kitbellew - ast: move private fields to before other fields (#3442) @kitbellew
- ast: define annotation for astField as val (#3440) @kitbellew
- ast: extract getDeferredModifiers method (#3432) @kitbellew
- ReificationMacros: move extensions to class level (#3431) @kitbellew
Bug fixes
- remove unused-variable warning
- ReificationMacros: dialect is implicit, use that (#3553) @kitbellew
- ReificationMacros: no
dialectOnly
if use source (#3551) @kitbellew
- ScannerTokens: improve handling of
finally
(#3536) @kitbellew - ScannerTokens: move comma past outdents in parens (#3542) @kitbellew
- ScalametaParser: parse coloneol arg as lambda (#3537) @kitbellew
- ScalametaParser: allow func params in arg clause (#3516) @kitbellew
- ScalametaParser: parse colon-space arg as lambda (#3529) @kitbellew
- FewerBracesSuite: add cases without params (#3533) @kitbellew
- FewerBracesSuite: also add tests with
using
(#3528) @kitbellew - ScalametaParser: add getFewerBracesApplyOnColon (#3520) @kitbellew
- ScalametaParser: keep block around func with mods (#3515) @kitbellew
- FewerBracesSuite: tests with
erased
(#3513) @kitbellew
- ScalametaParser: allow
lazy
withgiven
(#3534) @kitbellew - TreeSyntax: fix bug in interpolate syntax (#3465) @kitbellew
- bugfix: Shade sourcecode as it's a dependency of fastparse (#3468) @tgodzik
- Fix typo in error message (#3424) @lolgab
Build improvements
- fix all warnings except deprecations
- SBT: fail build on warnings, treat some as info (#3561) @kitbellew
- Transversers: skip Quasi before other trees (#3562) @kitbellew
- Warnings: fix
match may not be exhaustive
(#3565) @kitbellew - Warnings: remove unused imports (#3560) @kitbellew
- Warnings: replace deprecated JavaConverters (#3554) @kitbellew
- Warnings: replace deprecated
'xyz
symbols (#3557) @kitbellew - Warnings: replace deprecated scala.compat.Platform (#3555) @kitbellew
- Warnings: avoid deprecated scalameta Tree methods (#3559) @kitbellew
- Warnings: avoid deprecated ext library methods (#3558) @kitbellew
- Warnings: add
()
to non-parameterless methods (#3556) @kitbellew
- Github workflow: rename website release job (#3514) @kitbellew
- SBT: remove circular dependency with mdoc (#3500) @kitbellew
- SBT: undo shading of the
sourcecode
dependency (#3483) @kitbellew - SBT: add shading to the common package (#3482) @kitbellew
- refactor: Fix some of the remaining warnings and errors for Scala 3 (#3423) @tgodzik
Miscellaneous
- Transversers: use
foreach
insteadhasNext/next
(#3563) @kitbellew - Transversers: inline some of method invocations (#3564) @kitbellew
- ScannerTokens: improve generating outdents (#3550) @kitbellew
- ScannerTokens: move mkOutdents into mkOutdentsOpt (#3548) @kitbellew
- ScannerTokens: verify array index is non-negative (#3547) @kitbellew
- TreeSyntax: omit
()
around partial function (#3545) @kitbellew - Use shortcut methods in tests (#3535) @kitbellew
- ScalametaParser: no anonymous func around postfix (#3527) @kitbellew
- ScalametaParser: add acceptAfterOpt method (#3524) @kitbellew
- ScalametaParser: make
blockExprPartial
specific (#3526) @kitbellew - ScannerTokens: add isExprIntro overload (#3525) @kitbellew
- ScalametaParser: remove block around
apply {}
(#3517) @kitbellew - ScalametaParser: in implicitClosure, no full type (#3523) @kitbellew
- ScalametaParser: split
getArgClause
into two (#3522) @kitbellew - ScalametaParser: add method to read declared type (#3521) @kitbellew
- ScalametaParser: return in ellipsis precise type (#3519) @kitbellew
- ScalametaParser: add
fullTypeOK
toLocation
(#3518) @kitbellew - TermSuite: use shortcut methods (#3512) @kitbellew
- Add section in contributors guide for native dependencies. (#3505) @yilinwei
- DialectSuite: add more tests, including toString (#3504) @kitbellew
- ast: do not remove type and definition annotations (#3476) @kitbellew
- Token: dialect consistency check from TokenSyntax (#3474) @kitbellew
- Enquote: slightly generalize the code (#3469) @kitbellew
- Invariants: provide human-readable clue of failure (#3475) @kitbellew
- SuccessSuite: add tests verifying type annotation (#3471) @kitbellew
- Add common base for {Parse,Tokenize}Exception (#3461) @kitbellew
- ParseSuite: improve assertLines, runTestAssert (#3462) @kitbellew
- Add more detailed test syntax comparisons (#3458) @kitbellew
- ModSuite: no implicit ParamClauseGroup conversion (#3426) @kitbellew
Dependency updates
- Update sbt-protoc to 1.0.7 (#3538) @scalameta-bot
- Update mdoc, sbt-mdoc to 2.5.2 (#3541) @scalameta-bot
- Update compilerplugin, protoc-gen-scala, ... to 0.11.15 (#3539) @scalameta-bot
- Update sbt-jmh to 0.4.7 (#3464) @scalameta-bot
- Update sbt, scripted-plugin to 1.9.8 (#3463) @scalameta-bot