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

Unified Diff: pkg/analyzer/test/src/summary/index_unit_test.dart

Issue 1797343002: Don't attempt to record DynamicElementImpl references. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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 | « pkg/analyzer/lib/src/summary/index_unit.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analyzer/test/src/summary/index_unit_test.dart
diff --git a/pkg/analyzer/test/src/summary/index_unit_test.dart b/pkg/analyzer/test/src/summary/index_unit_test.dart
index 3a1c4448d82c18600d38d170bce04fc5f5092607..a8a3f4f042604c99bfb629718e1fa6c46d160c48 100644
--- a/pkg/analyzer/test/src/summary/index_unit_test.dart
+++ b/pkg/analyzer/test/src/summary/index_unit_test.dart
@@ -671,6 +671,13 @@ main() {
assertThat(constA)..isReferencedAt('(); // 1', true, length: 0);
}
+ void test_isReferencedBy_DynamicElement() {
+ _indexTestUnit('''
+dynamic f() {
+}''');
+ expect(unitIndex.usedElementOffsets, isEmpty);
+ }
+
void test_isReferencedBy_FieldElement() {
_indexTestUnit('''
class A {
« no previous file with comments | « pkg/analyzer/lib/src/summary/index_unit.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698