chore: router move import changes

This commit is contained in:
Misko Hevery
2016-05-02 10:36:58 -07:00
committed by Igor Minar
parent d930ad1816
commit 107016ec12
74 changed files with 428 additions and 238 deletions

View File

@ -125,9 +125,9 @@ export class ReflectionCapabilities implements PlatformReflectionCapabilities {
// API of tsickle for lowering decorators to properties on the class.
if (isPresent((<any>typeOrFunc).ctorParameters)) {
let ctorParameters = (<any>typeOrFunc).ctorParameters;
let paramTypes = ctorParameters.map( ctorParam => ctorParam && ctorParam.type );
let paramAnnotations = ctorParameters.map( ctorParam =>
ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators) );
let paramTypes = ctorParameters.map(ctorParam => ctorParam && ctorParam.type);
let paramAnnotations = ctorParameters.map(
ctorParam => ctorParam && convertTsickleDecoratorIntoMetadata(ctorParam.decorators));
return this._zipTypesAndAnnotations(paramTypes, paramAnnotations);
}
@ -182,9 +182,10 @@ export class ReflectionCapabilities implements PlatformReflectionCapabilities {
if (isPresent((<any>typeOrFunc).propDecorators)) {
let propDecorators = (<any>typeOrFunc).propDecorators;
let propMetadata = <{[key: string]: any[]}>{};
Object.keys(propDecorators).forEach( prop => {
propMetadata[prop] = convertTsickleDecoratorIntoMetadata(propDecorators[prop]);
});
Object.keys(propDecorators)
.forEach(prop => {
propMetadata[prop] = convertTsickleDecoratorIntoMetadata(propDecorators[prop]);
});
return propMetadata;
}
@ -220,7 +221,7 @@ function convertTsickleDecoratorIntoMetadata(decoratorInvocations: any[]): any[]
if (!decoratorInvocations) {
return [];
}
return decoratorInvocations.map( decoratorInvocation => {
return decoratorInvocations.map(decoratorInvocation => {
var decoratorType = decoratorInvocation.type;
var annotationCls = decoratorType.annotationCls;
var annotationArgs = decoratorInvocation.args ? decoratorInvocation.args : [];