chore: reformat the code base using the clang-format 1.0.15.
This commit is contained in:
parent
96f629d441
commit
2c25055828
|
@ -752,16 +752,8 @@ export class Directive extends Injectable {
|
|||
hostInjector: List<any>;
|
||||
|
||||
constructor({
|
||||
selector,
|
||||
properties,
|
||||
events,
|
||||
hostListeners,
|
||||
hostProperties,
|
||||
hostAttributes,
|
||||
hostActions,
|
||||
lifecycle,
|
||||
hostInjector,
|
||||
compileChildren = true,
|
||||
selector, properties, events, hostListeners, hostProperties, hostAttributes,
|
||||
hostActions, lifecycle, hostInjector, compileChildren = true,
|
||||
}: {
|
||||
selector?: string,
|
||||
properties?: any,
|
||||
|
@ -773,8 +765,7 @@ export class Directive extends Injectable {
|
|||
lifecycle?: List<LifecycleEvent>,
|
||||
hostInjector?: List<any>,
|
||||
compileChildren?: boolean
|
||||
}={})
|
||||
{
|
||||
} = {}) {
|
||||
super();
|
||||
this.selector = selector;
|
||||
this.properties = properties;
|
||||
|
@ -995,21 +986,9 @@ export class Component extends Directive {
|
|||
*/
|
||||
viewInjector: List<any>;
|
||||
|
||||
constructor({
|
||||
selector,
|
||||
properties,
|
||||
events,
|
||||
hostListeners,
|
||||
hostProperties,
|
||||
hostAttributes,
|
||||
hostActions,
|
||||
appInjector,
|
||||
lifecycle,
|
||||
hostInjector,
|
||||
viewInjector,
|
||||
changeDetection = DEFAULT,
|
||||
compileChildren = true
|
||||
}:{
|
||||
constructor({selector, properties, events, hostListeners, hostProperties, hostAttributes,
|
||||
hostActions, appInjector, lifecycle, hostInjector, viewInjector,
|
||||
changeDetection = DEFAULT, compileChildren = true}: {
|
||||
selector?: string,
|
||||
properties?: Object,
|
||||
events?: List<string>,
|
||||
|
@ -1023,8 +1002,7 @@ export class Component extends Directive {
|
|||
viewInjector?: List<any>,
|
||||
changeDetection?: string,
|
||||
compileChildren?: boolean
|
||||
}={})
|
||||
{
|
||||
} = {}) {
|
||||
super({
|
||||
selector: selector,
|
||||
properties: properties,
|
||||
|
|
|
@ -84,18 +84,12 @@ export class View {
|
|||
*/
|
||||
renderer: string;
|
||||
|
||||
constructor({
|
||||
templateUrl,
|
||||
template,
|
||||
directives,
|
||||
renderer
|
||||
}: {
|
||||
constructor({templateUrl, template, directives, renderer}: {
|
||||
templateUrl?: string,
|
||||
template?: string,
|
||||
directives?: List<Type | any | List<any>>,
|
||||
renderer?: string
|
||||
} = {})
|
||||
{
|
||||
} = {}) {
|
||||
this.templateUrl = templateUrl;
|
||||
this.template = template;
|
||||
this.directives = directives;
|
||||
|
|
|
@ -196,8 +196,13 @@ export class Binding {
|
|||
dependencies: List<any>;
|
||||
|
||||
constructor(token, {toClass, toValue, toAlias, toFactory, toAsyncFactory, deps}: {
|
||||
toClass ?: Type, toValue ?: any, toAlias ?: any, toFactory ?: Function,
|
||||
toAsyncFactory ?: Function, deps ?: List<any>}) {
|
||||
toClass?: Type,
|
||||
toValue?: any,
|
||||
toAlias?: any,
|
||||
toFactory?: Function,
|
||||
toAsyncFactory?: Function,
|
||||
deps?: List<any>
|
||||
}) {
|
||||
this.token = token;
|
||||
this.toClass = toClass;
|
||||
this.toValue = toValue;
|
||||
|
|
|
@ -44,17 +44,19 @@ export class ElementBinder {
|
|||
textBindings: List<ASTWithSource>;
|
||||
readAttributes: Map<string, string>;
|
||||
|
||||
constructor({
|
||||
index, parentIndex, distanceToParent,
|
||||
directives, nestedProtoView,
|
||||
propertyBindings, variableBindings,
|
||||
eventBindings, textBindings,
|
||||
readAttributes
|
||||
}:{index?:number, parentIndex?:number, distanceToParent?:number,
|
||||
directives?:List<DirectiveBinder>, nestedProtoView?:ProtoViewDto,
|
||||
propertyBindings?:Map<string, ASTWithSource>, variableBindings?:Map<string, ASTWithSource>,
|
||||
eventBindings?:List<EventBinding>, textBindings?:List<ASTWithSource>,
|
||||
readAttributes?:Map<string, string>}={}) {
|
||||
constructor({index, parentIndex, distanceToParent, directives, nestedProtoView, propertyBindings,
|
||||
variableBindings, eventBindings, textBindings, readAttributes}: {
|
||||
index?: number,
|
||||
parentIndex?: number,
|
||||
distanceToParent?: number,
|
||||
directives?: List<DirectiveBinder>,
|
||||
nestedProtoView?: ProtoViewDto,
|
||||
propertyBindings?: Map<string, ASTWithSource>,
|
||||
variableBindings?: Map<string, ASTWithSource>,
|
||||
eventBindings?: List<EventBinding>,
|
||||
textBindings?: List<ASTWithSource>,
|
||||
readAttributes?: Map<string, string>
|
||||
} = {}) {
|
||||
this.index = index;
|
||||
this.parentIndex = parentIndex;
|
||||
this.distanceToParent = distanceToParent;
|
||||
|
@ -77,11 +79,11 @@ export class DirectiveBinder {
|
|||
// with a local name
|
||||
eventBindings: List<EventBinding>;
|
||||
hostPropertyBindings: Map<string, ASTWithSource>;
|
||||
constructor({
|
||||
directiveIndex, propertyBindings, eventBindings, hostPropertyBindings
|
||||
}:{
|
||||
directiveIndex?:number, propertyBindings?:Map<string, ASTWithSource>,
|
||||
eventBindings?:List<EventBinding>, hostPropertyBindings?:Map<string, ASTWithSource>
|
||||
constructor({directiveIndex, propertyBindings, eventBindings, hostPropertyBindings}: {
|
||||
directiveIndex?: number,
|
||||
propertyBindings?: Map<string, ASTWithSource>,
|
||||
eventBindings?: List<EventBinding>,
|
||||
hostPropertyBindings?: Map<string, ASTWithSource>
|
||||
}) {
|
||||
this.directiveIndex = directiveIndex;
|
||||
this.propertyBindings = propertyBindings;
|
||||
|
@ -107,11 +109,11 @@ export class ProtoViewDto {
|
|||
variableBindings: Map<string, string>;
|
||||
type: number;
|
||||
|
||||
constructor({
|
||||
render, elementBinders, variableBindings, type
|
||||
}:{
|
||||
render?:RenderProtoViewRef, elementBinders?:List<ElementBinder>,
|
||||
variableBindings?:Map<string, string>, type?:number
|
||||
constructor({render, elementBinders, variableBindings, type}: {
|
||||
render?: RenderProtoViewRef,
|
||||
elementBinders?: List<ElementBinder>,
|
||||
variableBindings?: Map<string, string>,
|
||||
type?: number
|
||||
}) {
|
||||
this.render = render;
|
||||
this.elementBinders = elementBinders;
|
||||
|
@ -138,15 +140,23 @@ export class DirectiveMetadata {
|
|||
callOnChange: boolean;
|
||||
callOnAllChangesDone: boolean;
|
||||
changeDetection: string;
|
||||
constructor({
|
||||
id, selector, compileChildren, events, hostListeners, hostProperties,
|
||||
hostAttributes, hostActions, properties, readAttributes, type,
|
||||
callOnDestroy, callOnChange, callOnAllChangesDone,
|
||||
changeDetection
|
||||
}:{
|
||||
id?:string, selector?:string, compileChildren?:boolean, events?:List<string>, hostListeners?:Map<string, string>, hostProperties?:Map<string, string>,
|
||||
hostAttributes?:Map<string, string>, hostActions?:Map<string, string>, properties?:Map<string, string>, readAttributes?:List<string>, type?:number,
|
||||
callOnDestroy?:boolean, callOnChange?:boolean, callOnAllChangesDone?:boolean,
|
||||
constructor({id, selector, compileChildren, events, hostListeners, hostProperties, hostAttributes,
|
||||
hostActions, properties, readAttributes, type, callOnDestroy, callOnChange,
|
||||
callOnAllChangesDone, changeDetection}: {
|
||||
id?: string,
|
||||
selector?: string,
|
||||
compileChildren?: boolean,
|
||||
events?: List<string>,
|
||||
hostListeners?: Map<string, string>,
|
||||
hostProperties?: Map<string, string>,
|
||||
hostAttributes?: Map<string, string>,
|
||||
hostActions?: Map<string, string>,
|
||||
properties?: Map<string, string>,
|
||||
readAttributes?: List<string>,
|
||||
type?: number,
|
||||
callOnDestroy?: boolean,
|
||||
callOnChange?: boolean,
|
||||
callOnAllChangesDone?: boolean,
|
||||
changeDetection?: string
|
||||
}) {
|
||||
this.id = id;
|
||||
|
@ -179,10 +189,11 @@ export class ViewDefinition {
|
|||
template: string;
|
||||
directives: List<DirectiveMetadata>;
|
||||
|
||||
constructor({
|
||||
componentId, absUrl, template, directives
|
||||
}:{
|
||||
componentId?:string, absUrl?:string, template?:string, directives?:List<DirectiveMetadata>
|
||||
constructor({componentId, absUrl, template, directives}: {
|
||||
componentId?: string,
|
||||
absUrl?: string,
|
||||
template?: string,
|
||||
directives?: List<DirectiveMetadata>
|
||||
}) {
|
||||
this.componentId = componentId;
|
||||
this.absUrl = absUrl;
|
||||
|
|
|
@ -16,19 +16,9 @@ export class ElementBinder {
|
|||
propertySetters: Map<string, SetterFn>;
|
||||
hostActions: Map<string, AST>;
|
||||
|
||||
constructor({
|
||||
textNodeIndices,
|
||||
contentTagSelector,
|
||||
nestedProtoView,
|
||||
componentId,
|
||||
eventLocals,
|
||||
localEvents,
|
||||
globalEvents,
|
||||
hostActions,
|
||||
parentIndex,
|
||||
distanceToParent,
|
||||
propertySetters
|
||||
}:{
|
||||
constructor({textNodeIndices, contentTagSelector, nestedProtoView, componentId, eventLocals,
|
||||
localEvents, globalEvents, hostActions, parentIndex, distanceToParent,
|
||||
propertySetters}: {
|
||||
contentTagSelector?: string,
|
||||
textNodeIndices?: List<number>,
|
||||
nestedProtoView?: protoViewModule.DomProtoView,
|
||||
|
|
|
@ -77,8 +77,8 @@ export class TestBed {
|
|||
* @return {Promise<ViewProxy>}
|
||||
*/
|
||||
createView(component: Type,
|
||||
{context = null,
|
||||
html = null}: {context?: any, html?: string} = {}): Promise<ViewProxy> {
|
||||
{context = null, html = null}: {context?: any,
|
||||
html?: string} = {}): Promise<ViewProxy> {
|
||||
if (isBlank(component) && isBlank(context)) {
|
||||
throw new BaseException('You must specified at least a component or a context');
|
||||
}
|
||||
|
|
|
@ -9,11 +9,11 @@ var glob = require('glob');
|
|||
|
||||
export interface MultiCopyOptions {
|
||||
/** The path of the file to copy. */
|
||||
srcPath: string,
|
||||
srcPath: string;
|
||||
/** A list of glob patterns of folders to copy to, matched against the input tree. */
|
||||
targetPatterns: string[],
|
||||
targetPatterns: string[];
|
||||
/** List of glob patterns to *not* copy to, matched against the matches from `targetPatterns`. */
|
||||
exclude?: string[],
|
||||
exclude?: string[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue