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

Unified Diff: pkg/compiler/lib/src/elements/entities.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/elements/entities.dart
diff --git a/pkg/compiler/lib/src/elements/entities.dart b/pkg/compiler/lib/src/elements/entities.dart
index 5779cd8d5dd8f0c4491b723e2b20f9c7df967e6f..827ad5e0982f8d77c802e494eb4eafa35342252f 100644
--- a/pkg/compiler/lib/src/elements/entities.dart
+++ b/pkg/compiler/lib/src/elements/entities.dart
@@ -206,6 +206,15 @@ abstract class ConstructorEntity extends FunctionEntity {
bool get isFromEnvironmentConstructor;
}
+/// The constructor body for a [ConstructorEntity].
+///
+/// This is used only in the backend to split encoding of a Dart constructor
+/// into two JavaScript functions; the constructor and the constructor body.
+abstract class ConstructorBodyEntity extends FunctionEntity {
Siggi Cherem (dart-lang) 2017/07/07 20:00:25 +TODO or clarify that this entity shouldn't exist
Johnni Winther 2017/07/10 14:11:33 Done.
+ /// The constructor for which this constructor body was created.
+ ConstructorEntity get constructor;
+}
+
/// An entity that defines a local entity (memory slot) in generated code.
///
/// Parameters, local variables and local functions (can) define local entity

Powered by Google App Engine
This is Rietveld 408576698