Files
codeql/javascript/extractor/tests/ts/output/trap/export.ts.trap
2026-02-27 14:15:34 +01:00

335 lines
9.0 KiB
Plaintext

#10000=@"/export.ts;sourcefile"
files(#10000,"/export.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,"export const foo = 42;","
")
#20003=@"loc,{#10000},1,1,1,22"
locations_default(#20003,#10000,1,1,1,22)
hasLocation(#20002,#20003)
#20004=*
lines(#20004,#20001,"","
")
#20005=@"loc,{#10000},2,1,2,0"
locations_default(#20005,#10000,2,1,2,0)
hasLocation(#20004,#20005)
#20006=*
lines(#20006,#20001,"export class C {}","
")
#20007=@"loc,{#10000},3,1,3,17"
locations_default(#20007,#10000,3,1,3,17)
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,"export default function f() {};","
")
#20011=@"loc,{#10000},5,1,5,31"
locations_default(#20011,#10000,5,1,5,31)
hasLocation(#20010,#20011)
numlines(#20001,5,3,0)
#20012=*
tokeninfo(#20012,7,#20001,0,"export")
#20013=@"loc,{#10000},1,1,1,6"
locations_default(#20013,#10000,1,1,1,6)
hasLocation(#20012,#20013)
#20014=*
tokeninfo(#20014,7,#20001,1,"const")
#20015=@"loc,{#10000},1,8,1,12"
locations_default(#20015,#10000,1,8,1,12)
hasLocation(#20014,#20015)
#20016=*
tokeninfo(#20016,6,#20001,2,"foo")
#20017=@"loc,{#10000},1,14,1,16"
locations_default(#20017,#10000,1,14,1,16)
hasLocation(#20016,#20017)
#20018=*
tokeninfo(#20018,8,#20001,3,"=")
#20019=@"loc,{#10000},1,18,1,18"
locations_default(#20019,#10000,1,18,1,18)
hasLocation(#20018,#20019)
#20020=*
tokeninfo(#20020,3,#20001,4,"42")
#20021=@"loc,{#10000},1,20,1,21"
locations_default(#20021,#10000,1,20,1,21)
hasLocation(#20020,#20021)
#20022=*
tokeninfo(#20022,8,#20001,5,";")
#20023=@"loc,{#10000},1,22,1,22"
locations_default(#20023,#10000,1,22,1,22)
hasLocation(#20022,#20023)
#20024=*
tokeninfo(#20024,7,#20001,6,"export")
#20025=@"loc,{#10000},3,1,3,6"
locations_default(#20025,#10000,3,1,3,6)
hasLocation(#20024,#20025)
#20026=*
tokeninfo(#20026,7,#20001,7,"class")
#20027=@"loc,{#10000},3,8,3,12"
locations_default(#20027,#10000,3,8,3,12)
hasLocation(#20026,#20027)
#20028=*
tokeninfo(#20028,6,#20001,8,"C")
#20029=@"loc,{#10000},3,14,3,14"
locations_default(#20029,#10000,3,14,3,14)
hasLocation(#20028,#20029)
#20030=*
tokeninfo(#20030,8,#20001,9,"{")
#20031=@"loc,{#10000},3,16,3,16"
locations_default(#20031,#10000,3,16,3,16)
hasLocation(#20030,#20031)
#20032=*
tokeninfo(#20032,8,#20001,10,"}")
#20033=@"loc,{#10000},3,17,3,17"
locations_default(#20033,#10000,3,17,3,17)
hasLocation(#20032,#20033)
#20034=*
tokeninfo(#20034,7,#20001,11,"export")
#20035=@"loc,{#10000},5,1,5,6"
locations_default(#20035,#10000,5,1,5,6)
hasLocation(#20034,#20035)
#20036=*
tokeninfo(#20036,7,#20001,12,"default")
#20037=@"loc,{#10000},5,8,5,14"
locations_default(#20037,#10000,5,8,5,14)
hasLocation(#20036,#20037)
#20038=*
tokeninfo(#20038,7,#20001,13,"function")
#20039=@"loc,{#10000},5,16,5,23"
locations_default(#20039,#10000,5,16,5,23)
hasLocation(#20038,#20039)
#20040=*
tokeninfo(#20040,6,#20001,14,"f")
#20041=@"loc,{#10000},5,25,5,25"
locations_default(#20041,#10000,5,25,5,25)
hasLocation(#20040,#20041)
#20042=*
tokeninfo(#20042,8,#20001,15,"(")
#20043=@"loc,{#10000},5,26,5,26"
locations_default(#20043,#10000,5,26,5,26)
hasLocation(#20042,#20043)
#20044=*
tokeninfo(#20044,8,#20001,16,")")
#20045=@"loc,{#10000},5,27,5,27"
locations_default(#20045,#10000,5,27,5,27)
hasLocation(#20044,#20045)
#20046=*
tokeninfo(#20046,8,#20001,17,"{")
#20047=@"loc,{#10000},5,29,5,29"
locations_default(#20047,#10000,5,29,5,29)
hasLocation(#20046,#20047)
#20048=*
tokeninfo(#20048,8,#20001,18,"}")
#20049=@"loc,{#10000},5,30,5,30"
locations_default(#20049,#10000,5,30,5,30)
hasLocation(#20048,#20049)
#20050=*
tokeninfo(#20050,8,#20001,19,";")
#20051=@"loc,{#10000},5,31,5,31"
locations_default(#20051,#10000,5,31,5,31)
hasLocation(#20050,#20051)
#20052=*
tokeninfo(#20052,0,#20001,20,"")
#20053=@"loc,{#10000},6,1,6,0"
locations_default(#20053,#10000,6,1,6,0)
hasLocation(#20052,#20053)
toplevels(#20001,0)
#20054=@"loc,{#10000},1,1,6,0"
locations_default(#20054,#10000,1,1,6,0)
hasLocation(#20001,#20054)
#20055=@"module;{#10000},1,1"
scopes(#20055,3)
scopenodes(#20001,#20055)
scopenesting(#20055,#20000)
is_module(#20001)
is_es2015_module(#20001)
#20056=@"var;{foo};{#20055}"
variables(#20056,"foo",#20055)
#20057=@"var;{C};{#20055}"
variables(#20057,"C",#20055)
#20058=@"var;{f};{#20055}"
variables(#20058,"f",#20055)
#20059=@"local_type_name;{C};{#20055}"
local_type_names(#20059,"C",#20055)
#20060=@"var;{this};{#20055}"
variables(#20060,"this",#20055)
#20061=*
stmts(#20061,30,#20001,0,"export ... o = 42;")
hasLocation(#20061,#20003)
stmt_containers(#20061,#20001)
#20062=*
stmts(#20062,22,#20061,-1,"const foo = 42;")
#20063=@"loc,{#10000},1,8,1,22"
locations_default(#20063,#10000,1,8,1,22)
hasLocation(#20062,#20063)
stmt_containers(#20062,#20001)
#20064=*
exprs(#20064,64,#20062,0,"foo = 42")
#20065=@"loc,{#10000},1,14,1,21"
locations_default(#20065,#10000,1,14,1,21)
hasLocation(#20064,#20065)
enclosing_stmt(#20064,#20062)
expr_containers(#20064,#20001)
#20066=*
exprs(#20066,78,#20064,0,"foo")
hasLocation(#20066,#20017)
enclosing_stmt(#20066,#20062)
expr_containers(#20066,#20001)
literals("foo","foo",#20066)
decl(#20066,#20056)
#20067=*
exprs(#20067,3,#20064,1,"42")
hasLocation(#20067,#20021)
enclosing_stmt(#20067,#20062)
expr_containers(#20067,#20001)
literals("42","42",#20067)
#20068=*
stmts(#20068,30,#20001,1,"export class C {}")
hasLocation(#20068,#20007)
stmt_containers(#20068,#20001)
#20069=*
stmts(#20069,26,#20068,-1,"class C {}")
#20070=@"loc,{#10000},3,8,3,17"
locations_default(#20070,#10000,3,8,3,17)
hasLocation(#20069,#20070)
stmt_containers(#20069,#20001)
#20071=*
exprs(#20071,78,#20069,0,"C")
hasLocation(#20071,#20029)
enclosing_stmt(#20071,#20069)
expr_containers(#20071,#20001)
literals("C","C",#20071)
decl(#20071,#20057)
typedecl(#20071,#20059)
#20072=*
scopes(#20072,10)
scopenodes(#20069,#20072)
scopenesting(#20072,#20055)
#20073=@"var;{this};{#20072}"
variables(#20073,"this",#20072)
#20074=*
properties(#20074,#20069,2,0,"constructor() {}")
#20075=@"loc,{#10000},3,16,3,15"
locations_default(#20075,#10000,3,16,3,15)
hasLocation(#20074,#20075)
#20076=*
exprs(#20076,0,#20074,0,"constructor")
hasLocation(#20076,#20075)
enclosing_stmt(#20076,#20069)
expr_containers(#20076,#20001)
literals("constructor","constructor",#20076)
#20077=*
exprs(#20077,9,#20074,1,"() {}")
hasLocation(#20077,#20075)
enclosing_stmt(#20077,#20069)
expr_containers(#20077,#20001)
#20078=*
scopes(#20078,1)
scopenodes(#20077,#20078)
scopenesting(#20078,#20072)
#20079=@"var;{this};{#20078}"
variables(#20079,"this",#20078)
#20080=@"var;{arguments};{#20078}"
variables(#20080,"arguments",#20078)
is_arguments_object(#20080)
#20081=*
stmts(#20081,1,#20077,-2,"{}")
hasLocation(#20081,#20075)
stmt_containers(#20081,#20077)
is_method(#20074)
#20082=*
stmts(#20082,29,#20001,2,"export ... f() {}")
#20083=@"loc,{#10000},5,1,5,30"
locations_default(#20083,#10000,5,1,5,30)
hasLocation(#20082,#20083)
stmt_containers(#20082,#20001)
#20084=*
stmts(#20084,17,#20082,0,"function f() {}")
#20085=@"loc,{#10000},5,16,5,30"
locations_default(#20085,#10000,5,16,5,30)
hasLocation(#20084,#20085)
stmt_containers(#20084,#20001)
#20086=*
exprs(#20086,78,#20084,-1,"f")
hasLocation(#20086,#20041)
expr_containers(#20086,#20084)
literals("f","f",#20086)
decl(#20086,#20058)
#20087=*
scopes(#20087,1)
scopenodes(#20084,#20087)
scopenesting(#20087,#20055)
#20088=@"var;{this};{#20087}"
variables(#20088,"this",#20087)
#20089=@"var;{arguments};{#20087}"
variables(#20089,"arguments",#20087)
is_arguments_object(#20089)
#20090=*
stmts(#20090,1,#20084,-2,"{}")
#20091=@"loc,{#10000},5,29,5,30"
locations_default(#20091,#10000,5,29,5,30)
hasLocation(#20090,#20091)
stmt_containers(#20090,#20084)
#20092=*
stmts(#20092,0,#20001,3,";")
hasLocation(#20092,#20051)
stmt_containers(#20092,#20001)
#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,#20053)
successor(#20092,#20095)
successor(#20082,#20084)
successor(#20084,#20092)
#20096=*
entry_cfg_node(#20096,#20084)
#20097=@"loc,{#10000},5,16,5,15"
locations_default(#20097,#10000,5,16,5,15)
hasLocation(#20096,#20097)
#20098=*
exit_cfg_node(#20098,#20084)
#20099=@"loc,{#10000},5,31,5,30"
locations_default(#20099,#10000,5,31,5,30)
hasLocation(#20098,#20099)
successor(#20090,#20098)
successor(#20096,#20090)
successor(#20068,#20071)
successor(#20077,#20074)
#20100=*
entry_cfg_node(#20100,#20077)
hasLocation(#20100,#20075)
#20101=*
exit_cfg_node(#20101,#20077)
hasLocation(#20101,#20075)
successor(#20081,#20101)
successor(#20100,#20081)
successor(#20076,#20077)
successor(#20074,#20069)
successor(#20071,#20076)
successor(#20069,#20082)
successor(#20061,#20062)
successor(#20062,#20066)
successor(#20067,#20064)
successor(#20066,#20067)
successor(#20064,#20068)
successor(#20086,#20061)
successor(#20093,#20086)
numlines(#10000,5,3,0)
filetype(#10000,"typescript")