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

Unified Diff: tests/compiler/dart2js/mirrors_helper.dart

Issue 10692040: Mirrors prototype added to dartdoc. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: dart2js_mirror.dart included in the cl Created 8 years, 6 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: tests/compiler/dart2js/mirrors_helper.dart
diff --git a/tests/compiler/dart2js/mirrors_helper.dart b/tests/compiler/dart2js/mirrors_helper.dart
new file mode 100644
index 0000000000000000000000000000000000000000..3cf5658f08e40bb5a174de9df7eba2459b18a134
--- /dev/null
+++ b/tests/compiler/dart2js/mirrors_helper.dart
@@ -0,0 +1,44 @@
+// Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
+// 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.
+
Lasse Reichstein Nielsen 2012/07/02 11:48:53 Add a comment to say that this file is read from a
Johnni Winther 2012/07/03 07:38:50 Done.
+#library('mirrors_helper');
+
+typedef E Func<E,F extends Foo>(F f);
+
+main() {
+
+}
+
+class Foo {
+
+}
+
+interface Bar<E> {
+
+}
+
+class Baz<E,F extends Foo> implements Bar<E> {
+ Baz();
+ const Baz.named();
+ factory Baz.factory();
+
+ method1(e) {}
+ static void method2(E e, [F f = null]) {}
+ void method3(E func1(F f), Func<E,F> func2) {}
+
+ bool operator==(Object other) => return false;
+ Baz<E,F> operator negate() => this;
+}
+
+class Boz extends Foo {
+ var field1;
+ int _field2;
+ final String field3;
+
+ int get field2() => _field2;
+ void set field2(int value) {
+ _field2 = value;
+ }
+}
+

Powered by Google App Engine
This is Rietveld 408576698