| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 part of dart2js_incremental; | 5 part of dart2js_incremental; |
| 6 | 6 |
| 7 /// Do not call this method directly. It will be made private. | 7 /// Do not call this method directly. It will be made private. |
| 8 // TODO(ahe): Make this method private. | 8 // TODO(ahe): Make this method private. |
| 9 Future<Compiler> reuseCompiler( | 9 Future<Compiler> reuseCompiler( |
| 10 {DiagnosticHandler diagnosticHandler, | 10 {DiagnosticHandler diagnosticHandler, |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 80 compiler.enqueuer.resolution, compiler.globalDependencies); | 80 compiler.enqueuer.resolution, compiler.globalDependencies); |
| 81 return compiler; | 81 return compiler; |
| 82 }); | 82 }); |
| 83 } else { | 83 } else { |
| 84 for (final task in compiler.tasks) { | 84 for (final task in compiler.tasks) { |
| 85 if (task.watch != null) { | 85 if (task.watch != null) { |
| 86 task.watch.reset(); | 86 task.watch.reset(); |
| 87 } | 87 } |
| 88 } | 88 } |
| 89 compiler | 89 compiler |
| 90 ..outputProvider = outputProvider | 90 ..userOutputProvider = outputProvider |
| 91 ..provider = inputProvider | 91 ..provider = inputProvider |
| 92 ..handler = diagnosticHandler | 92 ..handler = diagnosticHandler |
| 93 ..enqueuer.resolution.queueIsClosed = false | 93 ..enqueuer.resolution.queueIsClosed = false |
| 94 ..enqueuer.resolution.hasEnqueuedReflectiveElements = false | 94 ..enqueuer.resolution.hasEnqueuedReflectiveElements = false |
| 95 ..enqueuer.resolution.hasEnqueuedReflectiveStaticFields = false | 95 ..enqueuer.resolution.hasEnqueuedReflectiveStaticFields = false |
| 96 ..enqueuer.codegen.queueIsClosed = false | 96 ..enqueuer.codegen.queueIsClosed = false |
| 97 ..enqueuer.codegen.hasEnqueuedReflectiveElements = false | 97 ..enqueuer.codegen.hasEnqueuedReflectiveElements = false |
| 98 ..enqueuer.codegen.hasEnqueuedReflectiveStaticFields = false | 98 ..enqueuer.codegen.hasEnqueuedReflectiveStaticFields = false |
| 99 ..compilationFailed = false; | 99 ..compilationFailed = false; |
| 100 JavaScriptBackend backend = compiler.backend; | 100 JavaScriptBackend backend = compiler.backend; |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 200 final Map<String, String> output = new Map<String, String>(); | 200 final Map<String, String> output = new Map<String, String>(); |
| 201 | 201 |
| 202 EventSink<String> call(String name, String extension) { | 202 EventSink<String> call(String name, String extension) { |
| 203 return new StringEventSink((String data) { | 203 return new StringEventSink((String data) { |
| 204 output['$name.$extension'] = data; | 204 output['$name.$extension'] = data; |
| 205 }); | 205 }); |
| 206 } | 206 } |
| 207 | 207 |
| 208 String operator[] (String key) => output[key]; | 208 String operator[] (String key) => output[key]; |
| 209 } | 209 } |
| OLD | NEW |