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:
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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});
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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});
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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)});
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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});
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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)});
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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});
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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});
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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()));
|
||||
}
|
||||
|
Reference in New Issue
Block a user