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

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

Issue 1400473008: Roll Observatory packages and add a roll script (Closed) Base URL: git@github.com:dart-lang/observatory_pub_packages.git@master
Patch Set: 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
« no previous file with comments | « initialize/lib/initialize.dart ('k') | initialize/lib/src/initialize_tracker.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // BSD-style license that can be found in the LICENSE file.
4 part of initialize;
5
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
8 /// it shouldn't be used directly in annotations, instead use the `initMethod`
9 /// singleton below.
10 typedef dynamic _ZeroArg();
11 class _InitMethod implements Initializer<_ZeroArg> {
12 const _InitMethod();
13
14 @override
15 initialize(_ZeroArg method) => method();
16 }
17
18 /// We only ever need one instance of the `_InitMethod` class, this is it.
19 const initMethod = const _InitMethod();
OLDNEW
« no previous file with comments | « initialize/lib/initialize.dart ('k') | initialize/lib/src/initialize_tracker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698