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

Side by Side Diff: packages/initialize/lib/src/init_method.dart

Issue 3014633002: Roll to pickup pool changes (Closed)
Patch Set: Created 3 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
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 part of initialize; 4 part of initialize;
5 5
6 /// Metadata used to label static or top-level methods that are called 6 /// Metadata used to label static or top-level methods that are called
7 /// automatically when calling static_init.run(). This class is private because 7 /// automatically when calling static_init.run(). This class is private because
8 /// it shouldn't be used directly in annotations, instead use the `initMethod` 8 /// it shouldn't be used directly in annotations, instead use the `initMethod`
9 /// singleton below. 9 /// singleton below.
10 typedef dynamic _ZeroArg(); 10 typedef dynamic _ZeroArg();
11
11 class _InitMethod implements Initializer<_ZeroArg> { 12 class _InitMethod implements Initializer<_ZeroArg> {
12 const _InitMethod(); 13 const _InitMethod();
13 14
14 @override 15 @override
15 initialize(_ZeroArg method) => method(); 16 initialize(_ZeroArg method) => method();
16 } 17 }
17 18
18 /// We only ever need one instance of the `_InitMethod` class, this is it. 19 /// We only ever need one instance of the `_InitMethod` class, this is it.
19 const initMethod = const _InitMethod(); 20 const initMethod = const _InitMethod();
OLDNEW
« no previous file with comments | « packages/initialize/lib/build/initializer_plugin.dart ('k') | packages/initialize/lib/src/initializer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698