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

Unified Diff: tests/compiler/dart2js/kernel/impact_test.dart

Issue 2644533002: Mostly use entities in use.dart (Closed)
Patch Set: Fixes Created 3 years, 11 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: tests/compiler/dart2js/kernel/impact_test.dart
diff --git a/tests/compiler/dart2js/kernel/impact_test.dart b/tests/compiler/dart2js/kernel/impact_test.dart
index 28487cde3a8e1cbe4ab1aa5be256f7ebe275746b..64e18a883c21a4fd486485d43bed569610e6b343 100644
--- a/tests/compiler/dart2js/kernel/impact_test.dart
+++ b/tests/compiler/dart2js/kernel/impact_test.dart
@@ -709,12 +709,14 @@ ResolutionImpact laxImpact(
ConstructorElement effectiveTarget = constructor.effectiveTarget;
ResolutionDartType effectiveTargetType =
constructor.computeEffectiveTargetType(staticUse.type);
+ ConstructorElement effectiveTargetDeclaration =
+ effectiveTarget.declaration;
builder.registerStaticUse(
staticUse.kind == StaticUseKind.CONST_CONSTRUCTOR_INVOKE
? new StaticUse.constConstructorInvoke(
- effectiveTarget.declaration, null, effectiveTargetType)
+ effectiveTargetDeclaration, null, effectiveTargetType)
: new StaticUse.typedConstructorInvoke(
- effectiveTarget.declaration, null, effectiveTargetType));
+ effectiveTargetDeclaration, null, effectiveTargetType));
break;
default:
builder.registerStaticUse(staticUse);
« pkg/compiler/lib/src/universe/use.dart ('K') | « pkg/compiler/lib/src/universe/use.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698