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

Unified Diff: pkg/compiler/lib/src/kernel/env.dart

Issue 2994333002: Various redemptions (Closed)
Patch Set: Fix + status updates 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
Index: pkg/compiler/lib/src/kernel/env.dart
diff --git a/pkg/compiler/lib/src/kernel/env.dart b/pkg/compiler/lib/src/kernel/env.dart
index af566a0e9ab129f98428fc2832a5e276d3a7b1c9..845feeec36a793d77bbc7996ca85053d0506bb97 100644
--- a/pkg/compiler/lib/src/kernel/env.dart
+++ b/pkg/compiler/lib/src/kernel/env.dart
@@ -563,11 +563,14 @@ class ConstructorDataImpl extends FunctionDataImpl implements ConstructorData {
}
abstract class FieldData extends MemberData {
+ DartType getFieldType(KernelToElementMap elementMap);
+
ConstantExpression getFieldConstant(
KernelToElementMapBase elementMap, FieldEntity field);
}
class FieldDataImpl extends MemberDataImpl implements FieldData {
+ DartType _type;
ConstantExpression _constant;
FieldDataImpl(ir.Field node, MemberDefinition definition)
@@ -575,6 +578,10 @@ class FieldDataImpl extends MemberDataImpl implements FieldData {
ir.Field get node => super.node;
+ DartType getFieldType(covariant KernelToElementMapBase elementMap) {
+ return _type ??= elementMap.getDartType(node.type);
+ }
+
ConstantExpression getFieldConstant(
KernelToElementMapBase elementMap, FieldEntity field) {
if (_constant == null) {
« no previous file with comments | « pkg/compiler/lib/src/kernel/element_map_impl.dart ('k') | pkg/compiler/lib/src/resolution/resolution_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698