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
From my reading of the docs getElementDeclaration returns null for synthetic elements - you might check if someTypeAliasElementImplVar.isSynthetic is true, and if so see if nonSynthetic property gets you to an Element that works with this API.
ParsedLibraryResult.getElementDeclaration(someTypeAliasElementImplVar)
returnsnull
only fortypedef
.It seems for me that this is a bug.
How can I know the node for
TypeAliasElementImpl
elements?Dart SDK version: 3.2.2 (stable) (Tue Nov 28 11:22:54 2023 +0000) on "macos_x64"
The text was updated successfully, but these errors were encountered: