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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/elements.dart

Issue 14168003: Implement implicit constructors in mixin applications. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix an assert. Created 7 years, 8 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: sdk/lib/_internal/compiler/implementation/elements/elements.dart
diff --git a/sdk/lib/_internal/compiler/implementation/elements/elements.dart b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
index c0365963404fb2fbd2c12204f0d4eede2d1816a6..fc7321f32dff6391a07faf9e318c8502b59860ee 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/elements.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
@@ -229,6 +229,7 @@ abstract class Element implements Spannable {
bool get isImplementation;
bool get isDeclaration;
bool get isSynthesized;
+ bool get isForwardingConstructor;
Element get implementation;
Element get declaration;
@@ -246,6 +247,11 @@ abstract class Element implements Spannable {
void setFixedBackendName(String name);
Scope buildScope();
+
+ /// If the element is a forwarding constructor, [targetConstructor] holds
+ /// the generative constructor that the forwarding constructor points to
+ /// (possibly via other forwarding constructors).
+ FunctionElement get targetConstructor;
}
class Elements {

Powered by Google App Engine
This is Rietveld 408576698