Chromium Code Reviews| Index: lib/src/codegen/ast_builder.dart |
| diff --git a/lib/src/codegen/ast_builder.dart b/lib/src/codegen/ast_builder.dart |
| index 5c4e6a1a536a99e402c6b6a7f130ab5ceb18ec1b..d955479aff22ba09956fcd7ab7d799a491c04f49 100644 |
| --- a/lib/src/codegen/ast_builder.dart |
| +++ b/lib/src/codegen/ast_builder.dart |
| @@ -429,7 +429,7 @@ class RawAstBuilder { |
| static Expression functionExpressionInvocation( |
| Expression function, ArgumentList es) { |
| - return new FunctionExpressionInvocation(function, es); |
| + return new FunctionExpressionInvocation(function, null, es); |
|
Jennifer Messerly
2015/07/09 17:03:29
the `null` is for generic type args \o/
|
| } |
| static FormalParameterList formalParameterList(List<FormalParameter> params) { |
| @@ -477,12 +477,12 @@ class RawAstBuilder { |
| {bool isStatic: false}) { |
| Token st = isStatic ? new KeywordToken(Keyword.STATIC, 0) : null; |
| return new MethodDeclaration( |
| - null, null, null, st, rt, null, null, m, fl, body); |
| + null, null, null, st, rt, null, null, m, null, fl, body); |
| } |
| static FunctionExpression functionExpression( |
| FormalParameterList fl, FunctionBody body) { |
| - return new FunctionExpression(fl, body); |
| + return new FunctionExpression(null, fl, body); |
| } |
| static FunctionDeclarationStatement functionDeclarationStatement( |
| @@ -502,7 +502,8 @@ class RawAstBuilder { |
| static FunctionTypedFormalParameter functionTypedFormalParameter( |
| TypeName ret, Identifier v, FormalParameterList ps) { |
| - return new FunctionTypedFormalParameter(null, <Annotation>[], ret, v, ps); |
| + return new FunctionTypedFormalParameter( |
| + null, <Annotation>[], ret, v, null, ps); |
| } |
| static FormalParameter requiredFormalParameter(NormalFormalParameter fp) { |