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

Unified Diff: pkg/analysis_server/tool/spec/api.dart

Issue 969113002: Reformat (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 10 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/tool/spec/api.dart
diff --git a/pkg/analysis_server/tool/spec/api.dart b/pkg/analysis_server/tool/spec/api.dart
index 070437ce7adb4d7bf3e964faabbc81cc5ad4e60d..a968bb1f41bf9ab4a12073523bcd4e20a418c916 100644
--- a/pkg/analysis_server/tool/spec/api.dart
+++ b/pkg/analysis_server/tool/spec/api.dart
@@ -140,8 +140,7 @@ class HierarchicalApiVisitor extends ApiVisitor {
typeEnum.values.forEach(visitTypeEnumValue);
}
- void visitTypeEnumValue(TypeEnumValue typeEnumValue) {
- }
+ void visitTypeEnumValue(TypeEnumValue typeEnumValue) {}
@override
void visitTypeList(TypeList typeList) {
@@ -164,8 +163,7 @@ class HierarchicalApiVisitor extends ApiVisitor {
}
@override
- void visitTypeReference(TypeReference typeReference) {
- }
+ void visitTypeReference(TypeReference typeReference) {}
void visitTypes(Types types) {
types.forEach(visitTypeDefinition);
@@ -211,11 +209,9 @@ class Notification extends ApiNode {
*/
TypeDecl get notificationType {
List<TypeObjectField> fields = [
- new TypeObjectField(
- 'event',
- new TypeReference('String', null),
- null,
- value: '$domainName.$event')];
+ new TypeObjectField('event', new TypeReference('String', null), null,
+ value: '$domainName.$event')
+ ];
if (params != null) {
fields.add(new TypeObjectField('params', params, null));
}
@@ -286,8 +282,8 @@ class Request extends ApiNode {
*/
final TypeObject result;
- Request(this.domainName, this.method, this.params, this.result,
- dom.Element html)
+ Request(
+ this.domainName, this.method, this.params, this.result, dom.Element html)
: super(html);
/**
@@ -301,12 +297,10 @@ class Request extends ApiNode {
*/
TypeDecl get requestType {
List<TypeObjectField> fields = [
- new TypeObjectField('id', new TypeReference('String', null), null),
- new TypeObjectField(
- 'method',
- new TypeReference('String', null),
- null,
- value: '$domainName.$method')];
+ new TypeObjectField('id', new TypeReference('String', null), null),
+ new TypeObjectField('method', new TypeReference('String', null), null,
+ value: '$domainName.$method')
+ ];
if (params != null) {
fields.add(new TypeObjectField('params', params, null));
}
@@ -319,12 +313,11 @@ class Request extends ApiNode {
*/
TypeDecl get responseType {
List<TypeObjectField> fields = [
- new TypeObjectField('id', new TypeReference('String', null), null),
- new TypeObjectField(
- 'error',
- new TypeReference('RequestError', null),
- null,
- optional: true)];
+ new TypeObjectField('id', new TypeReference('String', null), null),
+ new TypeObjectField(
+ 'error', new TypeReference('RequestError', null), null,
+ optional: true)
+ ];
if (result != null) {
fields.add(new TypeObjectField('result', result, null));
}
@@ -440,8 +433,8 @@ class TypeObjectField extends ApiNode {
*/
final Object value;
- TypeObjectField(this.name, this.type, dom.Element html, {this.optional: false,
- this.value})
+ TypeObjectField(this.name, this.type, dom.Element html,
+ {this.optional: false, this.value})
: super(html);
}
« no previous file with comments | « pkg/analysis_server/test/timing/timing_framework.dart ('k') | pkg/analysis_server/tool/spec/codegen_dart_protocol.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698