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

Unified Diff: pkg/kernel/lib/frontend/accessors.dart

Issue 2820323005: Run formatter on a few frontend and kernel files that hadn't been formatted. (Closed)
Patch Set: Run formatter on a few frontend and kernel files that hadn't been formatted. Created 3 years, 8 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 | « pkg/kernel/lib/clone.dart ('k') | pkg/kernel/lib/transformations/closure/converter.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/kernel/lib/frontend/accessors.dart
diff --git a/pkg/kernel/lib/frontend/accessors.dart b/pkg/kernel/lib/frontend/accessors.dart
index 6f12387a33b0797b6f20458801da696b82aef226..0c15bc38b04e98c1ecc7e7dd2bb357f8e89be376 100644
--- a/pkg/kernel/lib/frontend/accessors.dart
+++ b/pkg/kernel/lib/frontend/accessors.dart
@@ -151,7 +151,8 @@ class VariableAccessor extends Accessor {
_makeWrite(Expression value, bool voidContext) {
return variable.isFinal || variable.isConst
? makeInvalidWrite(value)
- : new VariableSet(variable, value)..fileOffset = offset;
+ : new VariableSet(variable, value)
+ ..fileOffset = offset;
}
}
@@ -292,7 +293,8 @@ class IndexAccessor extends Accessor {
_makeSimpleWrite(Expression value, bool voidContext) {
if (!voidContext) return _makeWriteAndReturn(value);
return new MethodInvocation(receiver, indexSetName,
- new Arguments(<Expression>[index, value]), setter)..fileOffset = offset;
+ new Arguments(<Expression>[index, value]), setter)
+ ..fileOffset = offset;
}
receiverAccess() {
@@ -308,20 +310,16 @@ class IndexAccessor extends Accessor {
}
_makeRead() {
- return builtGetter = new MethodInvocation(
- receiverAccess(),
- indexGetName,
- new Arguments(<Expression>[indexAccess()]),
- getter)..fileOffset = offset;
+ return builtGetter = new MethodInvocation(receiverAccess(), indexGetName,
+ new Arguments(<Expression>[indexAccess()]), getter)
+ ..fileOffset = offset;
}
_makeWrite(Expression value, bool voidContext) {
if (!voidContext) return _makeWriteAndReturn(value);
- return new MethodInvocation(
- receiverAccess(),
- indexSetName,
- new Arguments(<Expression>[indexAccess(), value]),
- setter)..fileOffset = offset;
+ return new MethodInvocation(receiverAccess(), indexSetName,
+ new Arguments(<Expression>[indexAccess(), value]), setter)
+ ..fileOffset = offset;
}
// TODO(dmitryas): remove this method after the "[]=" operator of the Context
@@ -335,7 +333,8 @@ class IndexAccessor extends Accessor {
indexSetName,
new Arguments(
<Expression>[indexAccess(), new VariableGet(valueVariable)]),
- setter)..fileOffset = offset);
+ setter)
+ ..fileOffset = offset);
return makeLet(
valueVariable, makeLet(dummy, new VariableGet(valueVariable)));
}
@@ -450,14 +449,15 @@ class StaticAccessor extends Accessor {
StaticAccessor(this.readTarget, this.writeTarget, int offset) : super(offset);
- _makeRead() => builtGetter = readTarget == null
- ? makeInvalidRead()
- : new StaticGet(readTarget)..fileOffset = offset;
+ _makeRead() => builtGetter =
+ readTarget == null ? makeInvalidRead() : new StaticGet(readTarget)
+ ..fileOffset = offset;
_makeWrite(Expression value, bool voidContext) {
return writeTarget == null
? makeInvalidWrite(value)
- : new StaticSet(writeTarget, value)..fileOffset = offset;
+ : new StaticSet(writeTarget, value)
+ ..fileOffset = offset;
}
}
« no previous file with comments | « pkg/kernel/lib/clone.dart ('k') | pkg/kernel/lib/transformations/closure/converter.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698