Skip to content

Update versions to language 3.12 and analyzer 11#358

Merged
eernstg merged 7 commits into
masterfrom
update_versions_analyzer11_may26
May 19, 2026
Merged

Update versions to language 3.12 and analyzer 11#358
eernstg merged 7 commits into
masterfrom
update_versions_analyzer11_may26

Conversation

@eernstg

@eernstg eernstg commented May 19, 2026

Copy link
Copy Markdown
Collaborator

This PR updates the dependencies in all packages in this repository to use language version 3.12, and it updates the dependencies on the analyzer (where present) to ^11.0.0. It prepares reflectable for being released as version 5.1.2 and reflectable_builder as version 1.2.2.

@eernstg eernstg requested a review from sigurdm May 19, 2026 13:28
@eernstg

eernstg commented May 19, 2026

Copy link
Copy Markdown
Collaborator Author

Hi @sigurdm, reflectable was at analyzer version ^10.0.0 and the analyzer is now at ^13.0.0, so I'm migrating the code to get aligned with the new analyzers.

Going from ^10.0.0 to ^11.0.0 is mainly about the breaking change where the property isSynthetic is eliminated, and various subtypes of Element instead gained one or more properties which are more specific. For example, a PropertyAccessorElement has an isOriginVariable which is true if and only if this property accessor declaration was created implicitly based on a variable declaration.

Note that the property isOriginDeclaration is arguably interpreted in the opposite direction: This one is true if this declaration is "the original one" (that is, it wasn't created implicitly based on some other declaration).

This means that it is necessary to be careful about which new property to use in place of the old isSynthetic which isn't available any more. In general isSynthetic is replaced by isOriginVariable or !isOriginDeclaration (note the negation), but in some cases there is no such property and the status is hardcoded (e.g., a class element doesn't have those properties, presumably because it is never synthetic).

@eernstg

eernstg commented May 19, 2026

Copy link
Copy Markdown
Collaborator Author

Thanks!

@eernstg eernstg merged commit 66ddcc4 into master May 19, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants