| Index: pkg/compiler/lib/src/js_backend/backend.dart
|
| diff --git a/pkg/compiler/lib/src/js_backend/backend.dart b/pkg/compiler/lib/src/js_backend/backend.dart
|
| index 2459b2ca624334040ac0a3f5d78a1ba2cb6678e3..d57e9a2a3e6372a29f937e3a4f79c5f0e5aedfae 100644
|
| --- a/pkg/compiler/lib/src/js_backend/backend.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/backend.dart
|
| @@ -2297,6 +2297,20 @@ class JavaScriptBackend extends Backend {
|
| // communicate with the spawning isolate.
|
| enqueuer.enableIsolateSupport();
|
| }
|
| +
|
| + /// Returns the filename for the output-unit named [name].
|
| + ///
|
| + /// The filename is of the form "<main output file>_<name>.part.js".
|
| + /// If [addExtension] is false, the ".part.js" suffix is left out.
|
| + String deferredPartFileName(String name, {bool addExtension: true}) {
|
| + assert(name != "");
|
| + String outPath = compiler.outputUri != null
|
| + ? compiler.outputUri.path
|
| + : "out";
|
| + String outName = outPath.substring(outPath.lastIndexOf('/') + 1);
|
| + String extension = addExtension ? ".part.js" : "";
|
| + return "${outName}_$name$extension";
|
| + }
|
| }
|
|
|
| class JavaScriptResolutionCallbacks extends ResolutionCallbacks {
|
|
|