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