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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart

Issue 2994973002: Implement type variables on local function declarations and expressions. (Closed)
Patch Set: Created 3 years, 4 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/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
index 34504be873d92bd2f9976615285546a56347b88e..7e8fd9126f660acd977adb6a42eccf29accfacc3 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_shadow_ast.dart
@@ -1357,8 +1357,8 @@ class KernelMethodInvocation extends MethodInvocation
///
/// let f = () { ... } in f
class KernelNamedFunctionExpression extends Let implements KernelExpression {
- KernelNamedFunctionExpression(VariableDeclaration variable, Expression body)
- : super(variable, body);
+ KernelNamedFunctionExpression(VariableDeclaration variable)
+ : super(variable, new VariableGet(variable));
@override
void _collectDependencies(KernelDependencyCollector collector) {

Powered by Google App Engine
This is Rietveld 408576698