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:
@ -25,7 +25,8 @@ void allTests() {
|
||||
expect(output).toEqual(expected);
|
||||
});
|
||||
|
||||
it('should generate a single setter when multiple annotations bind to the '
|
||||
it(
|
||||
'should generate a single setter when multiple annotations bind to the '
|
||||
'same property.', () async {
|
||||
var inputPath =
|
||||
'bind_generator/duplicate_bind_name_files/soup.ng_deps.dart';
|
||||
|
@ -8,8 +8,10 @@ void initReflector(reflector) {
|
||||
if (_visited) return;
|
||||
_visited = true;
|
||||
reflector
|
||||
..registerType(ToolTip, new ReflectionInfo(const [
|
||||
const Directive(
|
||||
selector: '[tool-tip]', properties: const ['text: tool-tip'])
|
||||
], const [], () => new ToolTip()));
|
||||
..registerType(
|
||||
ToolTip,
|
||||
new ReflectionInfo(const [
|
||||
const Directive(
|
||||
selector: '[tool-tip]', properties: const ['text: tool-tip'])
|
||||
], const [], () => new ToolTip()));
|
||||
}
|
||||
|
@ -8,9 +8,11 @@ void initReflector(reflector) {
|
||||
if (_visited) return;
|
||||
_visited = true;
|
||||
reflector
|
||||
..registerType(ToolTip, new ReflectionInfo(const [
|
||||
const Directive(
|
||||
selector: '[tool-tip]', properties: const ['text: tool-tip'])
|
||||
], const [], () => new ToolTip()))
|
||||
..registerType(
|
||||
ToolTip,
|
||||
new ReflectionInfo(const [
|
||||
const Directive(
|
||||
selector: '[tool-tip]', properties: const ['text: tool-tip'])
|
||||
], const [], () => new ToolTip()))
|
||||
..registerSetters({'text': (o, v) => o.text = v});
|
||||
}
|
||||
|
@ -8,12 +8,17 @@ void initReflector(reflector) {
|
||||
if (_visited) return;
|
||||
_visited = true;
|
||||
reflector
|
||||
..registerType(SoupComponent, new ReflectionInfo(const [
|
||||
const Component(
|
||||
componentServices: const [SaladComponent], properties: const ['menu'])
|
||||
], const [], () => new SoupComponent()))
|
||||
..registerType(SaladComponent, new ReflectionInfo(
|
||||
const [const Component(properties: const ['menu'])], const [],
|
||||
() => new SaladComponent()))
|
||||
..registerType(
|
||||
SoupComponent,
|
||||
new ReflectionInfo(const [
|
||||
const Component(
|
||||
componentServices: const [SaladComponent],
|
||||
properties: const ['menu'])
|
||||
], const [], () => new SoupComponent()))
|
||||
..registerType(
|
||||
SaladComponent,
|
||||
new ReflectionInfo(const [
|
||||
const Component(properties: const ['menu'])
|
||||
], const [], () => new SaladComponent()))
|
||||
..registerSetters({'menu': (o, v) => o.menu = v});
|
||||
}
|
||||
|
@ -8,11 +8,16 @@ void initReflector(reflector) {
|
||||
if (_visited) return;
|
||||
_visited = true;
|
||||
reflector
|
||||
..registerType(SoupComponent, new ReflectionInfo(const [
|
||||
const Component(
|
||||
componentServices: const [SaladComponent], properties: const ['menu'])
|
||||
], const [], () => new SoupComponent()))
|
||||
..registerType(SaladComponent, new ReflectionInfo(
|
||||
const [const Component(properties: const ['menu'])], const [],
|
||||
() => new SaladComponent()));
|
||||
..registerType(
|
||||
SoupComponent,
|
||||
new ReflectionInfo(const [
|
||||
const Component(
|
||||
componentServices: const [SaladComponent],
|
||||
properties: const ['menu'])
|
||||
], const [], () => new SoupComponent()))
|
||||
..registerType(
|
||||
SaladComponent,
|
||||
new ReflectionInfo(const [
|
||||
const Component(properties: const ['menu'])
|
||||
], const [], () => new SaladComponent()));
|
||||
}
|
||||
|
@ -8,8 +8,11 @@ void initReflector(reflector) {
|
||||
if (_visited) return;
|
||||
_visited = true;
|
||||
reflector
|
||||
..registerType(ToolTip, new ReflectionInfo(const [
|
||||
const Directive(
|
||||
selector: '[tool-tip]', events: const ['onOpen', 'close: onClose'])
|
||||
], const [], () => new ToolTip()));
|
||||
..registerType(
|
||||
ToolTip,
|
||||
new ReflectionInfo(const [
|
||||
const Directive(
|
||||
selector: '[tool-tip]',
|
||||
events: const ['onOpen', 'close: onClose'])
|
||||
], const [], () => new ToolTip()));
|
||||
}
|
||||
|
@ -8,9 +8,12 @@ void initReflector(reflector) {
|
||||
if (_visited) return;
|
||||
_visited = true;
|
||||
reflector
|
||||
..registerType(ToolTip, new ReflectionInfo(const [
|
||||
const Directive(
|
||||
selector: '[tool-tip]', events: const ['onOpen', 'close: onClose'])
|
||||
], const [], () => new ToolTip()))
|
||||
..registerType(
|
||||
ToolTip,
|
||||
new ReflectionInfo(const [
|
||||
const Directive(
|
||||
selector: '[tool-tip]',
|
||||
events: const ['onOpen', 'close: onClose'])
|
||||
], const [], () => new ToolTip()))
|
||||
..registerGetters({'onOpen': (o) => o.onOpen, 'close': (o) => o.close});
|
||||
}
|
||||
|
Reference in New Issue
Block a user