style(dart): Run dartfmt v0.1.8+2 on all pure Dart code
Update formatting for all pure Dart code in the repo.
This commit is contained in:
@ -3,7 +3,8 @@ library angular2.application;
|
||||
import 'dart:async';
|
||||
|
||||
import 'package:angular2/src/reflection/reflection.dart' show reflector;
|
||||
import 'package:angular2/src/reflection/reflection_capabilities.dart' show ReflectionCapabilities;
|
||||
import 'package:angular2/src/reflection/reflection_capabilities.dart'
|
||||
show ReflectionCapabilities;
|
||||
import 'application_common.dart';
|
||||
|
||||
export 'application_common.dart' show ApplicationRef;
|
||||
|
@ -6,8 +6,7 @@ import 'application_common.dart';
|
||||
/// Starts an application from a root component.
|
||||
///
|
||||
/// See [commonBootstrap] for detailed documentation.
|
||||
Future<ApplicationRef> bootstrapStatic(
|
||||
Type appComponentType,
|
||||
Future<ApplicationRef> bootstrapStatic(Type appComponentType,
|
||||
[List componentInjectableBindings]) {
|
||||
return commonBootstrap(appComponentType, componentInjectableBindings);
|
||||
}
|
||||
|
@ -10,7 +10,8 @@ import './interface_query.dart';
|
||||
* In the future this class will implement an Observable interface.
|
||||
* For now it uses a plain list of observable callbacks.
|
||||
*/
|
||||
class QueryList<T> extends Object with IterableMixin<T> implements IQueryList<T> {
|
||||
class QueryList<T> extends Object with IterableMixin<T>
|
||||
implements IQueryList<T> {
|
||||
List<T> _results = [];
|
||||
List _callbacks = [];
|
||||
bool _dirty = false;
|
||||
|
@ -11,7 +11,6 @@ typedef void ErrorHandlingFn(error, stackTrace);
|
||||
* is cancelled.
|
||||
*/
|
||||
class WrappedTimer implements Timer {
|
||||
|
||||
Timer _timer;
|
||||
ZeroArgFunction _onCancelCb;
|
||||
|
||||
@ -124,7 +123,8 @@ class NgZone {
|
||||
*
|
||||
* This hook is useful for validating application state (e.g. in a test).
|
||||
*/
|
||||
void overrideOnEventDone(ZeroArgFunction onEventDoneFn, [bool waitForAsync = false]) {
|
||||
void overrideOnEventDone(ZeroArgFunction onEventDoneFn,
|
||||
[bool waitForAsync = false]) {
|
||||
_onEventDone = onEventDoneFn;
|
||||
|
||||
if (waitForAsync) {
|
||||
@ -264,7 +264,8 @@ class NgZone {
|
||||
}
|
||||
}
|
||||
|
||||
Timer _createTimer(Zone self, ZoneDelegate parent, Zone zone, Duration duration, fn()) {
|
||||
Timer _createTimer(
|
||||
Zone self, ZoneDelegate parent, Zone zone, Duration duration, fn()) {
|
||||
WrappedTimer wrappedTimer;
|
||||
var cb = () {
|
||||
fn();
|
||||
|
Reference in New Issue
Block a user