| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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.code_output; | 5 library dart2js.code_output; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'source_map_builder.dart'; | 9 import 'source_information.dart'; |
| 10 | 10 |
| 11 class CodeOutputMarker { | 11 class CodeOutputMarker { |
| 12 final int offsetDelta; | 12 final int offsetDelta; |
| 13 final SourceFileLocation sourcePosition; | 13 final SourceFileLocation sourcePosition; |
| 14 | 14 |
| 15 CodeOutputMarker(this.offsetDelta, this.sourcePosition); | 15 CodeOutputMarker(this.offsetDelta, this.sourcePosition); |
| 16 } | 16 } |
| 17 | 17 |
| 18 abstract class CodeOutputListener { | 18 abstract class CodeOutputListener { |
| 19 void onText(String text); | 19 void onText(String text); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 } | 155 } |
| 156 | 156 |
| 157 void close() { | 157 void close() { |
| 158 output.close(); | 158 output.close(); |
| 159 super.close(); | 159 super.close(); |
| 160 if (_listeners != null) { | 160 if (_listeners != null) { |
| 161 _listeners.forEach((listener) => listener.onDone(length)); | 161 _listeners.forEach((listener) => listener.onDone(length)); |
| 162 } | 162 } |
| 163 } | 163 } |
| 164 } | 164 } |
| OLD | NEW |