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

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

Issue 2855323004: Infer VariableSet types. (Closed)
Patch Set: Created 3 years, 7 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
Index: pkg/front_end/lib/src/fasta/kernel/frontend_accessors.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/frontend_accessors.dart b/pkg/front_end/lib/src/fasta/kernel/frontend_accessors.dart
index 8b306a6c7ef3e8dafb06f13efd2829e532de62ef..51027e42dd3d9dfcbc2a9cfd5207052bdeb992d0 100644
--- a/pkg/front_end/lib/src/fasta/kernel/frontend_accessors.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/frontend_accessors.dart
@@ -173,7 +173,7 @@ abstract class VariableAccessor extends Accessor {
helper.typePromoter.mutateVariable(variable, helper.functionNestingLevel);
return variable.isFinal || variable.isConst
? makeInvalidWrite(value)
- : new VariableSet(variable, value)
+ : helper.astFactory.variableSet(variable, value)
..fileOffset = offsetForToken(token);
}
}

Powered by Google App Engine
This is Rietveld 408576698