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

Unified Diff: pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart

Issue 2718113003: Run dartfmt on pkg/front_end/lib. (Closed)
Patch Set: Rerun after merging. Created 3 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/front_end/lib/src/fasta/kernel/kernel_field_builder.dart
diff --git a/pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart b/pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart
index 120b411284a4e96e7afa4caf5d22da7ee63adc68..2f0cfd2bc194e99775c207bf95b13f4413e90e82 100644
--- a/pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart
+++ b/pkg/front_end/lib/src/fasta/kernel/kernel_field_builder.dart
@@ -4,17 +4,10 @@
library fasta.kernel_field_builder;
-import 'package:kernel/ast.dart' show
- Expression,
- Field,
- Library,
- Name;
-
-import 'kernel_builder.dart' show
- Builder,
- FieldBuilder,
- KernelTypeBuilder,
- MetadataBuilder;
+import 'package:kernel/ast.dart' show Expression, Field, Library, Name;
+
+import 'kernel_builder.dart'
+ show Builder, FieldBuilder, KernelTypeBuilder, MetadataBuilder;
class KernelFieldBuilder extends FieldBuilder<Expression> {
final Field field;
@@ -23,14 +16,12 @@ class KernelFieldBuilder extends FieldBuilder<Expression> {
KernelFieldBuilder(this.metadata, this.type, String name, int modifiers,
Builder compilationUnit, int charOffset)
- : field =
- new Field(null, fileUri: compilationUnit?.relativeFileUri)
- ..fileOffset = charOffset,
+ : field = new Field(null, fileUri: compilationUnit?.relativeFileUri)
+ ..fileOffset = charOffset,
super(name, modifiers, compilationUnit, charOffset);
void set initializer(Expression value) {
- field.initializer = value
- ..parent = field;
+ field.initializer = value..parent = field;
}
Field build(Library library) {
@@ -40,11 +31,11 @@ class KernelFieldBuilder extends FieldBuilder<Expression> {
}
bool isInstanceMember = !isStatic && !isTopLevel;
return field
- ..isFinal = isFinal
- ..isConst = isConst
- ..hasImplicitGetter = isInstanceMember
- ..hasImplicitSetter = isInstanceMember && !isConst && !isFinal
- ..isStatic = !isInstanceMember;
+ ..isFinal = isFinal
+ ..isConst = isConst
+ ..hasImplicitGetter = isInstanceMember
+ ..hasImplicitSetter = isInstanceMember && !isConst && !isFinal
+ ..isStatic = !isInstanceMember;
}
Field get target => field;

Powered by Google App Engine
This is Rietveld 408576698