Index: pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart |
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart |
index f6fd589275d08f44d167d3742f9c3331f19fe73d..8627726534113ddfd8e61944f0d6b33fb00115a0 100644 |
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart |
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart |
@@ -86,8 +86,6 @@ class KernelFieldBuilder extends FieldBuilder<Expression> { |
if (isEligibleForInference) { |
var memberScope = |
currentClass == null ? library.scope : currentClass.scope; |
- // TODO(paulberry): Is it correct to pass library.uri into BodyBuilder, or |
- // should it be the part URI? |
var typeInferenceEngine = library.loader.typeInferenceEngine; |
var listener = new TypeInferenceListener(); |
var typeInferrer = typeInferenceEngine.createTopLevelTypeInferrer( |
@@ -102,7 +100,7 @@ class KernelFieldBuilder extends FieldBuilder<Expression> { |
typeInferenceEngine.coreTypes, |
currentClass, |
isInstanceMember, |
- library.uri, |
+ fileUri, |
typeInferrer); |
Parser parser = new Parser(bodyBuilder); |
Token token = parser.parseExpression(initializerTokenForInference); |