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

Side by Side Diff: test_reflectable/test/meta_reflectors_domain_definer.dart

Issue 1391543003: Creates `reflectors`, as a meta-meta feature that enables dynamic selection of a "mirror system". (Closed) Base URL: https://github.com/dart-lang/reflectable.git@master
Patch Set: Added lots of LibraryMirror support in order to make reflectors work in transformed code 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 'reflectors_test.dart'.
7 //
8 // Independence: This library defines reflectors only, and it does not depend
9 // on the usage of reflection. It does depend on the domain classes, because
10 // it uses `A` as an upper bound in a superclass quantifier.
11
12 library test_reflectable.test.meta_reflectors_domain_definer;
13
14 import "package:reflectable/reflectable.dart";
15 import "meta_reflectors_domain.dart";
16
17 class ReflectorUpwardsClosedToA extends Reflectable {
18 const ReflectorUpwardsClosedToA()
19 : super(const SuperclassQuantifyCapability(A), invokingCapability,
20 declarationsCapability);
21 }
22
23 class ReflectorUpwardsClosedUntilA extends Reflectable {
24 const ReflectorUpwardsClosedUntilA()
25 : super(const SuperclassQuantifyCapability(A, excludeUpperBound: true),
26 invokingCapability, declarationsCapability);
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698