Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Side by Side Diff: pkg/compiler/lib/src/io/code_output.dart

Issue 893963005: Refactor handling of source map information. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated cf. comments. Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « pkg/compiler/lib/src/dart2jslib.dart ('k') | pkg/compiler/lib/src/io/source_information.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/dart2jslib.dart ('k') | pkg/compiler/lib/src/io/source_information.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698