style(dart): Format with dartfmt v0.2.0

Format all pure Dart code with package:dart_style v0.2.0

Command:
```
find -type f -name "*.dart" | xargs dartformat -w
```
This commit is contained in:
Tim Blasi
2015-08-04 12:05:30 -07:00
parent 450d3630cc
commit f11f4e0b45
145 changed files with 1627 additions and 1013 deletions

View File

@ -9,12 +9,20 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: 'goodbye-app', directives: const [alias1])
], const [const []], () => new HelloCmp()))
..registerType(GoodbyeCmp, new ReflectionInfo(const [
const Component(selector: 'goodbye-app'),
const View(template: 'Goodbye')
], const [const []], () => new GoodbyeCmp()));
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: 'goodbye-app', directives: const [alias1])
], const [
const []
], () => new HelloCmp()))
..registerType(
GoodbyeCmp,
new ReflectionInfo(const [
const Component(selector: 'goodbye-app'),
const View(template: 'Goodbye')
], const [
const []
], () => new GoodbyeCmp()));
}

View File

@ -9,12 +9,20 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: 'goodbye-app', directives: const [GoodbyeCmp])
], const [const []], () => new HelloCmp()))
..registerType(GoodbyeCmp, new ReflectionInfo(const [
const Component(selector: 'goodbye-app'),
const View(template: 'Goodbye')
], const [const []], () => new GoodbyeCmp()));
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: 'goodbye-app', directives: const [GoodbyeCmp])
], const [
const []
], () => new HelloCmp()))
..registerType(
GoodbyeCmp,
new ReflectionInfo(const [
const Component(selector: 'goodbye-app'),
const View(template: 'Goodbye')
], const [
const []
], () => new GoodbyeCmp()));
}

View File

@ -9,10 +9,14 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: '{{greeting}}, {{greeting}}')
], const [const []], () => new HelloCmp()))
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: '{{greeting}}, {{greeting}}')
], const [
const []
], () => new HelloCmp()))
..registerGetters({'greeting': (o) => o.greeting})
..registerSetters({'greeting': (o, v) => o.greeting = v});
}

View File

@ -9,8 +9,12 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: '{{greeting}}, {{greeting}}')
], const [const []], () => new HelloCmp()));
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: '{{greeting}}, {{greeting}}')
], const [
const []
], () => new HelloCmp()));
}

View File

@ -9,10 +9,14 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: '<div [a]="b">{{greeting}}</div>')
], const [const []], () => new HelloCmp()))
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: '<div [a]="b">{{greeting}}</div>')
], const [
const []
], () => new HelloCmp()))
..registerGetters({'b': (o) => o.b, 'greeting': (o) => o.greeting})
..registerSetters(
{'b': (o, v) => o.b = v, 'greeting': (o, v) => o.greeting = v});

View File

@ -9,8 +9,12 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: '<div [a]="b">{{greeting}}</div>')
], const [const []], () => new HelloCmp()));
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: '<div [a]="b">{{greeting}}</div>')
], const [
const []
], () => new HelloCmp()));
}

View File

@ -9,10 +9,14 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: '<button (click)=\"action()\">go</button>')
], const [const []], () => new HelloCmp()))
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: '<button (click)=\"action()\">go</button>')
], const [
const []
], () => new HelloCmp()))
..registerMethods(
{'action': (o, List args) => Function.apply(o.action, args)});
}

View File

@ -9,8 +9,12 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: '<button (click)=\"action()\">go</button>')
], const [const []], () => new HelloCmp()));
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: '<button (click)=\"action()\">go</button>')
], const [
const []
], () => new HelloCmp()));
}

View File

@ -9,10 +9,14 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(
template: '<li *ng-for="#thing of things"><div>test</div></li>',
directives: const [NgFor])
], const [const []], () => new HelloCmp()));
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(
template: '<li *ng-for="#thing of things"><div>test</div></li>',
directives: const [NgFor])
], const [
const []
], () => new HelloCmp()));
}

View File

@ -9,12 +9,20 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: 'goodbye-app', directives: const [GoodbyeCmp])
], const [const []], () => new HelloCmp()))
..registerType(GoodbyeCmp, new ReflectionInfo(const [
const Component(selector: 'goodbye-app'),
const View(template: 'Goodbye')
], const [const []], () => new GoodbyeCmp()));
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: 'goodbye-app', directives: const [GoodbyeCmp])
], const [
const []
], () => new HelloCmp()))
..registerType(
GoodbyeCmp,
new ReflectionInfo(const [
const Component(selector: 'goodbye-app'),
const View(template: 'Goodbye')
], const [
const []
], () => new GoodbyeCmp()));
}

View File

