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

Unified Diff: pkg/analysis_server/lib/src/utilities/change_builder_dart.dart

Issue 1310263003: Reformat code to minimize churn (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 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/analysis_server/lib/src/utilities/change_builder_dart.dart
diff --git a/pkg/analysis_server/lib/src/utilities/change_builder_dart.dart b/pkg/analysis_server/lib/src/utilities/change_builder_dart.dart
index e6b1de9efa4e9cdc6cbe65cda739476f363bfd58..14a2efc50e7f6ed41d8874c1289d90c190df6f03 100644
--- a/pkg/analysis_server/lib/src/utilities/change_builder_dart.dart
+++ b/pkg/analysis_server/lib/src/utilities/change_builder_dart.dart
@@ -58,9 +58,13 @@ class DartEditBuilderImpl extends EditBuilderImpl implements DartEditBuilder {
DartFileEditBuilderImpl get dartFileEditBuilder => fileEditBuilder;
@override
- void writeClassDeclaration(String name, {Iterable<DartType> interfaces,
- bool isAbstract: false, void memberWriter(), Iterable<DartType> mixins,
- String nameGroupName, DartType superclass}) {
+ void writeClassDeclaration(String name,
+ {Iterable<DartType> interfaces,
+ bool isAbstract: false,
+ void memberWriter(),
+ Iterable<DartType> mixins,
+ String nameGroupName,
+ DartType superclass}) {
// TODO(brianwilkerson) Add support for type parameters, probably as a
// parameterWriter parameter.
// TODO(brianwilkerson) Add a superclassGroupName parameter.
@@ -95,7 +99,8 @@ class DartEditBuilderImpl extends EditBuilderImpl implements DartEditBuilder {
//@override
void writeConstructorDeclaration(ClassElement classElement,
- {ArgumentList argumentList, SimpleIdentifier constructorName,
+ {ArgumentList argumentList,
+ SimpleIdentifier constructorName,
bool isConst: false}) {
// TODO(brianwilkerson) Clean up the API and add it to the public API.
//
@@ -134,9 +139,14 @@ class DartEditBuilderImpl extends EditBuilderImpl implements DartEditBuilder {
}
@override
- void writeFieldDeclaration(String name, {void initializerWriter(),
- bool isConst: false, bool isFinal: false, bool isStatic: false,
- String nameGroupName, DartType type, String typeGroupName}) {
+ void writeFieldDeclaration(String name,
+ {void initializerWriter(),
+ bool isConst: false,
+ bool isFinal: false,
+ bool isStatic: false,
+ String nameGroupName,
+ DartType type,
+ String typeGroupName}) {
if (isStatic) {
write(Keyword.STATIC.syntax);
write(' ');
@@ -170,8 +180,11 @@ class DartEditBuilderImpl extends EditBuilderImpl implements DartEditBuilder {
}
@override
- void writeGetterDeclaration(String name, {void bodyWriter(),
- bool isStatic: false, String nameGroupName, DartType returnType,
+ void writeGetterDeclaration(String name,
+ {void bodyWriter(),
+ bool isStatic: false,
+ String nameGroupName,
+ DartType returnType,
String returnTypeGroupName}) {
if (isStatic) {
write(Keyword.STATIC.syntax);
@@ -349,8 +362,10 @@ class DartEditBuilderImpl extends EditBuilderImpl implements DartEditBuilder {
}
@override
- bool writeType(DartType type, {bool addSupertypeProposals: false,
- String groupName, bool required: false}) {
+ bool writeType(DartType type,
+ {bool addSupertypeProposals: false,
+ String groupName,
+ bool required: false}) {
if (type != null && !type.isDynamic) {
String typeSource =
utils.getTypeSource(type, dartFileEditBuilder.librariesToImport);
« no previous file with comments | « pkg/analysis_server/lib/src/status/tree_writer.dart ('k') | pkg/analysis_server/lib/utilities/change_builder_dart.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698