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

Unified Diff: tests/lib/mirrors/library_metatarget_test_annotations_lib.dart

Issue 30013002: Revert "Revert "Resolve metadata on library tags"" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 2 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 | « tests/lib/mirrors/library_metatarget_test.dart ('k') | tests/lib/mirrors/library_metatarget_test_lib.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/library_metatarget_test_annotations_lib.dart
diff --git a/tests/language/compiler_annotations.dart b/tests/lib/mirrors/library_metatarget_test_annotations_lib.dart
similarity index 50%
copy from tests/language/compiler_annotations.dart
copy to tests/lib/mirrors/library_metatarget_test_annotations_lib.dart
index c920add403b030de5e012117306b265733e869b8..20fcfcf1017fb0a4d335623fb8174cd866aca8db 100644
--- a/tests/language/compiler_annotations.dart
+++ b/tests/lib/mirrors/library_metatarget_test_annotations_lib.dart
@@ -2,11 +2,16 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-library compiler_annotations;
+// Regression test for the combined use of metatargets and library tags.
-// This library contains annotations useful for testing.
+library annotations;
-// TODO(ngeoffray): Implement in dart2js.
-class DontInline {
- const DontInline();
+class UsedOnlyOnLibrary {
+ const UsedOnlyOnLibrary();
}
+const usedOnlyOnLibrary = const UsedOnlyOnLibrary();
+
+class Reflectable {
+ const Reflectable();
+}
+const Reflectable reflectable = const Reflectable();
« no previous file with comments | « tests/lib/mirrors/library_metatarget_test.dart ('k') | tests/lib/mirrors/library_metatarget_test_lib.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698