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
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.
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).
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.