| Index: pkg/compiler/lib/src/js_backend/codegen/task.dart
|
| diff --git a/pkg/compiler/lib/src/js_backend/codegen/task.dart b/pkg/compiler/lib/src/js_backend/codegen/task.dart
|
| index 25492d6962f93b95c8753f41012003b33e8dc34e..9ed2829ec069fccdb3105d29a79e8f5b79eb2b1e 100644
|
| --- a/pkg/compiler/lib/src/js_backend/codegen/task.dart
|
| +++ b/pkg/compiler/lib/src/js_backend/codegen/task.dart
|
| @@ -20,7 +20,7 @@ import '../../types/types.dart' show TypeMask, UnionTypeMask, FlatTypeMask,
|
| ForwardingTypeMask;
|
| import '../../elements/elements.dart';
|
| import '../../js/js.dart' as js;
|
| -import '../../io/source_information.dart' show SourceInformationFactory;
|
| +import '../../io/source_information.dart' show SourceInformationStrategy;
|
| import '../../tree_ir/tree_ir_builder.dart' as tree_builder;
|
| import '../../cps_ir/optimizers.dart';
|
| import '../../cps_ir/optimizers.dart' as cps_opt;
|
| @@ -36,7 +36,7 @@ class CpsFunctionCompiler implements FunctionCompiler {
|
| final ConstantSystem constantSystem;
|
| final Compiler compiler;
|
| final Glue glue;
|
| - final SourceInformationFactory sourceInformationFactory;
|
| + final SourceInformationStrategy sourceInformationFactory;
|
|
|
| // TODO(karlklose,sigurm): remove and update dart-doc of [compile].
|
| final FunctionCompiler fallbackCompiler;
|
| @@ -46,7 +46,7 @@ class CpsFunctionCompiler implements FunctionCompiler {
|
| IrBuilderTask get irBuilderTask => compiler.irBuilder;
|
|
|
| CpsFunctionCompiler(Compiler compiler, JavaScriptBackend backend,
|
| - SourceInformationFactory sourceInformationFactory)
|
| + SourceInformationStrategy sourceInformationFactory)
|
| : fallbackCompiler =
|
| new ssa.SsaFunctionCompiler(backend, sourceInformationFactory),
|
| this.sourceInformationFactory = sourceInformationFactory,
|
| @@ -234,7 +234,7 @@ class CpsFunctionCompiler implements FunctionCompiler {
|
|
|
| js.Node attachPosition(js.Node node, AstElement element) {
|
| return node.withSourceInformation(
|
| - sourceInformationFactory.forContext(element)
|
| + sourceInformationFactory.createBuilderForContext(element)
|
| .buildDeclaration(element));
|
| }
|
| }
|
|
|