Making SimpleIdentifierImpl scopeLookupResult available on the interface type

22 views
Skip to first unread message

Dmitry Zhifarsky

unread,
Jan 27, 2023, 11:27:06 AM1/27/23
to Dart Analyzer Discussion
Hi, if I try to extract the assignment target element from an "AssignmentExpression", only the "scopeLookupResult" field contains the info I need (see the attachment). Is it possible to get the target element anyhow else? Or maybe you can make "scopeLookupResult" as the interface type filed instead of the implementation type filed?

If I'm not mistaken the ScopeLookupResult class is already a part of public API.

Thank you,
Dmitry
Screenshot 2023-01-27 at 17.16.48.png

Brian Wilkerson

unread,
Jan 27, 2023, 11:52:12 AM1/27/23
to analyzer...@dartlang.org
Does `AssignmentExpression.writeElement` give you what you need?

--
You received this message because you are subscribed to the Google Groups "Dart Analyzer Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to analyzer-discu...@dartlang.org.
To view this discussion on the web visit https://groups.google.com/a/dartlang.org/d/msgid/analyzer-discuss/cfa58a31-cd31-44c0-8ac9-f64260fe71d2n%40dartlang.org.

Dmitry Zhifarsky

unread,
Jan 27, 2023, 12:03:52 PM1/27/23
to Dart Analyzer Discussion
Yeah, this works, thank you! Was not expecting it there, to be honest 😅

пятница, 27 января 2023 г. в 20:52:12 UTC+4, brianwilkerson:
Reply all
Reply to author
Forward
0 new messages