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

Unified Diff: sdk/lib/_internal/compiler/implementation/tree/nodes.dart

Issue 12093019: Support type variables on redirecting factory constructors. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 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
Index: sdk/lib/_internal/compiler/implementation/tree/nodes.dart
diff --git a/sdk/lib/_internal/compiler/implementation/tree/nodes.dart b/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
index 9875b254ada47a304e593c6a2ae888ac3e16d92a..a67ee40a92243876757aae6d65e84588cbbe5338 100644
--- a/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
+++ b/sdk/lib/_internal/compiler/implementation/tree/nodes.dart
@@ -693,6 +693,11 @@ class FunctionExpression extends Expression {
accept(Visitor visitor) => visitor.visitFunctionExpression(this);
+ bool get isRedirectingFactory {
+ return body != null && body.asReturn() != null &&
+ body.asReturn().isRedirectingFactoryBody;
+ }
+
visitChildren(Visitor visitor) {
if (modifiers != null) modifiers.accept(visitor);
if (returnType != null) returnType.accept(visitor);

Powered by Google App Engine
This is Rietveld 408576698