Skip to content

Commit dead15f

Browse files
committed
docs(clang): format updates
1 parent 457cc99 commit dead15f

File tree

5 files changed

+18
-17
lines changed

5 files changed

+18
-17
lines changed

modules/angular2/src/core/annotations_impl/annotations.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -705,7 +705,8 @@ export class Directive extends Injectable {
705705
/**
706706
* Specifies a set of lifecycle hostListeners in which the directive participates.
707707
*
708-
* See {@link annotations/onChange}, {@link annotations/onDestroy}, {@link annotations/onAllChangesDone} for details.
708+
* See {@link annotations/onChange}, {@link annotations/onDestroy}, {@link
709+
* annotations/onAllChangesDone} for details.
709710
*/
710711
lifecycle: List<LifecycleEvent>;
711712

modules/angular2/src/facade/lang.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ var _global: BrowserNodeGlobal = <any>(typeof window === 'undefined' ? global :
22
export {_global as global};
33

44
export var Type = Function;
5-
export type Type = new (...args: any[]) => any;
5+
export type Type = new (... args: any[]) => any;
66

77
export class BaseException extends Error {
88
message;
@@ -118,7 +118,7 @@ export class StringWrapper {
118118
}
119119

120120
static replaceAllMapped(s: string, from: RegExp, cb: Function): string {
121-
return s.replace(from, function(...matches) {
121+
return s.replace(from, function(... matches) {
122122
// Remove offset & string from the result array
123123
matches.splice(-2, 2);
124124
// The callback receives match, p1, ..., pn

modules/angular2/src/test_lib/test_bed.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,8 +78,8 @@ export class TestBed {
7878
* @return {Promise<ViewProxy>}
7979
*/
8080
createView(component: Type,
81-
{context = null, html = null}: {context?: any,
82-
html?: string} = {}): Promise<ViewProxy> {
81+
{context = null,
82+
html = null}: {context?: any, html?: string} = {}): Promise<ViewProxy> {
8383
if (isBlank(component) && isBlank(context)) {
8484
throw new BaseException('You must specified at least a component or a context');
8585
}

modules/angular2/src/test_lib/test_lib.ts

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -72,25 +72,25 @@ class BeforeEachRunner {
7272
// Reset the test bindings before each test
7373
jsmBeforeEach(() => { testBindings = []; });
7474

75-
function _describe(jsmFn, ...args) {
75+
function _describe(jsmFn, ... args) {
7676
var parentRunner = runnerStack.length === 0 ? null : runnerStack[runnerStack.length - 1];
7777
var runner = new BeforeEachRunner(parentRunner);
7878
runnerStack.push(runner);
79-
var suite = jsmFn(...args);
79+
var suite = jsmFn(... args);
8080
runnerStack.pop();
8181
return suite;
8282
}
8383

84-
export function describe(...args) {
85-
return _describe(jsmDescribe, ...args);
84+
export function describe(... args) {
85+
return _describe(jsmDescribe, ... args);
8686
}
8787

88-
export function ddescribe(...args) {
89-
return _describe(jsmDDescribe, ...args);
88+
export function ddescribe(... args) {
89+
return _describe(jsmDDescribe, ... args);
9090
}
9191

92-
export function xdescribe(...args) {
93-
return _describe(jsmXDescribe, ...args);
92+
export function xdescribe(... args) {
93+
return _describe(jsmXDescribe, ... args);
9494
}
9595

9696
export function beforeEach(fn) {
@@ -123,7 +123,7 @@ export function beforeEachBindings(fn) {
123123
jsmBeforeEach(() => {
124124
var bindings = fn();
125125
if (!bindings) return;
126-
testBindings = [...testBindings, ...bindings];
126+
testBindings = [... testBindings, ... bindings];
127127
});
128128
}
129129

@@ -142,7 +142,7 @@ function _it(jsmFn, name, fn) {
142142
return new AsyncTestCompleter(done);
143143
});
144144

145-
var injector = createTestInjector([...testBindings, completerBinding]);
145+
var injector = createTestInjector([... testBindings, completerBinding]);
146146
runner.run(injector);
147147

148148
if (!(fn instanceof FunctionWithParamTokens)) {

modules/angular2/src/util/decorators.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {global} from 'angular2/src/facade/lang';
22

33
export function makeDecorator(annotationCls) {
4-
return function(...args) {
4+
return function(... args) {
55
var Reflect = global.Reflect;
66
if (!(Reflect && Reflect.getMetadata)) {
77
throw 'reflect-metadata shim is required when using class decorators';
@@ -20,7 +20,7 @@ export function makeDecorator(annotationCls) {
2020
}
2121

2222
export function makeParamDecorator(annotationCls): any {
23-
return function(...args) {
23+
return function(... args) {
2424
var Reflect = global.Reflect;
2525
if (!(Reflect && Reflect.getMetadata)) {
2626
throw 'reflect-metadata shim is required when using parameter decorators';

0 commit comments

Comments
 (0)