-
Notifications
You must be signed in to change notification settings - Fork 117
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tweak rules around functions in method chains.
Function expressions will not always break a method chain now. Instead, a method chain is allowed to contain a contiguous series of trailing function literals. If the functions don't fit that pattern, they all get indented within the chain. Fix #367. Fix #398. BUG= R=kevmoo@google.com Review URL: https://codereview.chromium.org//1435743002 .
- Loading branch information
1 parent
10ad66e
commit 137d29c
Showing
12 changed files
with
299 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
>>> (indent 6) | ||
identifier__ = identifier_____.identifier___ | ||
.transform(new StreamTransformer<TypeArg____, Type_>.fromHandlers( | ||
handleData: (TypeName___ arg__, EventSink<Type_> arg_) { | ||
; | ||
})) | ||
.asBroadcastStream(); | ||
<<< | ||
identifier__ = identifier_____.identifier___.transform( | ||
new StreamTransformer<TypeArg____, Type_>.fromHandlers( | ||
handleData: (TypeName___ arg__, EventSink<Type_> arg_) { | ||
; | ||
})).asBroadcastStream(); | ||
>>> (indent 4) | ||
_trigger | ||
.then(ut.expectAsync((result) { | ||
if (_deferExpectations == null || _deferExpectations == false) { | ||
body(result); | ||
} else { | ||
defer(ut.expectAsync(() => body(result))); | ||
} | ||
})) | ||
.catchError(ut.fail); | ||
<<< | ||
_trigger.then(ut.expectAsync((result) { | ||
if (_deferExpectations == null || _deferExpectations == false) { | ||
body(result); | ||
} else { | ||
defer(ut.expectAsync(() => body(result))); | ||
} | ||
})).catchError(ut.fail); |
Oops, something went wrong.