Skip to content

Commit 365be6a

Browse files
committed
chore: clang-format after various changes.
1 parent 713e6d4 commit 365be6a

14 files changed

Lines changed: 183 additions & 200 deletions

File tree

modules/angular2/alt_router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ export {ROUTER_PROVIDERS} from './src/alt_router/router_providers';
1818
import {RouterOutlet} from './src/alt_router/directives/router_outlet';
1919
import {RouterLink} from './src/alt_router/directives/router_link';
2020

21-
export const ROUTER_DIRECTIVES: any[] = /*@ts2dart_const*/ [RouterOutlet, RouterLink];
21+
export const ROUTER_DIRECTIVES: any[] = /*@ts2dart_const*/[RouterOutlet, RouterLink];

modules/angular2/platform/browser.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ import {XHR} from 'angular2/compiler';
3838
/**
3939
* An array of providers that should be passed into `application()` when bootstrapping a component.
4040
*/
41-
export const BROWSER_APP_PROVIDERS: Array<any /*Type | Provider | any[]*/> = /*@ts2dart_const*/ [
41+
export const BROWSER_APP_PROVIDERS: Array<any /*Type | Provider | any[]*/> = /*@ts2dart_const*/[
4242
BROWSER_APP_COMMON_PROVIDERS,
4343
COMPILER_PROVIDERS,
44-
/*@ts2dart_Provider*/{provide: XHR, useClass: XHRImpl},
44+
/*@ts2dart_Provider*/ {provide: XHR, useClass: XHRImpl},
4545
];
4646

4747
export function browserPlatform(): PlatformRef {

modules/angular2/platform/testing/browser_static.ts

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -53,24 +53,24 @@ export const TEST_BROWSER_STATIC_PLATFORM_PROVIDERS: Array<any /*Type | Provider
5353
];
5454

5555
export const ADDITIONAL_TEST_BROWSER_PROVIDERS: Array<any /*Type | Provider | any[]*/> =
56-
/*@ts2dart_const*/ [
57-
/*@ts2dart_Provider*/{provide: APP_ID, useValue: 'a'},
56+
/*@ts2dart_const*/[
57+
/*@ts2dart_Provider*/ {provide: APP_ID, useValue: 'a'},
5858
ELEMENT_PROBE_PROVIDERS,
59-
/*@ts2dart_Provider*/{provide: DirectiveResolver, useClass: MockDirectiveResolver},
60-
/*@ts2dart_Provider*/{provide: ViewResolver, useClass: MockViewResolver},
59+
/*@ts2dart_Provider*/ {provide: DirectiveResolver, useClass: MockDirectiveResolver},
60+
/*@ts2dart_Provider*/ {provide: ViewResolver, useClass: MockViewResolver},
6161
Log,
6262
TestComponentBuilder,
63-
/*@ts2dart_Provider*/{provide: NgZone, useFactory: createNgZone},
64-
/*@ts2dart_Provider*/{provide: LocationStrategy, useClass: MockLocationStrategy},
65-
/*@ts2dart_Provider*/{provide: AnimationBuilder, useClass: MockAnimationBuilder},
63+
/*@ts2dart_Provider*/ {provide: NgZone, useFactory: createNgZone},
64+
/*@ts2dart_Provider*/ {provide: LocationStrategy, useClass: MockLocationStrategy},
65+
/*@ts2dart_Provider*/ {provide: AnimationBuilder, useClass: MockAnimationBuilder},
6666
];
6767

6868
/**
6969
* Default application providers for testing without a compiler.
7070
*/
7171
export const TEST_BROWSER_STATIC_APPLICATION_PROVIDERS: Array<any /*Type | Provider | any[]*/> =
72-
/*@ts2dart_const*/ [
72+
/*@ts2dart_const*/[
7373
BROWSER_APP_COMMON_PROVIDERS,
74-
/*@ts2dart_Provider*/{provide: XHR, useClass: XHRImpl},
74+
/*@ts2dart_Provider*/ {provide: XHR, useClass: XHRImpl},
7575
ADDITIONAL_TEST_BROWSER_PROVIDERS
7676
];

modules/angular2/src/compiler/compiler.ts

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -39,23 +39,24 @@ function _createCompilerConfig() {
3939
* A set of providers that provide `RuntimeCompiler` and its dependencies to use for
4040
* template compilation.
4141
*/
42-
export const COMPILER_PROVIDERS: Array<any | Type | {[k: string]: any} | any[]> = /*@ts2dart_const*/ [
43-
Lexer,
44-
Parser,
45-
HtmlParser,
46-
TemplateParser,
47-
DirectiveNormalizer,
48-
CompileMetadataResolver,
49-
DEFAULT_PACKAGE_URL_PROVIDER,
50-
StyleCompiler,
51-
ViewCompiler,
52-
/*@ts2dart_Provider*/{provide: CompilerConfig, useFactory: _createCompilerConfig, deps: []},
53-
RuntimeCompiler,
54-
/*@ts2dart_Provider*/{provide: ComponentResolver, useExisting: RuntimeCompiler},
55-
DomElementSchemaRegistry,
56-
/*@ts2dart_Provider*/{provide: ElementSchemaRegistry, useExisting: DomElementSchemaRegistry},
57-
UrlResolver,
58-
ViewResolver,
59-
DirectiveResolver,
60-
PipeResolver
61-
];
42+
export const COMPILER_PROVIDERS: Array<any | Type | {[k: string]: any} | any[]> =
43+
/*@ts2dart_const*/[
44+
Lexer,
45+
Parser,
46+
HtmlParser,
47+
TemplateParser,
48+
DirectiveNormalizer,
49+
CompileMetadataResolver,
50+
DEFAULT_PACKAGE_URL_PROVIDER,
51+
StyleCompiler,
52+
ViewCompiler,
53+
/*@ts2dart_Provider*/ {provide: CompilerConfig, useFactory: _createCompilerConfig, deps: []},
54+
RuntimeCompiler,
55+
/*@ts2dart_Provider*/ {provide: ComponentResolver, useExisting: RuntimeCompiler},
56+
DomElementSchemaRegistry,
57+
/*@ts2dart_Provider*/ {provide: ElementSchemaRegistry, useExisting: DomElementSchemaRegistry},
58+
UrlResolver,
59+
ViewResolver,
60+
DirectiveResolver,
61+
PipeResolver
62+
];

modules/angular2/src/core/application_ref.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -437,10 +437,8 @@ export class ApplicationRef_ extends ApplicationRef {
437437
export const PLATFORM_CORE_PROVIDERS =
438438
/*@ts2dart_const*/[
439439
PlatformRef_,
440-
/*@ts2dart_const*/ (/* @ts2dart_Provider */ {
441-
provide: PlatformRef,
442-
useExisting: PlatformRef_
443-
})
440+
/*@ts2dart_const*/ (
441+
/* @ts2dart_Provider */ {provide: PlatformRef, useExisting: PlatformRef_})
444442
];
445443

446444
/**

modules/angular2/src/core/linker/component_factory.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export class ComponentRef_ extends ComponentRef {
6969
onDestroy(callback: Function): void { this.hostView.onDestroy(callback); }
7070
}
7171

72-
const EMPTY_CONTEXT = /*@ts2dart_const*/new Object();
72+
const EMPTY_CONTEXT = /*@ts2dart_const*/ new Object();
7373

7474
/*@ts2dart_const*/
7575
export class ComponentFactory {

modules/angular2/src/platform/browser_common.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,10 @@ export const BROWSER_PLATFORM_MARKER =
5454
*
5555
* Used automatically by `bootstrap`, or can be passed to {@link platform}.
5656
*/
57-
export const BROWSER_PROVIDERS: Array<any /*Type | Provider | any[]*/> = /*@ts2dart_const*/ [
58-
/*@ts2dart_Provider*/{provide: BROWSER_PLATFORM_MARKER, useValue: true},
57+
export const BROWSER_PROVIDERS: Array<any /*Type | Provider | any[]*/> = /*@ts2dart_const*/[
58+
/*@ts2dart_Provider*/ {provide: BROWSER_PLATFORM_MARKER, useValue: true},
5959
PLATFORM_COMMON_PROVIDERS,
60-
/*@ts2dart_Provider*/{provide: PLATFORM_INITIALIZER, useValue: initDomAdapter, multi: true},
60+
/*@ts2dart_Provider*/ {provide: PLATFORM_INITIALIZER, useValue: initDomAdapter, multi: true},
6161
];
6262

6363
function _exceptionHandler(): ExceptionHandler {
@@ -99,7 +99,7 @@ export const BROWSER_APP_COMMON_PROVIDERS: Array<any /*Type | Provider | any[]*/
9999
];
100100

101101
export const CACHED_TEMPLATE_PROVIDER: Array<any /*Type | Provider | any[]*/> =
102-
/*@ts2dart_const*/ [/*@ts2dart_Provider*/{provide: XHR, useClass: CachedXHR}];
102+
/*@ts2dart_const*/[/*@ts2dart_Provider*/ {provide: XHR, useClass: CachedXHR}];
103103

104104
export function initDomAdapter() {
105105
BrowserDomAdapter.makeCurrent();

modules/angular2/src/platform/worker_app_common.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,8 @@ export const WORKER_APP_PLATFORM_MARKER =
3737
export const WORKER_APP_PLATFORM: Array<any /*Type | Provider | any[]*/> =
3838
/*@ts2dart_const*/[
3939
PLATFORM_COMMON_PROVIDERS,
40-
/*@ts2dart_const*/ (/* @ts2dart_Provider */ {
41-
provide: WORKER_APP_PLATFORM_MARKER,
42-
useValue: true
43-
})
40+
/*@ts2dart_const*/ (
41+
/* @ts2dart_Provider */ {provide: WORKER_APP_PLATFORM_MARKER, useValue: true})
4442
];
4543

4644
export const WORKER_APP_APPLICATION_COMMON: Array<any /*Type | Provider | any[]*/> =

modules/angular2/src/router/router_providers.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,8 @@ import {PlatformLocation} from 'angular2/platform/common';
3131
*/
3232
export const ROUTER_PROVIDERS: any[] = /*@ts2dart_const*/[
3333
ROUTER_PROVIDERS_COMMON,
34-
/*@ts2dart_const*/ (/* @ts2dart_Provider */ {
35-
provide: PlatformLocation,
36-
useClass: BrowserPlatformLocation
37-
}),
34+
/*@ts2dart_const*/ (
35+
/* @ts2dart_Provider */ {provide: PlatformLocation, useClass: BrowserPlatformLocation}),
3836
];
3937

4038
/**

0 commit comments

Comments
 (0)