@@ -3293,10 +3293,9 @@ ${item.displayPath}<span class="${type}">${name}</span>\
3293
3293
}
3294
3294
// call after consuming `{`
3295
3295
decodeList ( ) {
3296
- const cb = "}" . charCodeAt ( 0 ) ;
3297
3296
let c = this . string . charCodeAt ( this . offset ) ;
3298
3297
const ret = [ ] ;
3299
- while ( c !== cb ) {
3298
+ while ( c !== 125 ) { // 125 = "}"
3300
3299
ret . push ( this . decode ( ) ) ;
3301
3300
c = this . string . charCodeAt ( this . offset ) ;
3302
3301
}
@@ -3305,14 +3304,13 @@ ${item.displayPath}<span class="${type}">${name}</span>\
3305
3304
}
3306
3305
// consumes and returns a list or integer
3307
3306
decode ( ) {
3308
- const [ ob , la ] = [ "{" , "`" ] . map ( c => c . charCodeAt ( 0 ) ) ;
3309
3307
let n = 0 ;
3310
3308
let c = this . string . charCodeAt ( this . offset ) ;
3311
- if ( c === ob ) {
3309
+ if ( c === 123 ) { // 123 = "{"
3312
3310
this . offset += 1 ;
3313
3311
return this . decodeList ( ) ;
3314
3312
}
3315
- while ( c < la ) {
3313
+ while ( c < 96 ) { // 96 = "`"
3316
3314
n = ( n << 4 ) | ( c & 0xF ) ;
3317
3315
this . offset += 1 ;
3318
3316
c = this . string . charCodeAt ( this . offset ) ;
@@ -3325,15 +3323,14 @@ ${item.displayPath}<span class="${type}">${name}</span>\
3325
3323
}
3326
3324
next ( ) {
3327
3325
const c = this . string . charCodeAt ( this . offset ) ;
3328
- const [ zero , ua , la ] = [ "0" , "@" , "`" ] . map ( c => c . charCodeAt ( 0 ) ) ;
3329
3326
// sixteen characters after "0" are backref
3330
- if ( c >= zero && c < ua ) {
3327
+ if ( c >= 48 && c < 64 ) { // 48 = "0", 64 = "@"
3331
3328
this . offset += 1 ;
3332
- return this . backrefQueue [ c - zero ] ;
3329
+ return this . backrefQueue [ c - 48 ] ;
3333
3330
}
3334
3331
// special exception: 0 doesn't use backref encoding
3335
3332
// it's already one character, and it's always nullish
3336
- if ( c === la ) {
3333
+ if ( c === 96 ) { // 96 = "`"
3337
3334
this . offset += 1 ;
3338
3335
return this . cons ( 0 ) ;
3339
3336
}
@@ -3472,7 +3469,6 @@ ${item.displayPath}<span class="${type}">${name}</span>\
3472
3469
searchIndex = [ ] ;
3473
3470
searchIndexDeprecated = new Map ( ) ;
3474
3471
searchIndexEmptyDesc = new Map ( ) ;
3475
- const charA = "A" . charCodeAt ( 0 ) ;
3476
3472
let currentIndex = 0 ;
3477
3473
let id = 0 ;
3478
3474
@@ -3639,7 +3635,7 @@ ${item.displayPath}<span class="${type}">${name}</span>\
3639
3635
// object defined above.
3640
3636
const row = {
3641
3637
crate,
3642
- ty : itemTypes . charCodeAt ( i ) - charA ,
3638
+ ty : itemTypes . charCodeAt ( i ) - 65 , // 65 = "A"
3643
3639
name : itemNames [ i ] ,
3644
3640
path,
3645
3641
descShard,
0 commit comments