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

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

Issue 1196433002: Create and test source mapping for invocations. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Rebased Created 5 years, 6 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
« no previous file with comments | « pkg/compiler/lib/src/tree/prettyprint.dart ('k') | pkg/compiler/lib/src/util/indentation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 215bfa5b1b1d24f7c502dae7f59f0c26ed72b90f..492c00c113b7cf9a24a571f26a9c06aff31bb77d 100644
--- a/pkg/compiler/lib/src/use_unused_api.dart
+++ b/pkg/compiler/lib/src/use_unused_api.dart
@@ -26,7 +26,7 @@ import 'elements/visitor.dart' as elements_visitor;
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/line_column_provider.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;
@@ -65,7 +65,7 @@ void main(List<String> arguments) {
useColor();
useFilenames();
useSsa(null);
- useIo(null, null);
+ useIo();
usedByTests();
useElements();
useIr(null);
@@ -217,11 +217,13 @@ useSsa(ssa.HInstruction instruction) {
new ssa.HStatementSequenceInformation(null);
}
-useIo(io.CodeBuffer buffer, io.LineColumnMap map) {
+useIo([io.LineColumnMap map,
+ io.LineColumnProvider provider]) {
map..addFirst(null, null, null)
..forEachLine(null)
..getFirstElementsInLine(null)
..forEachColumn(null, null);
+ provider.getOffset(null, null);
}
usedByTests() {
@@ -232,6 +234,7 @@ usedByTests() {
compiler.currentlyInUserCode();
type_graph_inferrer.TypeGraphInferrer typeGraphInferrer = null;
source_file_provider.SourceFileProvider sourceFileProvider = null;
+ sourceFileProvider.getSourceFile(null);
world.hasAnyUserDefinedGetter(null, null);
typeGraphInferrer.getCallersOf(null);
dart_types.Types.sorted(null);
« no previous file with comments | « pkg/compiler/lib/src/tree/prettyprint.dart ('k') | pkg/compiler/lib/src/util/indentation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698