mirror of
https://github.com/github/codeql.git
synced 2025-12-19 18:33:16 +01:00
343 lines
9.2 KiB
Plaintext
343 lines
9.2 KiB
Plaintext
#10000=@"/switch2.js;sourcefile"
|
|
files(#10000,"/switch2.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,"function f() {","
|
|
")
|
|
#20003=@"loc,{#10000},1,1,1,14"
|
|
locations_default(#20003,#10000,1,1,1,14)
|
|
hasLocation(#20002,#20003)
|
|
#20004=*
|
|
lines(#20004,#20001," switch(x) {","
|
|
")
|
|
#20005=@"loc,{#10000},2,1,2,15"
|
|
locations_default(#20005,#10000,2,1,2,15)
|
|
hasLocation(#20004,#20005)
|
|
indentation(#10000,2," ",4)
|
|
#20006=*
|
|
lines(#20006,#20001," case 0:","
|
|
")
|
|
#20007=@"loc,{#10000},3,1,3,11"
|
|
locations_default(#20007,#10000,3,1,3,11)
|
|
hasLocation(#20006,#20007)
|
|
indentation(#10000,3," ",4)
|
|
#20008=*
|
|
lines(#20008,#20001," default:","
|
|
")
|
|
#20009=@"loc,{#10000},4,1,4,12"
|
|
locations_default(#20009,#10000,4,1,4,12)
|
|
hasLocation(#20008,#20009)
|
|
indentation(#10000,4," ",4)
|
|
#20010=*
|
|
lines(#20010,#20001," return 42;","
|
|
")
|
|
#20011=@"loc,{#10000},5,1,5,18"
|
|
locations_default(#20011,#10000,5,1,5,18)
|
|
hasLocation(#20010,#20011)
|
|
indentation(#10000,5," ",8)
|
|
#20012=*
|
|
lines(#20012,#20001," case 1:","
|
|
")
|
|
#20013=@"loc,{#10000},6,1,6,11"
|
|
locations_default(#20013,#10000,6,1,6,11)
|
|
hasLocation(#20012,#20013)
|
|
indentation(#10000,6," ",4)
|
|
#20014=*
|
|
lines(#20014,#20001," return 56;","
|
|
")
|
|
#20015=@"loc,{#10000},7,1,7,18"
|
|
locations_default(#20015,#10000,7,1,7,18)
|
|
hasLocation(#20014,#20015)
|
|
indentation(#10000,7," ",8)
|
|
#20016=*
|
|
lines(#20016,#20001," }","
|
|
")
|
|
#20017=@"loc,{#10000},8,1,8,5"
|
|
locations_default(#20017,#10000,8,1,8,5)
|
|
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,9,0)
|
|
#20020=*
|
|
tokeninfo(#20020,7,#20001,0,"function")
|
|
#20021=@"loc,{#10000},1,1,1,8"
|
|
locations_default(#20021,#10000,1,1,1,8)
|
|
hasLocation(#20020,#20021)
|
|
#20022=*
|
|
tokeninfo(#20022,6,#20001,1,"f")
|
|
#20023=@"loc,{#10000},1,10,1,10"
|
|
locations_default(#20023,#10000,1,10,1,10)
|
|
hasLocation(#20022,#20023)
|
|
#20024=*
|
|
tokeninfo(#20024,8,#20001,2,"(")
|
|
#20025=@"loc,{#10000},1,11,1,11"
|
|
locations_default(#20025,#10000,1,11,1,11)
|
|
hasLocation(#20024,#20025)
|
|
#20026=*
|
|
tokeninfo(#20026,8,#20001,3,")")
|
|
#20027=@"loc,{#10000},1,12,1,12"
|
|
locations_default(#20027,#10000,1,12,1,12)
|
|
hasLocation(#20026,#20027)
|
|
#20028=*
|
|
tokeninfo(#20028,8,#20001,4,"{")
|
|
#20029=@"loc,{#10000},1,14,1,14"
|
|
locations_default(#20029,#10000,1,14,1,14)
|
|
hasLocation(#20028,#20029)
|
|
#20030=*
|
|
tokeninfo(#20030,7,#20001,5,"switch")
|
|
#20031=@"loc,{#10000},2,5,2,10"
|
|
locations_default(#20031,#10000,2,5,2,10)
|
|
hasLocation(#20030,#20031)
|
|
#20032=*
|
|
tokeninfo(#20032,8,#20001,6,"(")
|
|
#20033=@"loc,{#10000},2,11,2,11"
|
|
locations_default(#20033,#10000,2,11,2,11)
|
|
hasLocation(#20032,#20033)
|
|
#20034=*
|
|
tokeninfo(#20034,6,#20001,7,"x")
|
|
#20035=@"loc,{#10000},2,12,2,12"
|
|
locations_default(#20035,#10000,2,12,2,12)
|
|
hasLocation(#20034,#20035)
|
|
#20036=*
|
|
tokeninfo(#20036,8,#20001,8,")")
|
|
#20037=@"loc,{#10000},2,13,2,13"
|
|
locations_default(#20037,#10000,2,13,2,13)
|
|
hasLocation(#20036,#20037)
|
|
#20038=*
|
|
tokeninfo(#20038,8,#20001,9,"{")
|
|
#20039=@"loc,{#10000},2,15,2,15"
|
|
locations_default(#20039,#10000,2,15,2,15)
|
|
hasLocation(#20038,#20039)
|
|
#20040=*
|
|
tokeninfo(#20040,7,#20001,10,"case")
|
|
#20041=@"loc,{#10000},3,5,3,8"
|
|
locations_default(#20041,#10000,3,5,3,8)
|
|
hasLocation(#20040,#20041)
|
|
#20042=*
|
|
tokeninfo(#20042,3,#20001,11,"0")
|
|
#20043=@"loc,{#10000},3,10,3,10"
|
|
locations_default(#20043,#10000,3,10,3,10)
|
|
hasLocation(#20042,#20043)
|
|
#20044=*
|
|
tokeninfo(#20044,8,#20001,12,":")
|
|
#20045=@"loc,{#10000},3,11,3,11"
|
|
locations_default(#20045,#10000,3,11,3,11)
|
|
hasLocation(#20044,#20045)
|
|
#20046=*
|
|
tokeninfo(#20046,7,#20001,13,"default")
|
|
#20047=@"loc,{#10000},4,5,4,11"
|
|
locations_default(#20047,#10000,4,5,4,11)
|
|
hasLocation(#20046,#20047)
|
|
#20048=*
|
|
tokeninfo(#20048,8,#20001,14,":")
|
|
#20049=@"loc,{#10000},4,12,4,12"
|
|
locations_default(#20049,#10000,4,12,4,12)
|
|
hasLocation(#20048,#20049)
|
|
#20050=*
|
|
tokeninfo(#20050,7,#20001,15,"return")
|
|
#20051=@"loc,{#10000},5,9,5,14"
|
|
locations_default(#20051,#10000,5,9,5,14)
|
|
hasLocation(#20050,#20051)
|
|
#20052=*
|
|
tokeninfo(#20052,3,#20001,16,"42")
|
|
#20053=@"loc,{#10000},5,16,5,17"
|
|
locations_default(#20053,#10000,5,16,5,17)
|
|
hasLocation(#20052,#20053)
|
|
#20054=*
|
|
tokeninfo(#20054,8,#20001,17,";")
|
|
#20055=@"loc,{#10000},5,18,5,18"
|
|
locations_default(#20055,#10000,5,18,5,18)
|
|
hasLocation(#20054,#20055)
|
|
#20056=*
|
|
tokeninfo(#20056,7,#20001,18,"case")
|
|
#20057=@"loc,{#10000},6,5,6,8"
|
|
locations_default(#20057,#10000,6,5,6,8)
|
|
hasLocation(#20056,#20057)
|
|
#20058=*
|
|
tokeninfo(#20058,3,#20001,19,"1")
|
|
#20059=@"loc,{#10000},6,10,6,10"
|
|
locations_default(#20059,#10000,6,10,6,10)
|
|
hasLocation(#20058,#20059)
|
|
#20060=*
|
|
tokeninfo(#20060,8,#20001,20,":")
|
|
#20061=@"loc,{#10000},6,11,6,11"
|
|
locations_default(#20061,#10000,6,11,6,11)
|
|
hasLocation(#20060,#20061)
|
|
#20062=*
|
|
tokeninfo(#20062,7,#20001,21,"return")
|
|
#20063=@"loc,{#10000},7,9,7,14"
|
|
locations_default(#20063,#10000,7,9,7,14)
|
|
hasLocation(#20062,#20063)
|
|
#20064=*
|
|
tokeninfo(#20064,3,#20001,22,"56")
|
|
#20065=@"loc,{#10000},7,16,7,17"
|
|
locations_default(#20065,#10000,7,16,7,17)
|
|
hasLocation(#20064,#20065)
|
|
#20066=*
|
|
tokeninfo(#20066,8,#20001,23,";")
|
|
#20067=@"loc,{#10000},7,18,7,18"
|
|
locations_default(#20067,#10000,7,18,7,18)
|
|
hasLocation(#20066,#20067)
|
|
#20068=*
|
|
tokeninfo(#20068,8,#20001,24,"}")
|
|
#20069=@"loc,{#10000},8,5,8,5"
|
|
locations_default(#20069,#10000,8,5,8,5)
|
|
hasLocation(#20068,#20069)
|
|
#20070=*
|
|
tokeninfo(#20070,8,#20001,25,"}")
|
|
hasLocation(#20070,#20019)
|
|
#20071=*
|
|
tokeninfo(#20071,0,#20001,26,"")
|
|
#20072=@"loc,{#10000},10,1,10,0"
|
|
locations_default(#20072,#10000,10,1,10,0)
|
|
hasLocation(#20071,#20072)
|
|
toplevels(#20001,0)
|
|
#20073=@"loc,{#10000},1,1,10,0"
|
|
locations_default(#20073,#10000,1,1,10,0)
|
|
hasLocation(#20001,#20073)
|
|
#20074=@"var;{f};{#20000}"
|
|
variables(#20074,"f",#20000)
|
|
#20075=*
|
|
stmts(#20075,17,#20001,0,"functio ... }\n}")
|
|
#20076=@"loc,{#10000},1,1,9,1"
|
|
locations_default(#20076,#10000,1,1,9,1)
|
|
hasLocation(#20075,#20076)
|
|
stmt_containers(#20075,#20001)
|
|
#20077=*
|
|
exprs(#20077,78,#20075,-1,"f")
|
|
hasLocation(#20077,#20023)
|
|
expr_containers(#20077,#20075)
|
|
literals("f","f",#20077)
|
|
decl(#20077,#20074)
|
|
#20078=*
|
|
scopes(#20078,1)
|
|
scopenodes(#20075,#20078)
|
|
scopenesting(#20078,#20000)
|
|
#20079=@"var;{arguments};{#20078}"
|
|
variables(#20079,"arguments",#20078)
|
|
is_arguments_object(#20079)
|
|
#20080=*
|
|
stmts(#20080,1,#20075,-2,"{\n s ... }\n}")
|
|
#20081=@"loc,{#10000},1,14,9,1"
|
|
locations_default(#20081,#10000,1,14,9,1)
|
|
hasLocation(#20080,#20081)
|
|
stmt_containers(#20080,#20075)
|
|
#20082=*
|
|
stmts(#20082,8,#20080,0,"switch( ... ;\n }")
|
|
#20083=@"loc,{#10000},2,5,8,5"
|
|
locations_default(#20083,#10000,2,5,8,5)
|
|
hasLocation(#20082,#20083)
|
|
stmt_containers(#20082,#20075)
|
|
#20084=*
|
|
exprs(#20084,79,#20082,-1,"x")
|
|
hasLocation(#20084,#20035)
|
|
enclosing_stmt(#20084,#20082)
|
|
expr_containers(#20084,#20075)
|
|
literals("x","x",#20084)
|
|
#20085=@"var;{x};{#20000}"
|
|
variables(#20085,"x",#20000)
|
|
bind(#20084,#20085)
|
|
#20086=*
|
|
stmts(#20086,19,#20082,0,"case 0:")
|
|
#20087=@"loc,{#10000},3,5,3,11"
|
|
locations_default(#20087,#10000,3,5,3,11)
|
|
hasLocation(#20086,#20087)
|
|
stmt_containers(#20086,#20075)
|
|
#20088=*
|
|
exprs(#20088,3,#20086,-1,"0")
|
|
hasLocation(#20088,#20043)
|
|
enclosing_stmt(#20088,#20086)
|
|
expr_containers(#20088,#20075)
|
|
literals("0","0",#20088)
|
|
#20089=*
|
|
stmts(#20089,19,#20082,1,"default ... urn 42;")
|
|
#20090=@"loc,{#10000},4,5,5,18"
|
|
locations_default(#20090,#10000,4,5,5,18)
|
|
hasLocation(#20089,#20090)
|
|
stmt_containers(#20089,#20075)
|
|
#20091=*
|
|
stmts(#20091,9,#20089,0,"return 42;")
|
|
#20092=@"loc,{#10000},5,9,5,18"
|
|
locations_default(#20092,#10000,5,9,5,18)
|
|
hasLocation(#20091,#20092)
|
|
stmt_containers(#20091,#20075)
|
|
#20093=*
|
|
exprs(#20093,3,#20091,0,"42")
|
|
hasLocation(#20093,#20053)
|
|
enclosing_stmt(#20093,#20091)
|
|
expr_containers(#20093,#20075)
|
|
literals("42","42",#20093)
|
|
#20094=*
|
|
stmts(#20094,19,#20082,2,"case 1: ... urn 56;")
|
|
#20095=@"loc,{#10000},6,5,7,18"
|
|
locations_default(#20095,#10000,6,5,7,18)
|
|
hasLocation(#20094,#20095)
|
|
stmt_containers(#20094,#20075)
|
|
#20096=*
|
|
exprs(#20096,3,#20094,-1,"1")
|
|
hasLocation(#20096,#20059)
|
|
enclosing_stmt(#20096,#20094)
|
|
expr_containers(#20096,#20075)
|
|
literals("1","1",#20096)
|
|
#20097=*
|
|
stmts(#20097,9,#20094,0,"return 56;")
|
|
#20098=@"loc,{#10000},7,9,7,18"
|
|
locations_default(#20098,#10000,7,9,7,18)
|
|
hasLocation(#20097,#20098)
|
|
stmt_containers(#20097,#20075)
|
|
#20099=*
|
|
exprs(#20099,3,#20097,0,"56")
|
|
hasLocation(#20099,#20065)
|
|
enclosing_stmt(#20099,#20097)
|
|
expr_containers(#20099,#20075)
|
|
literals("56","56",#20099)
|
|
#20100=*
|
|
entry_cfg_node(#20100,#20001)
|
|
#20101=@"loc,{#10000},1,1,1,0"
|
|
locations_default(#20101,#10000,1,1,1,0)
|
|
hasLocation(#20100,#20101)
|
|
#20102=*
|
|
exit_cfg_node(#20102,#20001)
|
|
hasLocation(#20102,#20072)
|
|
successor(#20075,#20102)
|
|
#20103=*
|
|
entry_cfg_node(#20103,#20075)
|
|
hasLocation(#20103,#20101)
|
|
#20104=*
|
|
exit_cfg_node(#20104,#20075)
|
|
#20105=@"loc,{#10000},9,2,9,1"
|
|
locations_default(#20105,#10000,9,2,9,1)
|
|
hasLocation(#20104,#20105)
|
|
successor(#20080,#20082)
|
|
successor(#20082,#20084)
|
|
successor(#20084,#20086)
|
|
successor(#20094,#20096)
|
|
successor(#20096,#20099)
|
|
successor(#20096,#20089)
|
|
successor(#20099,#20097)
|
|
successor(#20097,#20104)
|
|
successor(#20089,#20093)
|
|
successor(#20093,#20091)
|
|
successor(#20091,#20104)
|
|
successor(#20086,#20088)
|
|
successor(#20088,#20089)
|
|
successor(#20088,#20094)
|
|
successor(#20103,#20080)
|
|
successor(#20077,#20075)
|
|
successor(#20100,#20077)
|
|
numlines(#10000,9,9,0)
|
|
filetype(#10000,"javascript")
|