mirror of
https://github.com/github/codeql.git
synced 2026-04-13 19:14:04 +02:00
321 lines
8.9 KiB
Plaintext
321 lines
8.9 KiB
Plaintext
#10000=@"/yield.js;sourcefile"
|
|
files(#10000,"/yield.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=*
|
|
comments(#20002,0,#20001," when index reaches 2, yield's done will be true and its value will be undefined;","// when ... efined;")
|
|
#20003=@"loc,{#10000},3,21,3,103"
|
|
locations_default(#20003,#10000,3,21,3,103)
|
|
hasLocation(#20002,#20003)
|
|
#20004=*
|
|
lines(#20004,#20001,"function* foo(){","
|
|
")
|
|
#20005=@"loc,{#10000},1,1,1,16"
|
|
locations_default(#20005,#10000,1,1,1,16)
|
|
hasLocation(#20004,#20005)
|
|
#20006=*
|
|
lines(#20006,#20001," var index = 0;","
|
|
")
|
|
#20007=@"loc,{#10000},2,1,2,16"
|
|
locations_default(#20007,#10000,2,1,2,16)
|
|
hasLocation(#20006,#20007)
|
|
indentation(#10000,2," ",2)
|
|
#20008=*
|
|
lines(#20008,#20001," while(index <= 2) // when index reaches 2, yield's done will be true and its value will be undefined;","
|
|
")
|
|
#20009=@"loc,{#10000},3,1,3,103"
|
|
locations_default(#20009,#10000,3,1,3,103)
|
|
hasLocation(#20008,#20009)
|
|
indentation(#10000,3," ",2)
|
|
#20010=*
|
|
lines(#20010,#20001," yield index++;","
|
|
")
|
|
#20011=@"loc,{#10000},4,1,4,18"
|
|
locations_default(#20011,#10000,4,1,4,18)
|
|
hasLocation(#20010,#20011)
|
|
indentation(#10000,4," ",4)
|
|
#20012=*
|
|
lines(#20012,#20001,"}","")
|
|
#20013=@"loc,{#10000},5,1,5,1"
|
|
locations_default(#20013,#10000,5,1,5,1)
|
|
hasLocation(#20012,#20013)
|
|
numlines(#20001,5,5,1)
|
|
#20014=*
|
|
tokeninfo(#20014,7,#20001,0,"function")
|
|
#20015=@"loc,{#10000},1,1,1,8"
|
|
locations_default(#20015,#10000,1,1,1,8)
|
|
hasLocation(#20014,#20015)
|
|
#20016=*
|
|
tokeninfo(#20016,8,#20001,1,"*")
|
|
#20017=@"loc,{#10000},1,9,1,9"
|
|
locations_default(#20017,#10000,1,9,1,9)
|
|
hasLocation(#20016,#20017)
|
|
#20018=*
|
|
tokeninfo(#20018,6,#20001,2,"foo")
|
|
#20019=@"loc,{#10000},1,11,1,13"
|
|
locations_default(#20019,#10000,1,11,1,13)
|
|
hasLocation(#20018,#20019)
|
|
#20020=*
|
|
tokeninfo(#20020,8,#20001,3,"(")
|
|
#20021=@"loc,{#10000},1,14,1,14"
|
|
locations_default(#20021,#10000,1,14,1,14)
|
|
hasLocation(#20020,#20021)
|
|
#20022=*
|
|
tokeninfo(#20022,8,#20001,4,")")
|
|
#20023=@"loc,{#10000},1,15,1,15"
|
|
locations_default(#20023,#10000,1,15,1,15)
|
|
hasLocation(#20022,#20023)
|
|
#20024=*
|
|
tokeninfo(#20024,8,#20001,5,"{")
|
|
#20025=@"loc,{#10000},1,16,1,16"
|
|
locations_default(#20025,#10000,1,16,1,16)
|
|
hasLocation(#20024,#20025)
|
|
#20026=*
|
|
tokeninfo(#20026,7,#20001,6,"var")
|
|
#20027=@"loc,{#10000},2,3,2,5"
|
|
locations_default(#20027,#10000,2,3,2,5)
|
|
hasLocation(#20026,#20027)
|
|
#20028=*
|
|
tokeninfo(#20028,6,#20001,7,"index")
|
|
#20029=@"loc,{#10000},2,7,2,11"
|
|
locations_default(#20029,#10000,2,7,2,11)
|
|
hasLocation(#20028,#20029)
|
|
#20030=*
|
|
tokeninfo(#20030,8,#20001,8,"=")
|
|
#20031=@"loc,{#10000},2,13,2,13"
|
|
locations_default(#20031,#10000,2,13,2,13)
|
|
hasLocation(#20030,#20031)
|
|
#20032=*
|
|
tokeninfo(#20032,3,#20001,9,"0")
|
|
#20033=@"loc,{#10000},2,15,2,15"
|
|
locations_default(#20033,#10000,2,15,2,15)
|
|
hasLocation(#20032,#20033)
|
|
#20034=*
|
|
tokeninfo(#20034,8,#20001,10,";")
|
|
#20035=@"loc,{#10000},2,16,2,16"
|
|
locations_default(#20035,#10000,2,16,2,16)
|
|
hasLocation(#20034,#20035)
|
|
#20036=*
|
|
tokeninfo(#20036,7,#20001,11,"while")
|
|
#20037=@"loc,{#10000},3,3,3,7"
|
|
locations_default(#20037,#10000,3,3,3,7)
|
|
hasLocation(#20036,#20037)
|
|
#20038=*
|
|
tokeninfo(#20038,8,#20001,12,"(")
|
|
#20039=@"loc,{#10000},3,8,3,8"
|
|
locations_default(#20039,#10000,3,8,3,8)
|
|
hasLocation(#20038,#20039)
|
|
#20040=*
|
|
tokeninfo(#20040,6,#20001,13,"index")
|
|
#20041=@"loc,{#10000},3,9,3,13"
|
|
locations_default(#20041,#10000,3,9,3,13)
|
|
hasLocation(#20040,#20041)
|
|
#20042=*
|
|
tokeninfo(#20042,8,#20001,14,"<=")
|
|
#20043=@"loc,{#10000},3,15,3,16"
|
|
locations_default(#20043,#10000,3,15,3,16)
|
|
hasLocation(#20042,#20043)
|
|
#20044=*
|
|
tokeninfo(#20044,3,#20001,15,"2")
|
|
#20045=@"loc,{#10000},3,18,3,18"
|
|
locations_default(#20045,#10000,3,18,3,18)
|
|
hasLocation(#20044,#20045)
|
|
#20046=*
|
|
tokeninfo(#20046,8,#20001,16,")")
|
|
#20047=@"loc,{#10000},3,19,3,19"
|
|
locations_default(#20047,#10000,3,19,3,19)
|
|
hasLocation(#20046,#20047)
|
|
#20048=*
|
|
tokeninfo(#20048,7,#20001,17,"yield")
|
|
#20049=@"loc,{#10000},4,5,4,9"
|
|
locations_default(#20049,#10000,4,5,4,9)
|
|
hasLocation(#20048,#20049)
|
|
next_token(#20002,#20048)
|
|
#20050=*
|
|
tokeninfo(#20050,6,#20001,18,"index")
|
|
#20051=@"loc,{#10000},4,11,4,15"
|
|
locations_default(#20051,#10000,4,11,4,15)
|
|
hasLocation(#20050,#20051)
|
|
#20052=*
|
|
tokeninfo(#20052,8,#20001,19,"++")
|
|
#20053=@"loc,{#10000},4,16,4,17"
|
|
locations_default(#20053,#10000,4,16,4,17)
|
|
hasLocation(#20052,#20053)
|
|
#20054=*
|
|
tokeninfo(#20054,8,#20001,20,";")
|
|
#20055=@"loc,{#10000},4,18,4,18"
|
|
locations_default(#20055,#10000,4,18,4,18)
|
|
hasLocation(#20054,#20055)
|
|
#20056=*
|
|
tokeninfo(#20056,8,#20001,21,"}")
|
|
hasLocation(#20056,#20013)
|
|
#20057=*
|
|
tokeninfo(#20057,0,#20001,22,"")
|
|
#20058=@"loc,{#10000},5,2,5,1"
|
|
locations_default(#20058,#10000,5,2,5,1)
|
|
hasLocation(#20057,#20058)
|
|
toplevels(#20001,0)
|
|
#20059=@"loc,{#10000},1,1,5,1"
|
|
locations_default(#20059,#10000,1,1,5,1)
|
|
hasLocation(#20001,#20059)
|
|
#20060=@"var;{foo};{#20000}"
|
|
variables(#20060,"foo",#20000)
|
|
#20061=@"var;{this};{#20000}"
|
|
variables(#20061,"this",#20000)
|
|
#20062=*
|
|
stmts(#20062,17,#20001,0,"functio ... ex++;\n}")
|
|
hasLocation(#20062,#20059)
|
|
stmt_containers(#20062,#20001)
|
|
#20063=*
|
|
exprs(#20063,78,#20062,-1,"foo")
|
|
hasLocation(#20063,#20019)
|
|
expr_containers(#20063,#20062)
|
|
literals("foo","foo",#20063)
|
|
decl(#20063,#20060)
|
|
#20064=*
|
|
scopes(#20064,1)
|
|
scopenodes(#20062,#20064)
|
|
scopenesting(#20064,#20000)
|
|
#20065=@"var;{index};{#20064}"
|
|
variables(#20065,"index",#20064)
|
|
#20066=@"var;{this};{#20064}"
|
|
variables(#20066,"this",#20064)
|
|
#20067=@"var;{arguments};{#20064}"
|
|
variables(#20067,"arguments",#20064)
|
|
is_arguments_object(#20067)
|
|
is_generator(#20062)
|
|
#20068=*
|
|
stmts(#20068,1,#20062,-2,"{\n var ... ex++;\n}")
|
|
#20069=@"loc,{#10000},1,16,5,1"
|
|
locations_default(#20069,#10000,1,16,5,1)
|
|
hasLocation(#20068,#20069)
|
|
stmt_containers(#20068,#20062)
|
|
#20070=*
|
|
stmts(#20070,18,#20068,0,"var index = 0;")
|
|
#20071=@"loc,{#10000},2,3,2,16"
|
|
locations_default(#20071,#10000,2,3,2,16)
|
|
hasLocation(#20070,#20071)
|
|
stmt_containers(#20070,#20062)
|
|
#20072=*
|
|
exprs(#20072,64,#20070,0,"index = 0")
|
|
#20073=@"loc,{#10000},2,7,2,15"
|
|
locations_default(#20073,#10000,2,7,2,15)
|
|
hasLocation(#20072,#20073)
|
|
enclosing_stmt(#20072,#20070)
|
|
expr_containers(#20072,#20062)
|
|
#20074=*
|
|
exprs(#20074,78,#20072,0,"index")
|
|
hasLocation(#20074,#20029)
|
|
enclosing_stmt(#20074,#20070)
|
|
expr_containers(#20074,#20062)
|
|
literals("index","index",#20074)
|
|
decl(#20074,#20065)
|
|
#20075=*
|
|
exprs(#20075,3,#20072,1,"0")
|
|
hasLocation(#20075,#20033)
|
|
enclosing_stmt(#20075,#20070)
|
|
expr_containers(#20075,#20062)
|
|
literals("0","0",#20075)
|
|
#20076=*
|
|
stmts(#20076,12,#20068,1,"while(i ... ndex++;")
|
|
#20077=@"loc,{#10000},3,3,4,18"
|
|
locations_default(#20077,#10000,3,3,4,18)
|
|
hasLocation(#20076,#20077)
|
|
stmt_containers(#20076,#20062)
|
|
#20078=*
|
|
exprs(#20078,28,#20076,0,"index <= 2")
|
|
#20079=@"loc,{#10000},3,9,3,18"
|
|
locations_default(#20079,#10000,3,9,3,18)
|
|
hasLocation(#20078,#20079)
|
|
enclosing_stmt(#20078,#20076)
|
|
expr_containers(#20078,#20062)
|
|
#20080=*
|
|
exprs(#20080,79,#20078,0,"index")
|
|
hasLocation(#20080,#20041)
|
|
enclosing_stmt(#20080,#20076)
|
|
expr_containers(#20080,#20062)
|
|
literals("index","index",#20080)
|
|
bind(#20080,#20065)
|
|
#20081=*
|
|
exprs(#20081,3,#20078,1,"2")
|
|
hasLocation(#20081,#20045)
|
|
enclosing_stmt(#20081,#20076)
|
|
expr_containers(#20081,#20062)
|
|
literals("2","2",#20081)
|
|
#20082=*
|
|
stmts(#20082,2,#20076,1,"yield index++;")
|
|
#20083=@"loc,{#10000},4,5,4,18"
|
|
locations_default(#20083,#10000,4,5,4,18)
|
|
hasLocation(#20082,#20083)
|
|
stmt_containers(#20082,#20062)
|
|
#20084=*
|
|
exprs(#20084,69,#20082,0,"yield index++")
|
|
#20085=@"loc,{#10000},4,5,4,17"
|
|
locations_default(#20085,#10000,4,5,4,17)
|
|
hasLocation(#20084,#20085)
|
|
enclosing_stmt(#20084,#20082)
|
|
expr_containers(#20084,#20062)
|
|
#20086=*
|
|
exprs(#20086,60,#20084,0,"index++")
|
|
#20087=@"loc,{#10000},4,11,4,17"
|
|
locations_default(#20087,#10000,4,11,4,17)
|
|
hasLocation(#20086,#20087)
|
|
enclosing_stmt(#20086,#20082)
|
|
expr_containers(#20086,#20062)
|
|
#20088=*
|
|
exprs(#20088,79,#20086,0,"index")
|
|
hasLocation(#20088,#20051)
|
|
enclosing_stmt(#20088,#20082)
|
|
expr_containers(#20088,#20062)
|
|
literals("index","index",#20088)
|
|
bind(#20088,#20065)
|
|
#20089=*
|
|
entry_cfg_node(#20089,#20001)
|
|
#20090=@"loc,{#10000},1,1,1,0"
|
|
locations_default(#20090,#10000,1,1,1,0)
|
|
hasLocation(#20089,#20090)
|
|
#20091=*
|
|
exit_cfg_node(#20091,#20001)
|
|
hasLocation(#20091,#20058)
|
|
successor(#20062,#20091)
|
|
#20092=*
|
|
entry_cfg_node(#20092,#20062)
|
|
hasLocation(#20092,#20090)
|
|
#20093=*
|
|
exit_cfg_node(#20093,#20062)
|
|
hasLocation(#20093,#20058)
|
|
successor(#20076,#20080)
|
|
successor(#20082,#20088)
|
|
successor(#20088,#20086)
|
|
successor(#20086,#20084)
|
|
successor(#20084,#20080)
|
|
successor(#20081,#20078)
|
|
successor(#20080,#20081)
|
|
#20094=*
|
|
guard_node(#20094,1,#20078)
|
|
hasLocation(#20094,#20079)
|
|
successor(#20094,#20082)
|
|
#20095=*
|
|
guard_node(#20095,0,#20078)
|
|
hasLocation(#20095,#20079)
|
|
successor(#20095,#20093)
|
|
successor(#20078,#20094)
|
|
successor(#20078,#20095)
|
|
successor(#20070,#20074)
|
|
successor(#20075,#20072)
|
|
successor(#20074,#20075)
|
|
successor(#20072,#20076)
|
|
successor(#20068,#20070)
|
|
successor(#20092,#20068)
|
|
successor(#20063,#20062)
|
|
successor(#20089,#20063)
|
|
numlines(#10000,5,5,1)
|
|
filetype(#10000,"javascript")
|