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

Unified Diff: pkg/analyzer/test/src/dart/analysis/index_test.dart

Issue 2809523002: Issue 29288. Resynthesize Import/Export/PartElement for every directive. (Closed)
Patch Set: Created 3 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
Index: pkg/analyzer/test/src/dart/analysis/index_test.dart
diff --git a/pkg/analyzer/test/src/dart/analysis/index_test.dart b/pkg/analyzer/test/src/dart/analysis/index_test.dart
index 51fb995a9a4a7e86af1113316619843540afdb1e..ffa365d1f01d709c9d3ee3e7538090bbf6e0ae20 100644
--- a/pkg/analyzer/test/src/dart/analysis/index_test.dart
+++ b/pkg/analyzer/test/src/dart/analysis/index_test.dart
@@ -476,6 +476,20 @@ part 'my_unit.dart';
assertThat(element)..isReferencedAt("'my_unit.dart';", true, length: 14);
}
+ test_isReferencedBy_CompilationUnitElement_part_inPart() async {
+ provider.newFile(_p('$testProject/a.dart'), 'part of lib;');
+ provider.newFile(
+ _p('$testProject/b.dart'),
+ '''
+library lib;
+part 'a.dart';
+''');
+ await _indexTestUnit('''
+part 'b.dart';
+''');
+ // No exception, even though a.dart is a part of b.dart part.
+ }
+
test_isReferencedBy_ConstructorElement() async {
await _indexTestUnit('''
class A implements B {

Powered by Google App Engine
This is Rietveld 408576698