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

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

Issue 2661873002: Introduce ConstructorEntity (Closed)
Patch Set: Updated cf. comment 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
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_impact.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0595e8d4962d3218522e2eb3a4be36fe778d9865..197a622fa866959a84e81a5a2d05f64d3cd4e6d6 100644
--- a/pkg/compiler/lib/src/universe/use.dart
+++ b/pkg/compiler/lib/src/universe/use.dart
@@ -21,7 +21,6 @@ import '../common.dart';
import '../elements/types.dart';
import '../elements/elements.dart'
show
- ConstructorElement,
ConstructorBodyElement,
Element,
Entity,
@@ -204,7 +203,7 @@ class StaticUse {
/// Invocation of a constructor [element] through a this or super
/// constructor call with the given [callStructure].
factory StaticUse.superConstructorInvoke(
- ConstructorElement element, CallStructure callStructure) {
+ ConstructorEntity element, CallStructure callStructure) {
// TODO(johnniwinther): Use the [callStructure].
assert(invariant(element, element.isGenerativeConstructor,
message: "Constructor invoke element $element must be a "
@@ -251,7 +250,7 @@ class StaticUse {
/// Constructor invocation of [element] with the given [callStructure].
factory StaticUse.constructorInvoke(
- FunctionEntity element, CallStructure callStructure) {
+ ConstructorEntity element, CallStructure callStructure) {
assert(invariant(element, element.isConstructor,
message: "Constructor invocation element $element "
"must be a constructor."));
@@ -262,7 +261,7 @@ class StaticUse {
/// Constructor invocation of [element] with the given [callStructure] on
/// [type].
factory StaticUse.typedConstructorInvoke(
- FunctionEntity element, CallStructure callStructure, DartType type) {
+ ConstructorEntity element, CallStructure callStructure, DartType type) {
assert(invariant(element, type != null,
message: "No type provided for constructor invocation."));
assert(invariant(element, element.isConstructor,
@@ -276,7 +275,7 @@ class StaticUse {
/// Constant constructor invocation of [element] with the given
/// [callStructure] on [type].
factory StaticUse.constConstructorInvoke(
- FunctionEntity element, CallStructure callStructure, DartType type) {
+ ConstructorEntity element, CallStructure callStructure, DartType type) {
assert(invariant(element, type != null,
message: "No type provided for constructor invocation."));
assert(invariant(element, element.isConstructor,
@@ -289,7 +288,7 @@ class StaticUse {
/// Constructor redirection to [element] on [type].
factory StaticUse.constructorRedirect(
- FunctionEntity element, InterfaceType type) {
+ ConstructorEntity element, InterfaceType type) {
assert(invariant(element, type != null,
message: "No type provided for constructor redirection."));
assert(invariant(element, element.isConstructor,
« no previous file with comments | « pkg/compiler/lib/src/ssa/kernel_impact.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698