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

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

Issue 2628303002: Fix for crash when part directive uri is has null value. (Closed)
Patch Set: Created 3 years, 11 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/summary/resynthesize_common.dart
diff --git a/pkg/analyzer/test/src/summary/resynthesize_common.dart b/pkg/analyzer/test/src/summary/resynthesize_common.dart
index a11b9416439f87143d582c633707181f9f36b9fd..e1448b4333ef7faaa83c94476cc460821772d40c 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -4345,6 +4345,15 @@ void named({x: 1}) {}
checkLibrary('library my.lib; part "foo/";');
}
+ test_parts_invalidUri_nullStringValue() {
+ allowMissingFiles = true;
+ addSource('/foo/bar.dart', 'part of my.lib;');
+ checkLibrary(r'''
+library my.lib;
+part "${foo}/bar.dart";
+''');
+ }
+
test_propagated_type_refers_to_closure() {
checkLibrary('''
void f() {

Powered by Google App Engine
This is Rietveld 408576698