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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart

Issue 2955063003: Use correct URI for field inference. (Closed)
Patch Set: Created 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698