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

Unified Diff: test_reflectable/test/parameter_mirrors_test.dart

Issue 1289933004: Implements support for reflection on parameters. (Closed) Base URL: https://github.com/dart-lang/reflectable.git@master
Patch Set: Merging with code from Sigurd, caused several adjustments Created 5 years, 4 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 | « test_reflectable/test/metadata_test.dart ('k') | test_reflectable/test/parameter_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test_reflectable/test/parameter_mirrors_test.dart
diff --git a/test_reflectable/test/parameter_mirrors_test.dart b/test_reflectable/test/parameter_mirrors_test.dart
index 084e27fbc8705851ef7ebbaa68b2fb7863247a06..d115d85628081e9c6ae9eab63a56d1d48eeb6eb4 100644
--- a/test_reflectable/test/parameter_mirrors_test.dart
+++ b/test_reflectable/test/parameter_mirrors_test.dart
@@ -8,7 +8,9 @@ import "package:unittest/unittest.dart";
import "package:reflectable/reflectable.dart";
class Reflector extends Reflectable {
- const Reflector() : super(instanceInvokeCapability, metadataCapability);
+ const Reflector()
+ : super(instanceInvokeCapability, metadataCapability,
+ declarationsCapability);
}
class C {
@@ -65,7 +67,7 @@ main() {
expect(f3Parameters[1].owner, f3);
expect(f3Parameters[1].simpleName, "b");
expect(f3Parameters[1].qualifiedName,
- "test_reflectable.test.parameter_mirrors_test.A.f3.b");
+ "test_reflectable.test.parameter_mirrors_test.A.f3.b");
expect(f3Parameters[1].metadata, []);
expect(f3Parameters[2].isNamed, false);
@@ -79,7 +81,7 @@ main() {
expect(f3Parameters[2].owner, f3);
expect(f3Parameters[2].simpleName, "c");
expect(f3Parameters[2].qualifiedName,
- "test_reflectable.test.parameter_mirrors_test.A.f3.c");
+ "test_reflectable.test.parameter_mirrors_test.A.f3.c");
expect(f3Parameters[2].metadata, [const C()]);
expect(f4Parameters.length, 3);
@@ -95,7 +97,7 @@ main() {
expect(f4Parameters[1].owner, f4);
expect(f4Parameters[1].simpleName, "b");
expect(f4Parameters[1].qualifiedName,
- "test_reflectable.test.parameter_mirrors_test.A.f4.b");
+ "test_reflectable.test.parameter_mirrors_test.A.f4.b");
expect(f4Parameters[1].metadata, []);
expect(f4Parameters[2].isNamed, true);
@@ -109,7 +111,7 @@ main() {
expect(f4Parameters[2].owner, f4);
expect(f4Parameters[2].simpleName, "c");
expect(f4Parameters[2].qualifiedName,
- "test_reflectable.test.parameter_mirrors_test.A.f4.c");
+ "test_reflectable.test.parameter_mirrors_test.A.f4.c");
expect(f4Parameters[2].metadata, []);
});
}
« no previous file with comments | « test_reflectable/test/metadata_test.dart ('k') | test_reflectable/test/parameter_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698