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

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

Issue 2968383002: Add ConstructorBodyEntity (Closed)
Patch Set: Skip non-live constructor bodies 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
« no previous file with comments | « pkg/compiler/lib/src/kernel/env.dart ('k') | pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/kernel/kelements.dart
diff --git a/pkg/compiler/lib/src/kernel/kelements.dart b/pkg/compiler/lib/src/kernel/kelements.dart
index 8d968e4b06803a26979c6852ea87e4532bd57381..bba1b739f6134785effc08375c9c8b7267f3842b 100644
--- a/pkg/compiler/lib/src/kernel/kelements.dart
+++ b/pkg/compiler/lib/src/kernel/kelements.dart
@@ -164,6 +164,26 @@ class KFactoryConstructor extends KConstructor {
bool get isGenerativeConstructor => false;
}
+class KConstructorBody extends KFunction implements ConstructorBodyEntity {
+ final ConstructorEntity constructor;
+
+ KConstructorBody(int memberIndex, this.constructor)
+ : super(
+ memberIndex,
+ constructor.library,
+ constructor.enclosingClass,
+ constructor.memberName,
+ constructor.parameterStructure,
+ AsyncMarker.SYNC,
+ isStatic: false,
+ isExternal: false);
+
+ @override
+ bool get isFunction => true;
+
+ String get _kind => 'constructor_body';
+}
+
class KMethod extends KFunction {
final bool isAbstract;
« no previous file with comments | « pkg/compiler/lib/src/kernel/env.dart ('k') | pkg/compiler/lib/src/kernel/kernel_backend_strategy.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698