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

Side by Side Diff: lib/mirrors_used.dart

Issue 1616953004: Fixed strong mode errors and warnings reachable from lib/observe.dart (Closed) Base URL: https://github.com/dart-lang/observe.git@master
Patch Set: Removed inferrable type param Created 4 years, 11 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
« no previous file with comments | « lib/html.dart ('k') | lib/src/bind_property.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 /// An empty library that declares what needs to be retained with [MirrorsUsed] 5 /// An empty library that declares what needs to be retained with [MirrorsUsed]
6 /// if you were to use observables together with mirrors. By default this is not 6 /// if you were to use observables together with mirrors. By default this is not
7 /// included because frameworks using this package also use code generation to 7 /// included because frameworks using this package also use code generation to
8 /// avoid using mirrors at deploy time. 8 /// avoid using mirrors at deploy time.
9 library observe.mirrors_used; 9 library observe.mirrors_used;
10 10
11 // Note: ObservableProperty is in this list only for the unusual use case of 11 // Note: ObservableProperty is in this list only for the unusual use case of
12 // invoking dart2js without running this package's transformers. The 12 // invoking dart2js without running this package's transformers. The
13 // transformer in `lib/transformer.dart` will replace @observable with the 13 // transformer in `lib/transformer.dart` will replace @observable with the
14 // @reflectable annotation. 14 // @reflectable annotation.
15 @MirrorsUsed(metaTargets: const [Reflectable, ObservableProperty], 15 @MirrorsUsed(
16 metaTargets: const [Reflectable, ObservableProperty],
16 override: 'smoke.mirrors') 17 override: 'smoke.mirrors')
17 import 'dart:mirrors' show MirrorsUsed; 18 import 'dart:mirrors' show MirrorsUsed;
18 import 'package:observe/observe.dart' show Reflectable, ObservableProperty; 19 import 'package:observe/observe.dart' show Reflectable, ObservableProperty;
OLDNEW
« no previous file with comments | « lib/html.dart ('k') | lib/src/bind_property.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698