@ -9,12 +9,20 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: 'goodbye-app', directives: const [GoodbyeCmp])
], const [const []], () => new HelloCmp()))
..registerType(GoodbyeCmp, new ReflectionInfo(const [
const Component(selector: 'goodbye-app'),
const View(template: 'Goodbye')
], const [const []], () => new GoodbyeCmp()));
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: 'goodbye-app', directives: const [GoodbyeCmp])
], const [
const []
], () => new HelloCmp()))
..registerType(
GoodbyeCmp,
new ReflectionInfo(const [
const Component(selector: 'goodbye-app'),
const View(template: 'Goodbye')
], const [
const []
], () => new GoodbyeCmp()));
}

View File

@ -9,10 +9,14 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(templateUrl: 'template.html')
], const [const []], () => new HelloCmp()))
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(templateUrl: 'template.html')
], const [
const []
], () => new HelloCmp()))
..registerGetters({'greeting': (o) => o.greeting})
..registerSetters({'greeting': (o, v) => o.greeting = v});
}

View File

@ -9,8 +9,12 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(templateUrl: 'template.html')
], const [const []], () => new HelloCmp()));
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(templateUrl: 'template.html')
], const [
const []
], () => new HelloCmp()));
}

View File

@ -9,10 +9,14 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(templateUrl: 'template.html')
], const [const []], () => new HelloCmp()))
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(templateUrl: 'template.html')
], const [
const []
], () => new HelloCmp()))
..registerMethods(
{'action': (o, List args) => Function.apply(o.action, args)});
}

View File

@ -9,8 +9,12 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(templateUrl: 'template.html')
], const [const []], () => new HelloCmp()));
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(templateUrl: 'template.html')
], const [
const []
], () => new HelloCmp()));
}

View File

@ -9,10 +9,14 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(GoodbyeCmp, new ReflectionInfo(const [
const Component(selector: 'goodbye-app'),
const View(template: 'Goodbye {{name}}')
], const [const []], () => new GoodbyeCmp()))
..registerType(
GoodbyeCmp,
new ReflectionInfo(const [
const Component(selector: 'goodbye-app'),
const View(template: 'Goodbye {{name}}')
], const [
const []
], () => new GoodbyeCmp()))
..registerGetters({'name': (o) => o.name})
..registerSetters({'name': (o, v) => o.name = v});
}

View File

@ -11,9 +11,14 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: 'goodbye-app', directives: const [prefix.GoodbyeCmp])
], const [const []], () => new HelloCmp()));
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(
template: 'goodbye-app', directives: const [prefix.GoodbyeCmp])
], const [
const []
], () => new HelloCmp()));
i0.initReflector(reflector);
}

View File

@ -9,10 +9,14 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(MyApp, new ReflectionInfo(const [
const ng2.Component(selector: 'my-app'),
const ng2.View(template: 'MyApp {{name}}')
], const [const []], () => new MyApp()))
..registerType(
MyApp,
new ReflectionInfo(const [
const ng2.Component(selector: 'my-app'),
const ng2.View(template: 'MyApp {{name}}')
], const [
const []
], () => new MyApp()))
..registerGetters({'name': (o) => o.name})
..registerSetters({'name': (o, v) => o.name = v});
}

View File

@ -9,8 +9,12 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(GoodbyeCmp, new ReflectionInfo(const [
const Component(selector: 'goodbye-app'),
const View(template: 'Goodbye {{name}}')
], const [const []], () => new GoodbyeCmp()));
..registerType(
GoodbyeCmp,
new ReflectionInfo(const [
const Component(selector: 'goodbye-app'),
const View(template: 'Goodbye {{name}}')
], const [
const []
], () => new GoodbyeCmp()));
}

View File

@ -11,9 +11,14 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(HelloCmp, new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(template: 'goodbye-app', directives: const [prefix.GoodbyeCmp])
], const [const []], () => new HelloCmp()));
..registerType(
HelloCmp,
new ReflectionInfo(const [
const Component(selector: 'hello-app'),
const View(
template: 'goodbye-app', directives: const [prefix.GoodbyeCmp])
], const [
const []
], () => new HelloCmp()));
i0.initReflector(reflector);
}

View File

@ -9,8 +9,12 @@ void initReflector(reflector) {
if (_visited) return;
_visited = true;
reflector
..registerType(MyApp, new ReflectionInfo(const [
const ng2.Component(selector: 'my-app'),
const ng2.View(template: 'MyApp {{name}}')
], const [const []], () => new MyApp()));
..registerType(
MyApp,
new ReflectionInfo(const [
const ng2.Component(selector: 'my-app'),
const ng2.View(template: 'MyApp {{name}}')
], const [
const []
], () => new MyApp()));
}