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 | 4 |
5 library dart2js.js_emitter.headers; | 5 library dart2js.js_emitter.headers; |
6 | 6 |
7 import '../compiler.dart' show Compiler; | 7 import '../compiler.dart' show Compiler; |
8 | 8 |
9 String generatedBy(Compiler compiler, {String flavor: ""}) { | 9 String generatedBy(Compiler compiler, {String flavor: ""}) { |
10 String suffix = ''; | 10 String suffix = ''; |
(...skipping 14 matching lines...) Expand all Loading... |
25 // dartMainRunner(main, args): | 25 // dartMainRunner(main, args): |
26 // if this function is defined, the Dart [main] method will not be invoked | 26 // if this function is defined, the Dart [main] method will not be invoked |
27 // directly. Instead, a closure that will invoke [main], and its arguments | 27 // directly. Instead, a closure that will invoke [main], and its arguments |
28 // [args] is passed to [dartMainRunner]. | 28 // [args] is passed to [dartMainRunner]. |
29 // | 29 // |
30 // dartDeferredLibraryLoader(uri, successCallback, errorCallback): | 30 // dartDeferredLibraryLoader(uri, successCallback, errorCallback): |
31 // if this function is defined, it will be called when a deferred library | 31 // if this function is defined, it will be called when a deferred library |
32 // is loaded. It should load and eval the javascript of `uri`, and call | 32 // is loaded. It should load and eval the javascript of `uri`, and call |
33 // successCallback. If it fails to do so, it should call errorCallback with | 33 // successCallback. If it fails to do so, it should call errorCallback with |
34 // an error. | 34 // an error. |
| 35 // |
| 36 // defaultPackagesBase: |
| 37 // Override the location where `package:` uris are resolved from. By default |
| 38 // they are resolved under "packages/" from the current window location. |
35 """; | 39 """; |
OLD | NEW |