-
Notifications
You must be signed in to change notification settings - Fork 207
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
No node for typedefs #3628
Comments
cc @scheglov |
is this a bug? |
From my reading of the docs https://pub.dev/documentation/analyzer/latest/dart_element_element/Element/nonSynthetic.html |
no, typedefs are not synthetic, they are solid nodes. I could find out the node for the typedef by looping through all nodes and check for So the node and typedef element connection is there |
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: