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

Unified Diff: pkg/compiler/lib/src/io/source_map_builder.dart

Issue 3004713002: Remove use of Compiler in inferrer engines. (Closed)
Patch Set: Created 3 years, 4 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/inferrer/type_graph_nodes.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/io/source_map_builder.dart
diff --git a/pkg/compiler/lib/src/io/source_map_builder.dart b/pkg/compiler/lib/src/io/source_map_builder.dart
index 95f6c001c413c177fd8ac8e4c665d9ae4d77802c..ffb6423f7517a09705c657eec12e68166a7e2e44 100644
--- a/pkg/compiler/lib/src/io/source_map_builder.dart
+++ b/pkg/compiler/lib/src/io/source_map_builder.dart
@@ -5,7 +5,7 @@
library dart2js.source_map_builder;
import 'package:kernel/ast.dart' show Location;
-import '../../compiler_new.dart' show OutputSink, OutputType;
+import '../../compiler_new.dart' show CompilerOutput, OutputSink, OutputType;
import '../util/uri_extras.dart' show relativize;
import '../util/util.dart';
import 'location_provider.dart';
@@ -194,8 +194,7 @@ class SourceMapBuilder {
String name,
Uri sourceMapUri,
Uri fileUri,
- OutputSink outputProvider(
- String name, String extension, OutputType type)) {
+ CompilerOutput compilerOutput) {
// Create a source file for the compilation output. This allows using
// [:getLine:] to transform offsets to line numbers in [SourceMapBuilder].
int index = 0;
@@ -214,7 +213,7 @@ class SourceMapBuilder {
extension = 'js.map.${sourceLocations.name}';
}
}
- outputProvider(name, extension, OutputType.sourceMap)
+ compilerOutput.createOutputSink(name, extension, OutputType.sourceMap)
..add(sourceMap)
..close();
index++;
« no previous file with comments | « pkg/compiler/lib/src/inferrer/type_graph_nodes.dart ('k') | pkg/compiler/lib/src/js_backend/backend.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698