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

Unified Diff: lib/src/codegen/ast_builder.dart

Issue 1266483003: format with dart_style 0.2.0-rc.3 (Closed) Base URL: git@github.com:dart-lang/dev_compiler.git@master
Patch Set: Created 5 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 | « lib/src/analysis_context.dart ('k') | lib/src/codegen/html_codegen.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/src/codegen/ast_builder.dart
diff --git a/lib/src/codegen/ast_builder.dart b/lib/src/codegen/ast_builder.dart
index 7090f2573db97a556f24865fdc96bf4bbe1fa629..85f6354deab26e24758b8c0b3c3351220a0a64d1 100644
--- a/lib/src/codegen/ast_builder.dart
+++ b/lib/src/codegen/ast_builder.dart
@@ -49,8 +49,10 @@ class AstBuilder {
return RawAstBuilder.typeName(id, argList);
}
- static FunctionTypeAlias functionTypeAlias(TypeName ret,
- SimpleIdentifier name, List<TypeParameter> tParams,
+ static FunctionTypeAlias functionTypeAlias(
+ TypeName ret,
+ SimpleIdentifier name,
+ List<TypeParameter> tParams,
List<FormalParameter> params) {
TypeParameterList tps =
(tParams.length == 0) ? null : typeParameterList(tParams);
@@ -251,17 +253,22 @@ class AstBuilder {
return RawAstBuilder.block(statements);
}
- static MethodDeclaration blockMethodDeclaration(TypeName rt,
- SimpleIdentifier m, List<FormalParameter> params,
- List<Statement> statements, {bool isStatic: false}) {
+ static MethodDeclaration blockMethodDeclaration(
+ TypeName rt,
+ SimpleIdentifier m,
+ List<FormalParameter> params,
+ List<Statement> statements,
+ {bool isStatic: false}) {
FormalParameterList fl = formalParameterList(params);
Block b = block(statements);
BlockFunctionBody body = RawAstBuilder.blockFunctionBody(b);
return RawAstBuilder.methodDeclaration(rt, m, fl, body, isStatic: isStatic);
}
- static FunctionDeclaration blockFunctionDeclaration(TypeName rt,
- SimpleIdentifier f, List<FormalParameter> params,
+ static FunctionDeclaration blockFunctionDeclaration(
+ TypeName rt,
+ SimpleIdentifier f,
+ List<FormalParameter> params,
List<Statement> statements) {
FunctionExpression fexp = blockFunction(params, statements);
return RawAstBuilder.functionDeclaration(rt, f, fexp);
@@ -276,7 +283,8 @@ class AstBuilder {
}
static FunctionExpression expressionFunction(
- List<FormalParameter> params, Expression body, [bool decl = false]) {
+ List<FormalParameter> params, Expression body,
+ [bool decl = false]) {
FormalParameterList fl = formalParameterList(params);
ExpressionFunctionBody b = RawAstBuilder.expressionFunctionBody(body, decl);
return RawAstBuilder.functionExpression(fl, b);
@@ -508,7 +516,8 @@ class RawAstBuilder {
}
static MethodDeclaration methodDeclaration(TypeName rt, SimpleIdentifier m,
- FormalParameterList fl, FunctionBody body, {bool isStatic: false}) {
+ FormalParameterList fl, FunctionBody body,
+ {bool isStatic: false}) {
Token st = isStatic ? new KeywordToken(Keyword.STATIC, 0) : null;
return new MethodDeclaration(
null, null, null, st, rt, null, null, m, null, fl, body);
« no previous file with comments | « lib/src/analysis_context.dart ('k') | lib/src/codegen/html_codegen.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698