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

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

Issue 2986983002: Resynthesize metadata from Kernel, when already supported. (Closed)
Patch Set: Created 3 years, 5 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 effd04456a7904d26c28733e976e7e398bc2dcef..0449014e120afccec87512bd4410c98a1be362dd 100644
--- a/pkg/analyzer/test/src/summary/resynthesize_common.dart
+++ b/pkg/analyzer/test/src/summary/resynthesize_common.dart
@@ -8049,7 +8049,16 @@ unit: foo.dart
test_metadata_prefixed_variable() async {
addLibrarySource('/a.dart', 'const b = null;');
var library = await checkLibrary('import "a.dart" as a; @a.b class C {}');
- checkElementText(library, r'''
+ if (isSharedFrontEnd) {
+ checkElementText(library, r'''
+import 'a.dart' as a;
+@
+ b/*location: a.dart;b?*/
+class C {
+}
+''');
+ } else {
+ checkElementText(library, r'''
import 'a.dart' as a;
@
a/*location: test.dart;a*/.
@@ -8057,6 +8066,7 @@ import 'a.dart' as a;
class C {
}
''');
+ }
}
test_metadata_simpleFormalParameter() async {
« no previous file with comments | « pkg/analyzer/lib/src/kernel/resynthesize.dart ('k') | pkg/analyzer/test/src/summary/resynthesize_kernel_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698