mirror of
https://github.com/github/codeql.git
synced 2026-04-13 02:54:01 +02:00
347 lines
9.4 KiB
Plaintext
347 lines
9.4 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=@"var;{this};{#20000}"
|
|
variables(#20075,"this",#20000)
|
|
#20076=*
|
|
stmts(#20076,17,#20001,0,"functio ... }\n}")
|
|
#20077=@"loc,{#10000},1,1,9,1"
|
|
locations_default(#20077,#10000,1,1,9,1)
|
|
hasLocation(#20076,#20077)
|
|
stmt_containers(#20076,#20001)
|
|
#20078=*
|
|
exprs(#20078,78,#20076,-1,"f")
|
|
hasLocation(#20078,#20023)
|
|
expr_containers(#20078,#20076)
|
|
literals("f","f",#20078)
|
|
decl(#20078,#20074)
|
|
#20079=*
|
|
scopes(#20079,1)
|
|
scopenodes(#20076,#20079)
|
|
scopenesting(#20079,#20000)
|
|
#20080=@"var;{this};{#20079}"
|
|
variables(#20080,"this",#20079)
|
|
#20081=@"var;{arguments};{#20079}"
|
|
variables(#20081,"arguments",#20079)
|
|
is_arguments_object(#20081)
|
|
#20082=*
|
|
stmts(#20082,1,#20076,-2,"{\n s ... }\n}")
|
|
#20083=@"loc,{#10000},1,14,9,1"
|
|
locations_default(#20083,#10000,1,14,9,1)
|
|
hasLocation(#20082,#20083)
|
|
stmt_containers(#20082,#20076)
|
|
#20084=*
|
|
stmts(#20084,8,#20082,0,"switch( ... ;\n }")
|
|
#20085=@"loc,{#10000},2,5,8,5"
|
|
locations_default(#20085,#10000,2,5,8,5)
|
|
hasLocation(#20084,#20085)
|
|
stmt_containers(#20084,#20076)
|
|
#20086=*
|
|
exprs(#20086,79,#20084,-1,"x")
|
|
hasLocation(#20086,#20035)
|
|
enclosing_stmt(#20086,#20084)
|
|
expr_containers(#20086,#20076)
|
|
literals("x","x",#20086)
|
|
#20087=@"var;{x};{#20000}"
|
|
variables(#20087,"x",#20000)
|
|
bind(#20086,#20087)
|
|
#20088=*
|
|
stmts(#20088,19,#20084,0,"case 0:")
|
|
#20089=@"loc,{#10000},3,5,3,11"
|
|
locations_default(#20089,#10000,3,5,3,11)
|
|
hasLocation(#20088,#20089)
|
|
stmt_containers(#20088,#20076)
|
|
#20090=*
|
|
exprs(#20090,3,#20088,-1,"0")
|
|
hasLocation(#20090,#20043)
|
|
enclosing_stmt(#20090,#20088)
|
|
expr_containers(#20090,#20076)
|
|
literals("0","0",#20090)
|
|
#20091=*
|
|
stmts(#20091,19,#20084,1,"default ... urn 42;")
|
|
#20092=@"loc,{#10000},4,5,5,18"
|
|
locations_default(#20092,#10000,4,5,5,18)
|
|
hasLocation(#20091,#20092)
|
|
stmt_containers(#20091,#20076)
|
|
#20093=*
|
|
stmts(#20093,9,#20091,0,"return 42;")
|
|
#20094=@"loc,{#10000},5,9,5,18"
|
|
locations_default(#20094,#10000,5,9,5,18)
|
|
hasLocation(#20093,#20094)
|
|
stmt_containers(#20093,#20076)
|
|
#20095=*
|
|
exprs(#20095,3,#20093,0,"42")
|
|
hasLocation(#20095,#20053)
|
|
enclosing_stmt(#20095,#20093)
|
|
expr_containers(#20095,#20076)
|
|
literals("42","42",#20095)
|
|
#20096=*
|
|
stmts(#20096,19,#20084,2,"case 1: ... urn 56;")
|
|
#20097=@"loc,{#10000},6,5,7,18"
|
|
locations_default(#20097,#10000,6,5,7,18)
|
|
hasLocation(#20096,#20097)
|
|
stmt_containers(#20096,#20076)
|
|
#20098=*
|
|
exprs(#20098,3,#20096,-1,"1")
|
|
hasLocation(#20098,#20059)
|
|
enclosing_stmt(#20098,#20096)
|
|
expr_containers(#20098,#20076)
|
|
literals("1","1",#20098)
|
|
#20099=*
|
|
stmts(#20099,9,#20096,0,"return 56;")
|
|
#20100=@"loc,{#10000},7,9,7,18"
|
|
locations_default(#20100,#10000,7,9,7,18)
|
|
hasLocation(#20099,#20100)
|
|
stmt_containers(#20099,#20076)
|
|
#20101=*
|
|
exprs(#20101,3,#20099,0,"56")
|
|
hasLocation(#20101,#20065)
|
|
enclosing_stmt(#20101,#20099)
|
|
expr_containers(#20101,#20076)
|
|
literals("56","56",#20101)
|
|
#20102=*
|
|
entry_cfg_node(#20102,#20001)
|
|
#20103=@"loc,{#10000},1,1,1,0"
|
|
locations_default(#20103,#10000,1,1,1,0)
|
|
hasLocation(#20102,#20103)
|
|
#20104=*
|
|
exit_cfg_node(#20104,#20001)
|
|
hasLocation(#20104,#20072)
|
|
successor(#20076,#20104)
|
|
#20105=*
|
|
entry_cfg_node(#20105,#20076)
|
|
hasLocation(#20105,#20103)
|
|
#20106=*
|
|
exit_cfg_node(#20106,#20076)
|
|
#20107=@"loc,{#10000},9,2,9,1"
|
|
locations_default(#20107,#10000,9,2,9,1)
|
|
hasLocation(#20106,#20107)
|
|
successor(#20084,#20086)
|
|
successor(#20086,#20088)
|
|
successor(#20096,#20098)
|
|
successor(#20098,#20101)
|
|
successor(#20098,#20091)
|
|
successor(#20101,#20099)
|
|
successor(#20099,#20106)
|
|
successor(#20091,#20095)
|
|
successor(#20095,#20093)
|
|
successor(#20093,#20106)
|
|
successor(#20088,#20090)
|
|
successor(#20090,#20091)
|
|
successor(#20090,#20096)
|
|
successor(#20082,#20084)
|
|
successor(#20105,#20082)
|
|
successor(#20078,#20076)
|
|
successor(#20102,#20078)
|
|
numlines(#10000,9,9,0)
|
|
filetype(#10000,"javascript")
|