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

Unified Diff: pkg/analysis_server/tool/spec/codegen_matchers.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/codegen_matchers.dart
diff --git a/pkg/analysis_server/tool/spec/codegen_matchers.dart b/pkg/analysis_server/tool/spec/codegen_matchers.dart
index fcf621cd928ac1afe7088e91522d1ff69deb6b3a..e0e644813ad50dbbb1176bc09cc99999b8bc1bfd 100644
--- a/pkg/analysis_server/tool/spec/codegen_matchers.dart
+++ b/pkg/analysis_server/tool/spec/codegen_matchers.dart
@@ -15,8 +15,8 @@ import 'from_html.dart';
import 'implied_types.dart';
import 'to_html.dart';
-final GeneratedFile target =
- new GeneratedFile('../../test/integration/protocol_matchers.dart', () {
+final GeneratedFile target = new GeneratedFile(
+ '../../test/integration/protocol_matchers.dart', () {
CodegenMatchersVisitor visitor = new CodegenMatchersVisitor(readApi());
return visitor.collectCode(visitor.visitApi);
});
@@ -162,8 +162,9 @@ class CodegenMatchersVisitor extends HierarchicalApiVisitor with CodeGenerator {
Iterable<TypeObjectField> requiredFields =
typeObject.fields.where((TypeObjectField field) => !field.optional);
outputObjectFields(requiredFields);
- List<TypeObjectField> optionalFields =
- typeObject.fields.where((TypeObjectField field) => field.optional).toList();
+ List<TypeObjectField> optionalFields = typeObject.fields
+ .where((TypeObjectField field) => field.optional)
+ .toList();
if (optionalFields.isNotEmpty) {
write(', optionalFields: ');
outputObjectFields(optionalFields);
« no previous file with comments | « pkg/analysis_server/tool/spec/codegen_java_types.dart ('k') | pkg/analysis_server/tool/spec/codegen_tools.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698