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 10 matching lines...) Expand all Loading... |
21 // dartPrint(message): | 21 // dartPrint(message): |
22 // if this function is defined it is called instead of the Dart [print] | 22 // if this function is defined it is called instead of the Dart [print] |
23 // method. | 23 // method. |
24 // | 24 // |
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 deferered 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 """; | 35 """; |
OLD | NEW |