OLD | NEW |
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 library initialize.mirror_loader; | 4 library initialize.mirror_loader; |
5 | 5 |
6 import 'dart:collection' show Queue; | 6 import 'dart:collection' show Queue; |
7 import 'dart:mirrors'; | 7 import 'dart:mirrors'; |
8 import 'package:path/path.dart' as path; | 8 import 'package:path/path.dart' as path; |
9 import 'package:initialize/initialize.dart'; | 9 import 'package:initialize/initialize.dart'; |
10 | 10 |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 return true; | 252 return true; |
253 } | 253 } |
254 } | 254 } |
255 | 255 |
256 final _TOP_LEVEL_FUNCTIONS_ONLY = new UnsupportedError( | 256 final _TOP_LEVEL_FUNCTIONS_ONLY = new UnsupportedError( |
257 'Only top level methods are supported for initializers'); | 257 'Only top level methods are supported for initializers'); |
258 | 258 |
259 final _UNSUPPORTED_DECLARATION = new UnsupportedError( | 259 final _UNSUPPORTED_DECLARATION = new UnsupportedError( |
260 'Initializers are only supported on libraries, classes, and top level ' | 260 'Initializers are only supported on libraries, classes, and top level ' |
261 'methods'); | 261 'methods'); |
OLD | NEW |