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

Unified Diff: pkg/compiler/lib/src/universe/use.dart

Issue 2968383002: Add ConstructorBodyEntity (Closed)
Patch Set: Created 3 years, 5 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/universe/use.dart
diff --git a/pkg/compiler/lib/src/universe/use.dart b/pkg/compiler/lib/src/universe/use.dart
index 9997717e6cdad8c28c7320363e4c28e3feb3a06d..e24fad42cb8e9803403b402cd0a07789c34cea94 100644
--- a/pkg/compiler/lib/src/universe/use.dart
+++ b/pkg/compiler/lib/src/universe/use.dart
@@ -20,7 +20,7 @@ import '../closure.dart' show BoxFieldElement;
import '../common.dart';
import '../constants/values.dart';
import '../elements/types.dart';
-import '../elements/elements.dart' show ConstructorBodyElement, Element;
+import '../elements/elements.dart' show Element;
import '../elements/entities.dart';
import '../util/util.dart' show Hashing;
import '../world.dart' show World;
@@ -246,7 +246,7 @@ class StaticUse {
/// Invocation of a constructor (body) [element] through a this or super
/// constructor call with the given [callStructure].
factory StaticUse.constructorBodyInvoke(
- ConstructorBodyElement element, CallStructure callStructure) {
+ FunctionEntity element, CallStructure callStructure) {
Siggi Cherem (dart-lang) 2017/07/07 20:00:25 why not ConsutrctorBodyEntity?
Johnni Winther 2017/07/10 14:11:34 Changed to ConstructorBodyEntity (when I started t
// TODO(johnniwinther): Use the [callStructure].
return new StaticUse.internal(element, StaticUseKind.GENERAL);
}

Powered by Google App Engine
This is Rietveld 408576698