Had to ask @munificent on this one, his answer:

 - function bodies are always indented 2 spaces from the previous line.
 - closing bracket of closures always line up from preceeding line.

so it'd look like:
```dart
gatherReferencedUris(transform, resolver, options, templatesOnly: true)
    .then((templates) {
  templates.values...;
}).then((_) {
  return _findHtmlEntry..;
}).then((htmlRefId) {
});
```