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

Unified Diff: pkg/compiler/lib/src/use_unused_api.dart

Issue 1084573006: Refactor SourceMapBuilder to allow for post-processing. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Update comments. Created 5 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: pkg/compiler/lib/src/use_unused_api.dart
diff --git a/pkg/compiler/lib/src/use_unused_api.dart b/pkg/compiler/lib/src/use_unused_api.dart
index e0d910648b44f39fd917b3a118ebe6b65f3add31..e73491d91fd0475fa124fcc8e5119e45f82b978d 100644
--- a/pkg/compiler/lib/src/use_unused_api.dart
+++ b/pkg/compiler/lib/src/use_unused_api.dart
@@ -27,6 +27,7 @@ import 'filenames.dart' as filenames;
import 'inferrer/concrete_types_inferrer.dart' as concrete_types_inferrer;
import 'inferrer/type_graph_inferrer.dart' as type_graph_inferrer;
import 'io/code_output.dart' as io;
+import 'io/source_map_builder.dart' as io;
import 'js/js.dart' as js;
import 'js_backend/js_backend.dart' as js_backend;
import 'js_emitter/js_emitter.dart' as js_emitter;
@@ -65,7 +66,7 @@ void main(List<String> arguments) {
useColor();
useFilenames();
useSsa(null);
- useCodeBuffer(null);
+ useIo(null, null);
usedByTests();
useElements(null, null, null, null, null);
useIr(null, null);
@@ -212,7 +213,11 @@ useSsa(ssa.HInstruction instruction) {
new ssa.HStatementSequenceInformation(null);
}
-useCodeBuffer(io.CodeBuffer buffer) {
+useIo(io.CodeBuffer buffer, io.LineColumnMap map) {
+ map..addFirst(null, null, null)
+ ..forEachLine(null)
+ ..getFirstElementsInLine(null)
+ ..forEachColumn(null, null);
}
usedByTests() {

Powered by Google App Engine
This is Rietveld 408576698