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

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

Issue 40863002: Handle metadata with type literals or qualified identifiers. (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
« runtime/vm/parser.cc ('K') | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tests/lib/mirrors/metadata_with_type_literal_test.dart
diff --git a/tests/lib/mirrors/typedef_metadata_test.dart b/tests/lib/mirrors/metadata_with_type_literal_test.dart
similarity index 54%
copy from tests/lib/mirrors/typedef_metadata_test.dart
copy to tests/lib/mirrors/metadata_with_type_literal_test.dart
index 36e08370fc95f02596b0dd5bd477683bdd963fde..923882717656d0edf1703f0d3e31b30772a88176 100644
--- a/tests/lib/mirrors/typedef_metadata_test.dart
+++ b/tests/lib/mirrors/metadata_with_type_literal_test.dart
@@ -2,22 +2,21 @@
// 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.
-@string @symbol
-library test.typedef_metadata_test;
+library test.metadata_with_type_literal;
import 'dart:mirrors';
import 'metadata_test.dart';
-class S {}
-class M {}
-@symbol
-class MA = S with M;
+@Class
+class Class {}
-@string
-typedef bool Predicate(Object o);
+@Class2.FOO
+class Class2 {
+ static const FOO = 2;
+}
main() {
- checkMetadata(reflectType(MA), [symbol]);
- checkMetadata(reflectType(Predicate), [string]);
+ checkMetadata(reflectClass(Class), [Class]);
+ checkMetadata(reflectClass(Class2), [Class2.FOO]);
}
« runtime/vm/parser.cc ('K') | « runtime/vm/parser.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698