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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2015, the Dart Team. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in
3 // the LICENSE file.
4
5 /// File being transformed by the reflectable transformer.
6 /// Part of the entry point 'private_class_test.dart'.
7 library test_reflectable.test.private_class_library;
8
9 class PublicClass {
10 int publicMethod() => 42;
11 }
12
13 class _PrivateClass1 extends PublicClass {
14 int supposedlyPrivate() => -42;
15 }
16
17 class PublicSubclass1 extends _PrivateClass1 {}
18
19 class _PrivateClass2 implements PublicClass {
20 int publicMethod() => 43;
21 int supposedlyPrivateToo() => -43;
22 }
23
24 class PublicSubclass2 extends _PrivateClass2 {}
25
26 PublicClass func1() => new _PrivateClass1();
27
28 PublicClass func2() => new _PrivateClass2();
29
30 PublicClass func3() => new PublicSubclass1();
31
32 PublicClass func4() => new PublicSubclass2();
OLDNEW
« 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