mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
317 lines
8.7 KiB
Plaintext
317 lines
8.7 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=*
|
|
stmts(#20061,17,#20001,0,"functio ... ex++;\n}")
|
|
hasLocation(#20061,#20059)
|
|
stmt_containers(#20061,#20001)
|
|
#20062=*
|
|
exprs(#20062,78,#20061,-1,"foo")
|
|
hasLocation(#20062,#20019)
|
|
expr_containers(#20062,#20061)
|
|
literals("foo","foo",#20062)
|
|
decl(#20062,#20060)
|
|
#20063=*
|
|
scopes(#20063,1)
|
|
scopenodes(#20061,#20063)
|
|
scopenesting(#20063,#20000)
|
|
#20064=@"var;{index};{#20063}"
|
|
variables(#20064,"index",#20063)
|
|
#20065=@"var;{arguments};{#20063}"
|
|
variables(#20065,"arguments",#20063)
|
|
is_arguments_object(#20065)
|
|
is_generator(#20061)
|
|
#20066=*
|
|
stmts(#20066,1,#20061,-2,"{\n var ... ex++;\n}")
|
|
#20067=@"loc,{#10000},1,16,5,1"
|
|
locations_default(#20067,#10000,1,16,5,1)
|
|
hasLocation(#20066,#20067)
|
|
stmt_containers(#20066,#20061)
|
|
#20068=*
|
|
stmts(#20068,18,#20066,0,"var index = 0;")
|
|
#20069=@"loc,{#10000},2,3,2,16"
|
|
locations_default(#20069,#10000,2,3,2,16)
|
|
hasLocation(#20068,#20069)
|
|
stmt_containers(#20068,#20061)
|
|
#20070=*
|
|
exprs(#20070,64,#20068,0,"index = 0")
|
|
#20071=@"loc,{#10000},2,7,2,15"
|
|
locations_default(#20071,#10000,2,7,2,15)
|
|
hasLocation(#20070,#20071)
|
|
enclosing_stmt(#20070,#20068)
|
|
expr_containers(#20070,#20061)
|
|
#20072=*
|
|
exprs(#20072,78,#20070,0,"index")
|
|
hasLocation(#20072,#20029)
|
|
enclosing_stmt(#20072,#20068)
|
|
expr_containers(#20072,#20061)
|
|
literals("index","index",#20072)
|
|
decl(#20072,#20064)
|
|
#20073=*
|
|
exprs(#20073,3,#20070,1,"0")
|
|
hasLocation(#20073,#20033)
|
|
enclosing_stmt(#20073,#20068)
|
|
expr_containers(#20073,#20061)
|
|
literals("0","0",#20073)
|
|
#20074=*
|
|
stmts(#20074,12,#20066,1,"while(i ... ndex++;")
|
|
#20075=@"loc,{#10000},3,3,4,18"
|
|
locations_default(#20075,#10000,3,3,4,18)
|
|
hasLocation(#20074,#20075)
|
|
stmt_containers(#20074,#20061)
|
|
#20076=*
|
|
exprs(#20076,28,#20074,0,"index <= 2")
|
|
#20077=@"loc,{#10000},3,9,3,18"
|
|
locations_default(#20077,#10000,3,9,3,18)
|
|
hasLocation(#20076,#20077)
|
|
enclosing_stmt(#20076,#20074)
|
|
expr_containers(#20076,#20061)
|
|
#20078=*
|
|
exprs(#20078,79,#20076,0,"index")
|
|
hasLocation(#20078,#20041)
|
|
enclosing_stmt(#20078,#20074)
|
|
expr_containers(#20078,#20061)
|
|
literals("index","index",#20078)
|
|
bind(#20078,#20064)
|
|
#20079=*
|
|
exprs(#20079,3,#20076,1,"2")
|
|
hasLocation(#20079,#20045)
|
|
enclosing_stmt(#20079,#20074)
|
|
expr_containers(#20079,#20061)
|
|
literals("2","2",#20079)
|
|
#20080=*
|
|
stmts(#20080,2,#20074,1,"yield index++;")
|
|
#20081=@"loc,{#10000},4,5,4,18"
|
|
locations_default(#20081,#10000,4,5,4,18)
|
|
hasLocation(#20080,#20081)
|
|
stmt_containers(#20080,#20061)
|
|
#20082=*
|
|
exprs(#20082,69,#20080,0,"yield index++")
|
|
#20083=@"loc,{#10000},4,5,4,17"
|
|
locations_default(#20083,#10000,4,5,4,17)
|
|
hasLocation(#20082,#20083)
|
|
enclosing_stmt(#20082,#20080)
|
|
expr_containers(#20082,#20061)
|
|
#20084=*
|
|
exprs(#20084,60,#20082,0,"index++")
|
|
#20085=@"loc,{#10000},4,11,4,17"
|
|
locations_default(#20085,#10000,4,11,4,17)
|
|
hasLocation(#20084,#20085)
|
|
enclosing_stmt(#20084,#20080)
|
|
expr_containers(#20084,#20061)
|
|
#20086=*
|
|
exprs(#20086,79,#20084,0,"index")
|
|
hasLocation(#20086,#20051)
|
|
enclosing_stmt(#20086,#20080)
|
|
expr_containers(#20086,#20061)
|
|
literals("index","index",#20086)
|
|
bind(#20086,#20064)
|
|
#20087=*
|
|
entry_cfg_node(#20087,#20001)
|
|
#20088=@"loc,{#10000},1,1,1,0"
|
|
locations_default(#20088,#10000,1,1,1,0)
|
|
hasLocation(#20087,#20088)
|
|
#20089=*
|
|
exit_cfg_node(#20089,#20001)
|
|
hasLocation(#20089,#20058)
|
|
successor(#20061,#20089)
|
|
#20090=*
|
|
entry_cfg_node(#20090,#20061)
|
|
hasLocation(#20090,#20088)
|
|
#20091=*
|
|
exit_cfg_node(#20091,#20061)
|
|
hasLocation(#20091,#20058)
|
|
successor(#20066,#20068)
|
|
successor(#20074,#20078)
|
|
successor(#20080,#20086)
|
|
successor(#20086,#20084)
|
|
successor(#20084,#20082)
|
|
successor(#20082,#20078)
|
|
successor(#20079,#20076)
|
|
successor(#20078,#20079)
|
|
#20092=*
|
|
guard_node(#20092,1,#20076)
|
|
hasLocation(#20092,#20077)
|
|
successor(#20092,#20080)
|
|
#20093=*
|
|
guard_node(#20093,0,#20076)
|
|
hasLocation(#20093,#20077)
|
|
successor(#20093,#20091)
|
|
successor(#20076,#20092)
|
|
successor(#20076,#20093)
|
|
successor(#20068,#20072)
|
|
successor(#20073,#20070)
|
|
successor(#20072,#20073)
|
|
successor(#20070,#20074)
|
|
successor(#20090,#20066)
|
|
successor(#20062,#20061)
|
|
successor(#20087,#20062)
|
|
numlines(#10000,5,5,1)
|
|
filetype(#10000,"javascript")
|