File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 33837
33837
gettok(i + 2, 0) == "ctnr" &&
33838
33838
gettok(i + 2, 1) == "subs"
33839
33839
) {
33840
- typeassert(i + 1, ["iden", "lit"]);
33840
+ typeassert(i + 1, ["iden", "lit", "ans" ]);
33841
33841
var x = {
33842
33842
op: "subscript",
33843
33843
container: tokens[i + 1],
33852
33852
gettok(i + 2, 0) == "ctnr" &&
33853
33853
gettok(i + 2, 1) == "len"
33854
33854
) {
33855
- typeassert(i + 1, ["iden", "lit"]);
33855
+ typeassert(i + 1, ["iden", "lit", "subs" ]);
33856
33856
var x = { op: "length", container: tokens[i + 1], pos };
33857
33857
asc.push(x);
33858
33858
i += 3;
Original file line number Diff line number Diff line change @@ -426,7 +426,7 @@ function tokens2asc(
426
426
gettok ( i + 2 , 0 ) == "ctnr" &&
427
427
gettok ( i + 2 , 1 ) == "subs"
428
428
) {
429
- typeassert ( i + 1 , [ "iden" , "lit" ] ) ;
429
+ typeassert ( i + 1 , [ "iden" , "lit" , "ans" ] ) ;
430
430
var x = {
431
431
op : "subscript" ,
432
432
container : tokens [ i + 1 ] ,
@@ -441,7 +441,7 @@ function tokens2asc(
441
441
gettok ( i + 2 , 0 ) == "ctnr" &&
442
442
gettok ( i + 2 , 1 ) == "len"
443
443
) {
444
- typeassert ( i + 1 , [ "iden" , "lit" ] ) ;
444
+ typeassert ( i + 1 , [ "iden" , "lit" , "subs" ] ) ;
445
445
var x = { op : "length" , container : tokens [ i + 1 ] , pos } ;
446
446
asc . push ( x ) ;
447
447
i += 3 ;
You can’t perform that action at this time.
0 commit comments