@@ -119,7 +119,7 @@ export class DynamicChangeDetector extends ChangeDetector {
119119 }
120120 }
121121
122- _referenceCheck ( proto ) {
122+ _referenceCheck ( proto : ProtoRecord ) {
123123 var prevValue = this . _readSelf ( proto ) ;
124124 var currValue = this . _calculateCurrValue ( proto ) ;
125125
@@ -132,7 +132,7 @@ export class DynamicChangeDetector extends ChangeDetector {
132132 }
133133 }
134134
135- _calculateCurrValue ( proto ) {
135+ _calculateCurrValue ( proto : ProtoRecord ) {
136136 switch ( proto . mode ) {
137137 case RECORD_TYPE_SELF :
138138 throw new BaseException ( "Cannot evaluate self" ) ;
@@ -170,7 +170,7 @@ export class DynamicChangeDetector extends ChangeDetector {
170170 }
171171 }
172172
173- _structuralCheck ( proto ) {
173+ _structuralCheck ( proto : ProtoRecord ) {
174174 var self = this . _readSelf ( proto ) ;
175175 var context = this . _readContext ( proto ) ;
176176
@@ -227,19 +227,19 @@ export class DynamicChangeDetector extends ChangeDetector {
227227 }
228228 }
229229
230- _readContext ( proto ) {
230+ _readContext ( proto : ProtoRecord ) {
231231 return this . values [ proto . contextIndex ] ;
232232 }
233233
234- _readSelf ( proto ) {
234+ _readSelf ( proto : ProtoRecord ) {
235235 return this . values [ proto . record_type_selfIndex ] ;
236236 }
237237
238- _writeSelf ( proto , value ) {
238+ _writeSelf ( proto : ProtoRecord , value ) {
239239 this . values [ proto . record_type_selfIndex ] = value ;
240240 }
241241
242- _readArgs ( proto ) {
242+ _readArgs ( proto : ProtoRecord ) {
243243 var res = ListWrapper . createFixedSize ( proto . args . length ) ;
244244 var args = proto . args ;
245245 for ( var i = 0 ; i < args . length ; ++ i ) {
@@ -256,4 +256,4 @@ function isSame(a, b) {
256256 if ( a instanceof String && b instanceof String && a == b ) return true ;
257257 if ( ( a !== a ) && ( b !== b ) ) return true ;
258258 return false ;
259- }
259+ }
0 commit comments