refactor(dart): Run dartfmt 0.1.8

Format Dart code using dartfmt 0.1.8. Update pubspec to require
dart_style 0.1.8.
This commit is contained in:
Tim Blasi 2015-06-05 10:35:42 -07:00
parent 13d0815839
commit 851797aecb
4 changed files with 27 additions and 8 deletions

View File

@ -12,7 +12,7 @@ dependencies:
analyzer: '>=0.24.4 <0.26.0' analyzer: '>=0.24.4 <0.26.0'
barback: '^0.15.2+2' barback: '^0.15.2+2'
code_transformers: '^0.2.8' code_transformers: '^0.2.8'
dart_style: '^0.1.3' dart_style: '^0.1.8'
html: '^0.12.0' html: '^0.12.0'
logging: '>=0.9.0 <0.12.0' logging: '>=0.9.0 <0.12.0'
source_span: '^1.0.0' source_span: '^1.0.0'

View File

@ -1,2 +1,3 @@
library angular2.src.dom.parse5_adapter; library angular2.src.dom.parse5_adapter;
// no dart implementation
// no dart implementation

View File

@ -30,8 +30,18 @@ Function fakeAsync(Function fn) {
return new quiver.FakeAsync().run((quiver.FakeAsync async) { return new quiver.FakeAsync().run((quiver.FakeAsync async) {
try { try {
_fakeAsync = async; _fakeAsync = async;
List args = [a0, a1, a2, a3, a4, a5, a6, a7, a8, a9] List args = [
.takeWhile((a) => a != _u).toList(); a0,
a1,
a2,
a3,
a4,
a5,
a6,
a7,
a8,
a9
].takeWhile((a) => a != _u).toList();
var res = Function.apply(fn, args); var res = Function.apply(fn, args);
_fakeAsync.flushMicrotasks(); _fakeAsync.flushMicrotasks();

View File

@ -2,7 +2,17 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart'; import 'hello.dart';
import 'package:angular2/angular2.dart' import 'package:angular2/angular2.dart'
show bootstrap, Component, Directive, View, NgElement, onChange, onDestroy, onInit, onCheck, onAllChangesDone; show
bootstrap,
Component,
Directive,
View,
NgElement,
onChange,
onDestroy,
onInit,
onCheck,
onAllChangesDone;
var _visited = false; var _visited = false;
void initReflector(reflector) { void initReflector(reflector) {
@ -12,8 +22,6 @@ void initReflector(reflector) {
..registerType(HelloCmp, { ..registerType(HelloCmp, {
'factory': () => new HelloCmp(), 'factory': () => new HelloCmp(),
'parameters': const [const []], 'parameters': const [const []],
'annotations': const [ 'annotations': const [const Directive(exportAs: 'exportAsName')]
const Directive(exportAs: 'exportAsName')
]
}); });
} }