Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(20)

Unified Diff: pkg/analyzer/lib/src/summary/link.dart

Issue 1949783002: Implement PropertyAccessorElementForLink_Variable.getContainedName(). (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | pkg/analyzer/test/src/task/strong/inferred_type_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/lib/src/summary/link.dart
diff --git a/pkg/analyzer/lib/src/summary/link.dart b/pkg/analyzer/lib/src/summary/link.dart
index 21bcb8b62e76c0d05295b7f5a01f9dc30b99f194..e76b47724882cf6d0b58659aa442935cdb86f57d 100644
--- a/pkg/analyzer/lib/src/summary/link.dart
+++ b/pkg/analyzer/lib/src/summary/link.dart
@@ -3662,8 +3662,10 @@ class PropertyAccessorElementForLink_Variable
}
@override
- ReferenceableElementForLink getContainedName(String name) =>
- UndefinedElementForLink.instance;
+ ReferenceableElementForLink getContainedName(String name) {
+ Element element = variable._getContainedElement(name);
+ return new NonstaticMemberElementForLink(element, variable._constNode);
+ }
@override
bool isAccessibleIn(LibraryElement library) =>
« no previous file with comments | « no previous file | pkg/analyzer/test/src/task/strong/inferred_type_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698