@@ -26,7 +26,7 @@ var _interceptors;
26
26
super . Interceptor ( ) ;
27
27
}
28
28
JSArray$fixed ( length ) {
29
- if ( dart . notNull ( ! ( typeof length == number ) ) || dart . notNull ( length ) < 0 ) {
29
+ if ( dart . notNull ( ! ( typeof length == ' number' ) ) || dart . notNull ( length ) < 0 ) {
30
30
throw new core . ArgumentError ( `Length must be a non-negative integer: ${ length } ` ) ;
31
31
}
32
32
return new JSArray . markFixed ( new Array ( length ) ) ;
@@ -35,7 +35,7 @@ var _interceptors;
35
35
return new JSArray . markGrowable ( [ ] ) ;
36
36
}
37
37
JSArray$growable ( length ) {
38
- if ( dart . notNull ( ! ( typeof length == number ) ) || dart . notNull ( length ) < 0 ) {
38
+ if ( dart . notNull ( ! ( typeof length == ' number' ) ) || dart . notNull ( length ) < 0 ) {
39
39
throw new core . ArgumentError ( `Length must be a non-negative integer: ${ length } ` ) ;
40
40
}
41
41
return new JSArray . markGrowable ( new Array ( length ) ) ;
@@ -68,7 +68,7 @@ var _interceptors;
68
68
this . push ( value ) ;
69
69
}
70
70
removeAt ( index ) {
71
- if ( ! ( typeof index == number ) )
71
+ if ( ! ( typeof index == ' number' ) )
72
72
throw new core . ArgumentError ( index ) ;
73
73
if ( dart . notNull ( index ) < 0 || dart . notNull ( index ) >= dart . notNull ( this . length ) ) {
74
74
throw new core . RangeError . value ( index ) ;
@@ -77,7 +77,7 @@ var _interceptors;
77
77
return dart . as ( this . splice ( index , 1 ) [ 0 ] , E ) ;
78
78
}
79
79
insert ( index , value ) {
80
- if ( ! ( typeof index == number ) )
80
+ if ( ! ( typeof index == ' number' ) )
81
81
throw new core . ArgumentError ( index ) ;
82
82
if ( dart . notNull ( index ) < 0 || dart . notNull ( index ) > dart . notNull ( this . length ) ) {
83
83
throw new core . RangeError . value ( index ) ;
@@ -186,22 +186,22 @@ var _interceptors;
186
186
if ( end === void 0 )
187
187
end = null ;
188
188
_js_helper . checkNull ( start ) ;
189
- if ( ! ( typeof start == number ) )
189
+ if ( ! ( typeof start == ' number' ) )
190
190
throw new core . ArgumentError ( start ) ;
191
191
if ( dart . notNull ( start ) < 0 || dart . notNull ( start ) > dart . notNull ( this . length ) ) {
192
192
throw new core . RangeError . range ( start , 0 , this . length ) ;
193
193
}
194
194
if ( end === null ) {
195
195
end = this . length ;
196
196
} else {
197
- if ( ! ( typeof end == number ) )
197
+ if ( ! ( typeof end == ' number' ) )
198
198
throw new core . ArgumentError ( end ) ;
199
199
if ( dart . notNull ( end ) < dart . notNull ( start ) || dart . notNull ( end ) > dart . notNull ( this . length ) ) {
200
200
throw new core . RangeError . range ( end , start , this . length ) ;
201
201
}
202
202
}
203
203
if ( start === end )
204
- return new List . from ( [ ] ) ;
204
+ return new core . List$ ( E ) . from ( [ ] ) ;
205
205
return new JSArray . markGrowable ( this . slice ( start , end ) ) ;
206
206
}
207
207
getRange ( start , end ) {
@@ -319,23 +319,23 @@ var _interceptors;
319
319
return dart . as ( this . length , core . int ) ;
320
320
}
321
321
set length ( newLength ) {
322
- if ( ! ( typeof newLength == number ) )
322
+ if ( ! ( typeof newLength == ' number' ) )
323
323
throw new core . ArgumentError ( newLength ) ;
324
324
if ( dart . notNull ( newLength ) < 0 )
325
325
throw new core . RangeError . value ( newLength ) ;
326
326
this . checkGrowable ( 'set length' ) ;
327
327
this . length = newLength ;
328
328
}
329
329
get ( index ) {
330
- if ( ! ( typeof index == number ) )
330
+ if ( ! ( typeof index == ' number' ) )
331
331
throw new core . ArgumentError ( index ) ;
332
332
if ( dart . notNull ( index ) >= dart . notNull ( this . length ) || dart . notNull ( index ) < 0 )
333
333
throw new core . RangeError . value ( index ) ;
334
334
return dart . as ( this [ index ] , E ) ;
335
335
}
336
336
set ( index , value ) {
337
337
this . checkMutable ( 'indexed set' ) ;
338
- if ( ! ( typeof index == number ) )
338
+ if ( ! ( typeof index == ' number' ) )
339
339
throw new core . ArgumentError ( index ) ;
340
340
if ( dart . notNull ( index ) >= dart . notNull ( this . length ) || dart . notNull ( index ) < 0 )
341
341
throw new core . RangeError . value ( index ) ;
@@ -772,7 +772,7 @@ var _interceptors;
772
772
super . Interceptor ( ) ;
773
773
}
774
774
codeUnitAt ( index ) {
775
- if ( ! ( typeof index == number ) )
775
+ if ( ! ( typeof index == ' number' ) )
776
776
throw new core . ArgumentError ( index ) ;
777
777
if ( dart . notNull ( index ) < 0 )
778
778
throw new core . RangeError . value ( index ) ;
@@ -806,7 +806,7 @@ var _interceptors;
806
806
return new _js_helper . StringMatch ( start , string , this ) ;
807
807
}
808
808
[ '+' ] ( other ) {
809
- if ( ! ( typeof other == string ) )
809
+ if ( ! ( typeof other == ' string' ) )
810
810
throw new core . ArgumentError ( other ) ;
811
811
return this + other ;
812
812
}
@@ -841,7 +841,7 @@ var _interceptors;
841
841
}
842
842
split ( pattern ) {
843
843
_js_helper . checkNull ( pattern ) ;
844
- if ( typeof pattern == string ) {
844
+ if ( typeof pattern == ' string' ) {
845
845
return dart . as ( this . split ( pattern ) , core . List$ ( core . String ) ) ;
846
846
} else if ( dart . notNull ( dart . is ( pattern , _js_helper . JSSyntaxRegExp ) ) && _js_helper . regExpCaptureCount ( pattern ) === 0 ) {
847
847
let re = _js_helper . regExpGetNative ( pattern ) ;
@@ -851,7 +851,7 @@ var _interceptors;
851
851
}
852
852
}
853
853
[ _defaultSplit ] ( pattern ) {
854
- let result = new List . from ( [ ] ) ;
854
+ let result = new core . List$ ( core . String ) . from ( [ ] ) ;
855
855
let start = 0 ;
856
856
let length = 1 ;
857
857
for ( let match of pattern . allMatches ( this ) ) {
@@ -877,7 +877,7 @@ var _interceptors;
877
877
if ( dart . notNull ( index ) < 0 || dart . notNull ( index ) > dart . notNull ( this . length ) ) {
878
878
throw new core . RangeError . range ( index , 0 , this . length ) ;
879
879
}
880
- if ( typeof pattern == string ) {
880
+ if ( typeof pattern == ' string' ) {
881
881
let other = pattern ;
882
882
let otherLength = other . length ;
883
883
let endIndex = dart . notNull ( index ) + dart . notNull ( otherLength ) ;
@@ -919,9 +919,13 @@ var _interceptors;
919
919
case 32 :
920
920
case 133 :
921
921
case 160 :
922
+ {
922
923
return true ;
924
+ }
923
925
default :
926
+ {
924
927
return false ;
928
+ }
925
929
}
926
930
}
927
931
switch ( codeUnit ) {
@@ -944,9 +948,13 @@ var _interceptors;
944
948
case 8287 :
945
949
case 12288 :
946
950
case 65279 :
951
+ {
947
952
return true ;
953
+ }
948
954
default :
955
+ {
949
956
return false ;
957
+ }
950
958
}
951
959
}
952
960
static [ _skipLeadingWhitespace$ ] ( string , index ) {
@@ -1085,12 +1093,12 @@ var _interceptors;
1085
1093
if ( start === void 0 )
1086
1094
start = 0 ;
1087
1095
_js_helper . checkNull ( pattern ) ;
1088
- if ( ! ( typeof start == number ) )
1096
+ if ( ! ( typeof start == ' number' ) )
1089
1097
throw new core . ArgumentError ( start ) ;
1090
1098
if ( dart . notNull ( start ) < 0 || dart . notNull ( start ) > dart . notNull ( this . length ) ) {
1091
1099
throw new core . RangeError . range ( start , 0 , this . length ) ;
1092
1100
}
1093
- if ( typeof pattern == string ) {
1101
+ if ( typeof pattern == ' string' ) {
1094
1102
return this . indexOf ( pattern , start ) ;
1095
1103
}
1096
1104
if ( dart . is ( pattern , _js_helper . JSSyntaxRegExp ) ) {
@@ -1110,12 +1118,12 @@ var _interceptors;
1110
1118
_js_helper . checkNull ( pattern ) ;
1111
1119
if ( start === null ) {
1112
1120
start = this . length ;
1113
- } else if ( ! ( typeof start == number ) ) {
1121
+ } else if ( ! ( typeof start == ' number' ) ) {
1114
1122
throw new core . ArgumentError ( start ) ;
1115
1123
} else if ( dart . notNull ( start ) < 0 || dart . notNull ( start ) > dart . notNull ( this . length ) ) {
1116
1124
throw new core . RangeError . range ( start , 0 , this . length ) ;
1117
1125
}
1118
- if ( typeof pattern == string ) {
1126
+ if ( typeof pattern == ' string' ) {
1119
1127
let other = pattern ;
1120
1128
if ( dart . notNull ( start ) + dart . notNull ( other . length ) > dart . notNull ( this . length ) ) {
1121
1129
start = dart . notNull ( this . length ) - dart . notNull ( other . length ) ;
@@ -1144,7 +1152,7 @@ var _interceptors;
1144
1152
return ! dart . notNull ( this . isEmpty ) ;
1145
1153
}
1146
1154
compareTo ( other ) {
1147
- if ( ! ( typeof other == string ) )
1155
+ if ( ! ( typeof other == ' string' ) )
1148
1156
throw new core . ArgumentError ( other ) ;
1149
1157
return dart . equals ( this , other ) ? 0 : this < other ? - 1 : 1 ;
1150
1158
}
@@ -1169,7 +1177,7 @@ var _interceptors;
1169
1177
return this . length ;
1170
1178
}
1171
1179
get ( index ) {
1172
- if ( ! ( typeof index == number ) )
1180
+ if ( ! ( typeof index == ' number' ) )
1173
1181
throw new core . ArgumentError ( index ) ;
1174
1182
if ( dart . notNull ( index ) >= dart . notNull ( this . length ) || dart . notNull ( index ) < 0 )
1175
1183
throw new core . RangeError . value ( index ) ;
0 commit comments