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

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

Issue 1805563002: Revert "Delete support for source mirrors" (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Created 4 years, 9 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/compiler/dart2js/mirrors_exports_test.dart ('k') | tests/compiler/dart2js/mirrors_lookup_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7ffae11501685404186fdf2fd77971a0d29cd8bb
--- /dev/null
+++ b/tests/compiler/dart2js/mirrors_helper.dart
@@ -0,0 +1,78 @@
+// 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.
+
+/**
+ * This file is read by 'mirrors_test.dart'.
+ */
+
+library mirrors_helper;
+
+typedef E Func<E,F extends Foo>(F f);
+
+main() {
+
+}
+
+/// Singleline doc comment.
+@Metadata(null)
+// Singleline comment 1.
+// Singleline comment 2.
+@Metadata(true)
+@Metadata(false)
+@Metadata(0)
+@Metadata(1.5)
+@Metadata("Foo")
+@Metadata(const ["Foo"])
+@Metadata(const {'foo':"Foo"})
+@metadata
+/** Multiline doc comment. */
+/* Multiline comment. */ class Foo {
+ m(@metadata a) {}
+}
+
+
+abstract class Bar<E> {
+
+}
+
+class Baz<E,F extends Foo> implements Bar<E> {
+ Baz();
+ const Baz.named();
+ factory Baz.factory() => new Baz<E,F>();
+
+ static method1(e) {}
+ void method2(E e, [F f = null]) {}
+ Baz<E,F> method3(E func1(F f), Func<E,F> func2) => null;
+
+ bool operator==(Object other) => false;
+ int operator-() => 0;
+ operator$foo() {}
+}
+
+class Boz extends Foo {
+ var field1;
+ int _field2;
+ final String field3 = "field3";
+
+ int get field2 => _field2;
+ void set field2(int value) {
+ _field2 = value;
+ }
+}
+
+class _PrivateClass {
+ var _privateField;
+ get _privateGetter => _privateField;
+ void set _privateSetter(value) => _privateField = value;
+ void _privateMethod() {}
+ _PrivateClass._privateConstructor();
+ factory _PrivateClass._privateFactoryConstructor() => null;
+}
+
+const metadata = const Metadata(null);
+
+class Metadata {
+ final data;
+ const Metadata(this.data);
+}
« no previous file with comments | « tests/compiler/dart2js/mirrors_exports_test.dart ('k') | tests/compiler/dart2js/mirrors_lookup_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698