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

Unified Diff: test_reflectable/test/private_class_library.dart

Issue 1391013008: Adds limited support for private classes. (Closed) Base URL: https://github.com/dart-lang/reflectable.git@master
Patch Set: Improved on treatment of uri Created 5 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 | « test_reflectable/test/meta_reflectors_meta.dart ('k') | test_reflectable/test/private_class_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: test_reflectable/test/private_class_library.dart
diff --git a/test_reflectable/test/private_class_library.dart b/test_reflectable/test/private_class_library.dart
new file mode 100644
index 0000000000000000000000000000000000000000..1162a3ed38dc48bcccf344b27aea7db6a994c256
--- /dev/null
+++ b/test_reflectable/test/private_class_library.dart
@@ -0,0 +1,32 @@
+// Copyright (c) 2015, the Dart Team. All rights reserved. Use of this
+// source code is governed by a BSD-style license that can be found in
+// the LICENSE file.
+
+/// File being transformed by the reflectable transformer.
+/// Part of the entry point 'private_class_test.dart'.
+library test_reflectable.test.private_class_library;
+
+class PublicClass {
+ int publicMethod() => 42;
+}
+
+class _PrivateClass1 extends PublicClass {
+ int supposedlyPrivate() => -42;
+}
+
+class PublicSubclass1 extends _PrivateClass1 {}
+
+class _PrivateClass2 implements PublicClass {
+ int publicMethod() => 43;
+ int supposedlyPrivateToo() => -43;
+}
+
+class PublicSubclass2 extends _PrivateClass2 {}
+
+PublicClass func1() => new _PrivateClass1();
+
+PublicClass func2() => new _PrivateClass2();
+
+PublicClass func3() => new PublicSubclass1();
+
+PublicClass func4() => new PublicSubclass2();
« no previous file with comments | « test_reflectable/test/meta_reflectors_meta.dart ('k') | test_reflectable/test/private_class_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698