Files
codeql/javascript/extractor/tests/esnext/output/trap/for-await.js.trap
2026-02-27 14:15:34 +01:00

455 lines
12 KiB
Plaintext

#10000=@"/for-await.js;sourcefile"
files(#10000,"/for-await.js")
#10001=@"/;folder"
folders(#10001,"/")
containerparent(#10001,#10000)
#10002=@"loc,{#10000},0,0,0,0"
locations_default(#10002,#10000,0,0,0,0)
hasLocation(#10000,#10002)
#20000=@"global_scope"
scopes(#20000,0)
#20001=@"script;{#10000},1,1"
#20002=*
lines(#20002,#20001,"async function foo() {","
")
#20003=@"loc,{#10000},1,1,1,22"
locations_default(#20003,#10000,1,1,1,22)
hasLocation(#20002,#20003)
#20004=*
lines(#20004,#20001," for await (const call of calls) {","
")
#20005=@"loc,{#10000},2,1,2,37"
locations_default(#20005,#10000,2,1,2,37)
hasLocation(#20004,#20005)
indentation(#10000,2," ",4)
#20006=*
lines(#20006,#20001," call(); ","
")
#20007=@"loc,{#10000},3,1,3,19"
locations_default(#20007,#10000,3,1,3,19)
hasLocation(#20006,#20007)
indentation(#10000,3," ",8)
#20008=*
lines(#20008,#20001," }","
")
#20009=@"loc,{#10000},4,1,4,5"
locations_default(#20009,#10000,4,1,4,5)
hasLocation(#20008,#20009)
indentation(#10000,4," ",4)
#20010=*
lines(#20010,#20001,"}","
")
#20011=@"loc,{#10000},5,1,5,1"
locations_default(#20011,#10000,5,1,5,1)
hasLocation(#20010,#20011)
#20012=*
lines(#20012,#20001,"","
")
#20013=@"loc,{#10000},6,1,6,0"
locations_default(#20013,#10000,6,1,6,0)
hasLocation(#20012,#20013)
#20014=*
lines(#20014,#20001,"for await (const call of calls) {","
")
#20015=@"loc,{#10000},7,1,7,33"
locations_default(#20015,#10000,7,1,7,33)
hasLocation(#20014,#20015)
#20016=*
lines(#20016,#20001," call();","
")
#20017=@"loc,{#10000},8,1,8,11"
locations_default(#20017,#10000,8,1,8,11)
hasLocation(#20016,#20017)
indentation(#10000,8," ",4)
#20018=*
lines(#20018,#20001,"}","")
#20019=@"loc,{#10000},9,1,9,1"
locations_default(#20019,#10000,9,1,9,1)
hasLocation(#20018,#20019)
numlines(#20001,9,8,0)
#20020=*
tokeninfo(#20020,6,#20001,0,"async")
#20021=@"loc,{#10000},1,1,1,5"
locations_default(#20021,#10000,1,1,1,5)
hasLocation(#20020,#20021)
#20022=*
tokeninfo(#20022,7,#20001,1,"function")
#20023=@"loc,{#10000},1,7,1,14"
locations_default(#20023,#10000,1,7,1,14)
hasLocation(#20022,#20023)
#20024=*
tokeninfo(#20024,6,#20001,2,"foo")
#20025=@"loc,{#10000},1,16,1,18"
locations_default(#20025,#10000,1,16,1,18)
hasLocation(#20024,#20025)
#20026=*
tokeninfo(#20026,8,#20001,3,"(")
#20027=@"loc,{#10000},1,19,1,19"
locations_default(#20027,#10000,1,19,1,19)
hasLocation(#20026,#20027)
#20028=*
tokeninfo(#20028,8,#20001,4,")")
#20029=@"loc,{#10000},1,20,1,20"
locations_default(#20029,#10000,1,20,1,20)
hasLocation(#20028,#20029)
#20030=*
tokeninfo(#20030,8,#20001,5,"{")
#20031=@"loc,{#10000},1,22,1,22"
locations_default(#20031,#10000,1,22,1,22)
hasLocation(#20030,#20031)
#20032=*
tokeninfo(#20032,7,#20001,6,"for")
#20033=@"loc,{#10000},2,5,2,7"
locations_default(#20033,#10000,2,5,2,7)
hasLocation(#20032,#20033)
#20034=*
tokeninfo(#20034,6,#20001,7,"await")
#20035=@"loc,{#10000},2,9,2,13"
locations_default(#20035,#10000,2,9,2,13)
hasLocation(#20034,#20035)
#20036=*
tokeninfo(#20036,8,#20001,8,"(")
#20037=@"loc,{#10000},2,15,2,15"
locations_default(#20037,#10000,2,15,2,15)
hasLocation(#20036,#20037)
#20038=*
tokeninfo(#20038,7,#20001,9,"const")
#20039=@"loc,{#10000},2,16,2,20"
locations_default(#20039,#10000,2,16,2,20)
hasLocation(#20038,#20039)
#20040=*
tokeninfo(#20040,6,#20001,10,"call")
#20041=@"loc,{#10000},2,22,2,25"
locations_default(#20041,#10000,2,22,2,25)
hasLocation(#20040,#20041)
#20042=*
tokeninfo(#20042,6,#20001,11,"of")
#20043=@"loc,{#10000},2,27,2,28"
locations_default(#20043,#10000,2,27,2,28)
hasLocation(#20042,#20043)
#20044=*
tokeninfo(#20044,6,#20001,12,"calls")
#20045=@"loc,{#10000},2,30,2,34"
locations_default(#20045,#10000,2,30,2,34)
hasLocation(#20044,#20045)
#20046=*
tokeninfo(#20046,8,#20001,13,")")
#20047=@"loc,{#10000},2,35,2,35"
locations_default(#20047,#10000,2,35,2,35)
hasLocation(#20046,#20047)
#20048=*
tokeninfo(#20048,8,#20001,14,"{")
#20049=@"loc,{#10000},2,37,2,37"
locations_default(#20049,#10000,2,37,2,37)
hasLocation(#20048,#20049)
#20050=*
tokeninfo(#20050,6,#20001,15,"call")
#20051=@"loc,{#10000},3,9,3,12"
locations_default(#20051,#10000,3,9,3,12)
hasLocation(#20050,#20051)
#20052=*
tokeninfo(#20052,8,#20001,16,"(")
#20053=@"loc,{#10000},3,13,3,13"
locations_default(#20053,#10000,3,13,3,13)
hasLocation(#20052,#20053)
#20054=*
tokeninfo(#20054,8,#20001,17,")")
#20055=@"loc,{#10000},3,14,3,14"
locations_default(#20055,#10000,3,14,3,14)
hasLocation(#20054,#20055)
#20056=*
tokeninfo(#20056,8,#20001,18,";")
#20057=@"loc,{#10000},3,15,3,15"
locations_default(#20057,#10000,3,15,3,15)
hasLocation(#20056,#20057)
#20058=*
tokeninfo(#20058,8,#20001,19,"}")
#20059=@"loc,{#10000},4,5,4,5"
locations_default(#20059,#10000,4,5,4,5)
hasLocation(#20058,#20059)
#20060=*
tokeninfo(#20060,8,#20001,20,"}")
hasLocation(#20060,#20011)
#20061=*
tokeninfo(#20061,7,#20001,21,"for")
#20062=@"loc,{#10000},7,1,7,3"
locations_default(#20062,#10000,7,1,7,3)
hasLocation(#20061,#20062)
#20063=*
tokeninfo(#20063,6,#20001,22,"await")
#20064=@"loc,{#10000},7,5,7,9"
locations_default(#20064,#10000,7,5,7,9)
hasLocation(#20063,#20064)
#20065=*
tokeninfo(#20065,8,#20001,23,"(")
#20066=@"loc,{#10000},7,11,7,11"
locations_default(#20066,#10000,7,11,7,11)
hasLocation(#20065,#20066)
#20067=*
tokeninfo(#20067,7,#20001,24,"const")
#20068=@"loc,{#10000},7,12,7,16"
locations_default(#20068,#10000,7,12,7,16)
hasLocation(#20067,#20068)
#20069=*
tokeninfo(#20069,6,#20001,25,"call")
#20070=@"loc,{#10000},7,18,7,21"
locations_default(#20070,#10000,7,18,7,21)
hasLocation(#20069,#20070)
#20071=*
tokeninfo(#20071,6,#20001,26,"of")
#20072=@"loc,{#10000},7,23,7,24"
locations_default(#20072,#10000,7,23,7,24)
hasLocation(#20071,#20072)
#20073=*
tokeninfo(#20073,6,#20001,27,"calls")
#20074=@"loc,{#10000},7,26,7,30"
locations_default(#20074,#10000,7,26,7,30)
hasLocation(#20073,#20074)
#20075=*
tokeninfo(#20075,8,#20001,28,")")
#20076=@"loc,{#10000},7,31,7,31"
locations_default(#20076,#10000,7,31,7,31)
hasLocation(#20075,#20076)
#20077=*
tokeninfo(#20077,8,#20001,29,"{")
#20078=@"loc,{#10000},7,33,7,33"
locations_default(#20078,#10000,7,33,7,33)
hasLocation(#20077,#20078)
#20079=*
tokeninfo(#20079,6,#20001,30,"call")
#20080=@"loc,{#10000},8,5,8,8"
locations_default(#20080,#10000,8,5,8,8)
hasLocation(#20079,#20080)
#20081=*
tokeninfo(#20081,8,#20001,31,"(")
#20082=@"loc,{#10000},8,9,8,9"
locations_default(#20082,#10000,8,9,8,9)
hasLocation(#20081,#20082)
#20083=*
tokeninfo(#20083,8,#20001,32,")")
#20084=@"loc,{#10000},8,10,8,10"
locations_default(#20084,#10000,8,10,8,10)
hasLocation(#20083,#20084)
#20085=*
tokeninfo(#20085,8,#20001,33,";")
#20086=@"loc,{#10000},8,11,8,11"
locations_default(#20086,#10000,8,11,8,11)
hasLocation(#20085,#20086)
#20087=*
tokeninfo(#20087,8,#20001,34,"}")
hasLocation(#20087,#20019)
#20088=*
tokeninfo(#20088,0,#20001,35,"")
#20089=@"loc,{#10000},9,2,9,1"
locations_default(#20089,#10000,9,2,9,1)
hasLocation(#20088,#20089)
toplevels(#20001,0)
#20090=@"loc,{#10000},1,1,9,1"
locations_default(#20090,#10000,1,1,9,1)
hasLocation(#20001,#20090)
#20091=@"var;{foo};{#20000}"
variables(#20091,"foo",#20000)
#20092=@"var;{this};{#20000}"
variables(#20092,"this",#20000)
#20093=*
stmts(#20093,17,#20001,0,"async f ... }\n}")
#20094=@"loc,{#10000},1,1,5,1"
locations_default(#20094,#10000,1,1,5,1)
hasLocation(#20093,#20094)
stmt_containers(#20093,#20001)
#20095=*
exprs(#20095,78,#20093,-1,"foo")
hasLocation(#20095,#20025)
expr_containers(#20095,#20093)
literals("foo","foo",#20095)
decl(#20095,#20091)
#20096=*
scopes(#20096,1)
scopenodes(#20093,#20096)
scopenesting(#20096,#20000)
#20097=@"var;{this};{#20096}"
variables(#20097,"this",#20096)
#20098=@"var;{arguments};{#20096}"
variables(#20098,"arguments",#20096)
is_arguments_object(#20098)
is_async(#20093)
#20099=*
stmts(#20099,1,#20093,-2,"{\n f ... }\n}")
#20100=@"loc,{#10000},1,22,5,1"
locations_default(#20100,#10000,1,22,5,1)
hasLocation(#20099,#20100)
stmt_containers(#20099,#20093)
#20101=*
stmts(#20101,21,#20099,0,"for awa ... \n }")
#20102=@"loc,{#10000},2,5,4,5"
locations_default(#20102,#10000,2,5,4,5)
hasLocation(#20101,#20102)
stmt_containers(#20101,#20093)
#20103=*
exprs(#20103,79,#20101,1,"calls")
hasLocation(#20103,#20045)
enclosing_stmt(#20103,#20101)
expr_containers(#20103,#20093)
literals("calls","calls",#20103)
#20104=@"var;{calls};{#20000}"
variables(#20104,"calls",#20000)
bind(#20103,#20104)
#20105=*
scopes(#20105,6)
scopenodes(#20101,#20105)
scopenesting(#20105,#20096)
#20106=@"var;{call};{#20105}"
variables(#20106,"call",#20105)
#20107=*
stmts(#20107,22,#20101,0,"const call")
#20108=@"loc,{#10000},2,16,2,25"
locations_default(#20108,#10000,2,16,2,25)
hasLocation(#20107,#20108)
stmt_containers(#20107,#20093)
#20109=*
exprs(#20109,64,#20107,0,"call")
hasLocation(#20109,#20041)
enclosing_stmt(#20109,#20107)
expr_containers(#20109,#20093)
#20110=*
exprs(#20110,78,#20109,0,"call")
hasLocation(#20110,#20041)
enclosing_stmt(#20110,#20107)
expr_containers(#20110,#20093)
literals("call","call",#20110)
decl(#20110,#20106)
#20111=*
stmts(#20111,1,#20101,2,"{\n ... \n }")
#20112=@"loc,{#10000},2,37,4,5"
locations_default(#20112,#10000,2,37,4,5)
hasLocation(#20111,#20112)
stmt_containers(#20111,#20093)
#20113=*
stmts(#20113,2,#20111,0,"call();")
#20114=@"loc,{#10000},3,9,3,15"
locations_default(#20114,#10000,3,9,3,15)
hasLocation(#20113,#20114)
stmt_containers(#20113,#20093)
#20115=*
exprs(#20115,13,#20113,0,"call()")
#20116=@"loc,{#10000},3,9,3,14"
locations_default(#20116,#10000,3,9,3,14)
hasLocation(#20115,#20116)
enclosing_stmt(#20115,#20113)
expr_containers(#20115,#20093)
#20117=*
exprs(#20117,79,#20115,-1,"call")
hasLocation(#20117,#20051)
enclosing_stmt(#20117,#20113)
expr_containers(#20117,#20093)
literals("call","call",#20117)
bind(#20117,#20106)
is_for_await_of(#20101)
#20118=*
stmts(#20118,21,#20001,1,"for awa ... ll();\n}")
#20119=@"loc,{#10000},7,1,9,1"
locations_default(#20119,#10000,7,1,9,1)
hasLocation(#20118,#20119)
stmt_containers(#20118,#20001)
#20120=*
exprs(#20120,79,#20118,1,"calls")
hasLocation(#20120,#20074)
enclosing_stmt(#20120,#20118)
expr_containers(#20120,#20001)
literals("calls","calls",#20120)
bind(#20120,#20104)
#20121=*
scopes(#20121,6)
scopenodes(#20118,#20121)
scopenesting(#20121,#20000)
#20122=@"var;{call};{#20121}"
variables(#20122,"call",#20121)
#20123=*
stmts(#20123,22,#20118,0,"const call")
#20124=@"loc,{#10000},7,12,7,21"
locations_default(#20124,#10000,7,12,7,21)
hasLocation(#20123,#20124)
stmt_containers(#20123,#20001)
#20125=*
exprs(#20125,64,#20123,0,"call")
hasLocation(#20125,#20070)
enclosing_stmt(#20125,#20123)
expr_containers(#20125,#20001)
#20126=*
exprs(#20126,78,#20125,0,"call")
hasLocation(#20126,#20070)
enclosing_stmt(#20126,#20123)
expr_containers(#20126,#20001)
literals("call","call",#20126)
decl(#20126,#20122)
#20127=*
stmts(#20127,1,#20118,2,"{\n call();\n}")
#20128=@"loc,{#10000},7,33,9,1"
locations_default(#20128,#10000,7,33,9,1)
hasLocation(#20127,#20128)
stmt_containers(#20127,#20001)
#20129=*
stmts(#20129,2,#20127,0,"call();")
#20130=@"loc,{#10000},8,5,8,11"
locations_default(#20130,#10000,8,5,8,11)
hasLocation(#20129,#20130)
stmt_containers(#20129,#20001)
#20131=*
exprs(#20131,13,#20129,0,"call()")
#20132=@"loc,{#10000},8,5,8,10"
locations_default(#20132,#10000,8,5,8,10)
hasLocation(#20131,#20132)
enclosing_stmt(#20131,#20129)
expr_containers(#20131,#20001)
#20133=*
exprs(#20133,79,#20131,-1,"call")
hasLocation(#20133,#20080)
enclosing_stmt(#20133,#20129)
expr_containers(#20133,#20001)
literals("call","call",#20133)
bind(#20133,#20122)
is_for_await_of(#20118)
#20134=*
entry_cfg_node(#20134,#20001)
#20135=@"loc,{#10000},1,1,1,0"
locations_default(#20135,#10000,1,1,1,0)
hasLocation(#20134,#20135)
#20136=*
exit_cfg_node(#20136,#20001)
hasLocation(#20136,#20089)
successor(#20120,#20118)
successor(#20118,#20123)
successor(#20118,#20136)
successor(#20129,#20133)
successor(#20133,#20131)
successor(#20131,#20118)
successor(#20127,#20129)
successor(#20123,#20126)
successor(#20126,#20125)
successor(#20125,#20127)
successor(#20093,#20120)
#20137=*
entry_cfg_node(#20137,#20093)
hasLocation(#20137,#20135)
#20138=*
exit_cfg_node(#20138,#20093)
#20139=@"loc,{#10000},5,2,5,1"
locations_default(#20139,#10000,5,2,5,1)
hasLocation(#20138,#20139)
successor(#20103,#20101)
successor(#20101,#20107)
successor(#20101,#20138)
successor(#20113,#20117)
successor(#20117,#20115)
successor(#20115,#20101)
successor(#20111,#20113)
successor(#20107,#20110)
successor(#20110,#20109)
successor(#20109,#20111)
successor(#20099,#20103)
successor(#20137,#20099)
successor(#20095,#20093)
successor(#20134,#20095)
numlines(#10000,9,8,0)
filetype(#10000,"javascript")