@@ -44,17 +44,19 @@ export class ElementBinder {
4444 textBindings : List < ASTWithSource > ;
4545 readAttributes : Map < string , string > ;
4646
47- constructor ( {
48- index, parentIndex, distanceToParent,
49- directives, nestedProtoView,
50- propertyBindings, variableBindings,
51- eventBindings, textBindings,
52- readAttributes
53- } :{ index ?:number , parentIndex ?:number , distanceToParent ?:number ,
54- directives ?:List < DirectiveBinder > , nestedProtoView ?:ProtoViewDto ,
55- propertyBindings ?:Map < string , ASTWithSource > , variableBindings ?:Map < string , ASTWithSource > ,
56- eventBindings ?:List < EventBinding > , textBindings ?:List < ASTWithSource > ,
57- readAttributes ?:Map < string , string > } = { } ) {
47+ constructor ( { index, parentIndex, distanceToParent, directives, nestedProtoView, propertyBindings,
48+ variableBindings, eventBindings, textBindings, readAttributes} : {
49+ index ?: number ,
50+ parentIndex ?: number ,
51+ distanceToParent ?: number ,
52+ directives ?: List < DirectiveBinder > ,
53+ nestedProtoView ?: ProtoViewDto ,
54+ propertyBindings ?: Map < string , ASTWithSource > ,
55+ variableBindings ?: Map < string , ASTWithSource > ,
56+ eventBindings ?: List < EventBinding > ,
57+ textBindings ?: List < ASTWithSource > ,
58+ readAttributes ?: Map < string , string >
59+ } = { } ) {
5860 this . index = index ;
5961 this . parentIndex = parentIndex ;
6062 this . distanceToParent = distanceToParent ;
@@ -77,11 +79,11 @@ export class DirectiveBinder {
7779 // with a local name
7880 eventBindings : List < EventBinding > ;
7981 hostPropertyBindings : Map < string , ASTWithSource > ;
80- constructor ( {
81- directiveIndex, propertyBindings , eventBindings , hostPropertyBindings
82- } : {
83- directiveIndex ?: number , propertyBindings ?: Map < string , ASTWithSource > ,
84- eventBindings ?: List < EventBinding > , hostPropertyBindings ?:Map < string , ASTWithSource >
82+ constructor ( { directiveIndex , propertyBindings , eventBindings , hostPropertyBindings } : {
83+ directiveIndex ?: number ,
84+ propertyBindings ?: Map < string , ASTWithSource > ,
85+ eventBindings ?: List < EventBinding > ,
86+ hostPropertyBindings ?: Map < string , ASTWithSource >
8587 } ) {
8688 this . directiveIndex = directiveIndex ;
8789 this . propertyBindings = propertyBindings ;
@@ -107,12 +109,12 @@ export class ProtoViewDto {
107109 variableBindings : Map < string , string > ;
108110 type : number ;
109111
110- constructor ( {
111- render, elementBinders , variableBindings , type
112- } : {
113- render ?: RenderProtoViewRef , elementBinders ?: List < ElementBinder > ,
114- variableBindings ?: Map < string , string > , type ?:number
115- } ) {
112+ constructor ( { render , elementBinders , variableBindings , type } : {
113+ render ?: RenderProtoViewRef ,
114+ elementBinders ?: List < ElementBinder > ,
115+ variableBindings ?: Map < string , string > ,
116+ type ?: number
117+ } ) {
116118 this . render = render ;
117119 this . elementBinders = elementBinders ;
118120 this . variableBindings = variableBindings ;
@@ -138,17 +140,25 @@ export class DirectiveMetadata {
138140 callOnChange : boolean ;
139141 callOnAllChangesDone : boolean ;
140142 changeDetection : string ;
141- constructor ( {
142- id, selector, compileChildren, events, hostListeners, hostProperties,
143- hostAttributes, hostActions, properties, readAttributes, type,
144- callOnDestroy, callOnChange, callOnAllChangesDone,
145- changeDetection
146- } :{
147- id ?:string , selector ?:string , compileChildren ?:boolean , events ?:List < string > , hostListeners ?:Map < string , string > , hostProperties ?:Map < string , string > ,
148- hostAttributes ?:Map < string , string > , hostActions ?:Map < string , string > , properties ?:Map < string , string > , readAttributes ?:List < string > , type ?:number ,
149- callOnDestroy ?:boolean , callOnChange ?:boolean , callOnAllChangesDone ?:boolean ,
150- changeDetection ?:string
151- } ) {
143+ constructor ( { id, selector, compileChildren, events, hostListeners, hostProperties, hostAttributes,
144+ hostActions, properties, readAttributes, type, callOnDestroy, callOnChange,
145+ callOnAllChangesDone, changeDetection} : {
146+ id ?: string ,
147+ selector ?: string ,
148+ compileChildren ?: boolean ,
149+ events ?: List < string > ,
150+ hostListeners ?: Map < string , string > ,
151+ hostProperties ?: Map < string , string > ,
152+ hostAttributes ?: Map < string , string > ,
153+ hostActions ?: Map < string , string > ,
154+ properties ?: Map < string , string > ,
155+ readAttributes ?: List < string > ,
156+ type ?: number ,
157+ callOnDestroy ?: boolean ,
158+ callOnChange ?: boolean ,
159+ callOnAllChangesDone ?: boolean ,
160+ changeDetection ?: string
161+ } ) {
152162 this . id = id ;
153163 this . selector = selector ;
154164 this . compileChildren = isPresent ( compileChildren ) ? compileChildren : true ;
@@ -179,11 +189,12 @@ export class ViewDefinition {
179189 template : string ;
180190 directives : List < DirectiveMetadata > ;
181191
182- constructor ( {
183- componentId, absUrl, template, directives
184- } :{
185- componentId ?:string , absUrl ?:string , template ?:string , directives ?:List < DirectiveMetadata >
186- } ) {
192+ constructor ( { componentId, absUrl, template, directives} : {
193+ componentId ?: string ,
194+ absUrl ?: string ,
195+ template ?: string ,
196+ directives ?: List < DirectiveMetadata >
197+ } ) {
187198 this . componentId = componentId ;
188199 this . absUrl = absUrl ;
189200 this . template = template ;
0 commit comments