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

549 lines
14 KiB
Plaintext

#10000=@"/fields.js;sourcefile"
files(#10000,"/fields.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,"class A {","
")
#20003=@"loc,{#10000},1,1,1,9"
locations_default(#20003,#10000,1,1,1,9)
hasLocation(#20002,#20003)
#20004=*
lines(#20004,#20001," x = new.target;","
")
#20005=@"loc,{#10000},2,1,2,17"
locations_default(#20005,#10000,2,1,2,17)
hasLocation(#20004,#20005)
indentation(#10000,2," ",2)
#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,"class B extends A {","
")
#20011=@"loc,{#10000},5,1,5,19"
locations_default(#20011,#10000,5,1,5,19)
hasLocation(#20010,#20011)
#20012=*
lines(#20012,#20001," y = super.x;","
")
#20013=@"loc,{#10000},6,1,6,14"
locations_default(#20013,#10000,6,1,6,14)
hasLocation(#20012,#20013)
indentation(#10000,6," ",2)
#20014=*
lines(#20014,#20001,"}","
")
#20015=@"loc,{#10000},7,1,7,1"
locations_default(#20015,#10000,7,1,7,1)
hasLocation(#20014,#20015)
#20016=*
lines(#20016,#20001,"","
")
#20017=@"loc,{#10000},8,1,8,0"
locations_default(#20017,#10000,8,1,8,0)
hasLocation(#20016,#20017)
#20018=*
lines(#20018,#20001,"class C {","
")
#20019=@"loc,{#10000},9,1,9,9"
locations_default(#20019,#10000,9,1,9,9)
hasLocation(#20018,#20019)
#20020=*
lines(#20020,#20001," async;","
")
#20021=@"loc,{#10000},10,1,10,8"
locations_default(#20021,#10000,10,1,10,8)
hasLocation(#20020,#20021)
indentation(#10000,10," ",2)
#20022=*
lines(#20022,#20001,"}","
")
#20023=@"loc,{#10000},11,1,11,1"
locations_default(#20023,#10000,11,1,11,1)
hasLocation(#20022,#20023)
numlines(#20001,11,9,0)
#20024=*
tokeninfo(#20024,7,#20001,0,"class")
#20025=@"loc,{#10000},1,1,1,5"
locations_default(#20025,#10000,1,1,1,5)
hasLocation(#20024,#20025)
#20026=*
tokeninfo(#20026,6,#20001,1,"A")
#20027=@"loc,{#10000},1,7,1,7"
locations_default(#20027,#10000,1,7,1,7)
hasLocation(#20026,#20027)
#20028=*
tokeninfo(#20028,8,#20001,2,"{")
#20029=@"loc,{#10000},1,9,1,9"
locations_default(#20029,#10000,1,9,1,9)
hasLocation(#20028,#20029)
#20030=*
tokeninfo(#20030,6,#20001,3,"x")
#20031=@"loc,{#10000},2,3,2,3"
locations_default(#20031,#10000,2,3,2,3)
hasLocation(#20030,#20031)
#20032=*
tokeninfo(#20032,8,#20001,4,"=")
#20033=@"loc,{#10000},2,5,2,5"
locations_default(#20033,#10000,2,5,2,5)
hasLocation(#20032,#20033)
#20034=*
tokeninfo(#20034,7,#20001,5,"new")
#20035=@"loc,{#10000},2,7,2,9"
locations_default(#20035,#10000,2,7,2,9)
hasLocation(#20034,#20035)
#20036=*
tokeninfo(#20036,8,#20001,6,".")
#20037=@"loc,{#10000},2,10,2,10"
locations_default(#20037,#10000,2,10,2,10)
hasLocation(#20036,#20037)
#20038=*
tokeninfo(#20038,6,#20001,7,"target")
#20039=@"loc,{#10000},2,11,2,16"
locations_default(#20039,#10000,2,11,2,16)
hasLocation(#20038,#20039)
#20040=*
tokeninfo(#20040,8,#20001,8,";")
#20041=@"loc,{#10000},2,17,2,17"
locations_default(#20041,#10000,2,17,2,17)
hasLocation(#20040,#20041)
#20042=*
tokeninfo(#20042,8,#20001,9,"}")
hasLocation(#20042,#20007)
#20043=*
tokeninfo(#20043,7,#20001,10,"class")
#20044=@"loc,{#10000},5,1,5,5"
locations_default(#20044,#10000,5,1,5,5)
hasLocation(#20043,#20044)
#20045=*
tokeninfo(#20045,6,#20001,11,"B")
#20046=@"loc,{#10000},5,7,5,7"
locations_default(#20046,#10000,5,7,5,7)
hasLocation(#20045,#20046)
#20047=*
tokeninfo(#20047,7,#20001,12,"extends")
#20048=@"loc,{#10000},5,9,5,15"
locations_default(#20048,#10000,5,9,5,15)
hasLocation(#20047,#20048)
#20049=*
tokeninfo(#20049,6,#20001,13,"A")
#20050=@"loc,{#10000},5,17,5,17"
locations_default(#20050,#10000,5,17,5,17)
hasLocation(#20049,#20050)
#20051=*
tokeninfo(#20051,8,#20001,14,"{")
#20052=@"loc,{#10000},5,19,5,19"
locations_default(#20052,#10000,5,19,5,19)
hasLocation(#20051,#20052)
#20053=*
tokeninfo(#20053,6,#20001,15,"y")
#20054=@"loc,{#10000},6,3,6,3"
locations_default(#20054,#10000,6,3,6,3)
hasLocation(#20053,#20054)
#20055=*
tokeninfo(#20055,8,#20001,16,"=")
#20056=@"loc,{#10000},6,5,6,5"
locations_default(#20056,#10000,6,5,6,5)
hasLocation(#20055,#20056)
#20057=*
tokeninfo(#20057,7,#20001,17,"super")
#20058=@"loc,{#10000},6,7,6,11"
locations_default(#20058,#10000,6,7,6,11)
hasLocation(#20057,#20058)
#20059=*
tokeninfo(#20059,8,#20001,18,".")
#20060=@"loc,{#10000},6,12,6,12"
locations_default(#20060,#10000,6,12,6,12)
hasLocation(#20059,#20060)
#20061=*
tokeninfo(#20061,6,#20001,19,"x")
#20062=@"loc,{#10000},6,13,6,13"
locations_default(#20062,#10000,6,13,6,13)
hasLocation(#20061,#20062)
#20063=*
tokeninfo(#20063,8,#20001,20,";")
#20064=@"loc,{#10000},6,14,6,14"
locations_default(#20064,#10000,6,14,6,14)
hasLocation(#20063,#20064)
#20065=*
tokeninfo(#20065,8,#20001,21,"}")
hasLocation(#20065,#20015)
#20066=*
tokeninfo(#20066,7,#20001,22,"class")
#20067=@"loc,{#10000},9,1,9,5"
locations_default(#20067,#10000,9,1,9,5)
hasLocation(#20066,#20067)
#20068=*
tokeninfo(#20068,6,#20001,23,"C")
#20069=@"loc,{#10000},9,7,9,7"
locations_default(#20069,#10000,9,7,9,7)
hasLocation(#20068,#20069)
#20070=*
tokeninfo(#20070,8,#20001,24,"{")
#20071=@"loc,{#10000},9,9,9,9"
locations_default(#20071,#10000,9,9,9,9)
hasLocation(#20070,#20071)
#20072=*
tokeninfo(#20072,6,#20001,25,"async")
#20073=@"loc,{#10000},10,3,10,7"
locations_default(#20073,#10000,10,3,10,7)
hasLocation(#20072,#20073)
#20074=*
tokeninfo(#20074,8,#20001,26,";")
#20075=@"loc,{#10000},10,8,10,8"
locations_default(#20075,#10000,10,8,10,8)
hasLocation(#20074,#20075)
#20076=*
tokeninfo(#20076,8,#20001,27,"}")
hasLocation(#20076,#20023)
#20077=*
tokeninfo(#20077,0,#20001,28,"")
#20078=@"loc,{#10000},12,1,12,0"
locations_default(#20078,#10000,12,1,12,0)
hasLocation(#20077,#20078)
toplevels(#20001,0)
#20079=@"loc,{#10000},1,1,12,0"
locations_default(#20079,#10000,1,1,12,0)
hasLocation(#20001,#20079)
#20080=@"var;{A};{#20000}"
variables(#20080,"A",#20000)
#20081=@"var;{B};{#20000}"
variables(#20081,"B",#20000)
#20082=@"var;{C};{#20000}"
variables(#20082,"C",#20000)
#20083=@"local_type_name;{A};{#20000}"
local_type_names(#20083,"A",#20000)
#20084=@"local_type_name;{B};{#20000}"
local_type_names(#20084,"B",#20000)
#20085=@"local_type_name;{C};{#20000}"
local_type_names(#20085,"C",#20000)
#20086=@"var;{this};{#20000}"
variables(#20086,"this",#20000)
#20087=*
stmts(#20087,26,#20001,0,"class A ... rget;\n}")
#20088=@"loc,{#10000},1,1,3,1"
locations_default(#20088,#10000,1,1,3,1)
hasLocation(#20087,#20088)
stmt_containers(#20087,#20001)
#20089=*
exprs(#20089,78,#20087,0,"A")
hasLocation(#20089,#20027)
enclosing_stmt(#20089,#20087)
expr_containers(#20089,#20001)
literals("A","A",#20089)
decl(#20089,#20080)
typedecl(#20089,#20083)
#20090=*
scopes(#20090,10)
scopenodes(#20087,#20090)
scopenesting(#20090,#20000)
#20091=@"var;{this};{#20090}"
variables(#20091,"this",#20090)
#20092=*
properties(#20092,#20087,2,8,"x = new.target;")
#20093=@"loc,{#10000},2,3,2,17"
locations_default(#20093,#10000,2,3,2,17)
hasLocation(#20092,#20093)
#20094=*
#20095=*
exprs(#20095,0,#20092,0,"x")
hasLocation(#20095,#20031)
expr_containers(#20095,#20094)
literals("x","x",#20095)
#20096=*
exprs(#20096,82,#20092,1,"new.target")
#20097=@"loc,{#10000},2,7,2,16"
locations_default(#20097,#10000,2,7,2,16)
hasLocation(#20096,#20097)
expr_containers(#20096,#20094)
#20098=*
properties(#20098,#20087,3,0,"constructor() {}")
#20099=@"loc,{#10000},1,9,1,8"
locations_default(#20099,#10000,1,9,1,8)
hasLocation(#20098,#20099)
#20100=*
exprs(#20100,0,#20098,0,"constructor")
hasLocation(#20100,#20099)
enclosing_stmt(#20100,#20087)
expr_containers(#20100,#20001)
literals("constructor","constructor",#20100)
exprs(#20094,9,#20098,1,"() {}")
hasLocation(#20094,#20099)
enclosing_stmt(#20094,#20087)
expr_containers(#20094,#20001)
#20101=*
scopes(#20101,1)
scopenodes(#20094,#20101)
scopenesting(#20101,#20090)
#20102=@"var;{this};{#20101}"
variables(#20102,"this",#20101)
#20103=@"var;{arguments};{#20101}"
variables(#20103,"arguments",#20101)
is_arguments_object(#20103)
#20104=*
stmts(#20104,1,#20094,-2,"{}")
hasLocation(#20104,#20099)
stmt_containers(#20104,#20094)
is_method(#20098)
#20105=*
stmts(#20105,26,#20001,1,"class B ... er.x;\n}")
#20106=@"loc,{#10000},5,1,7,1"
locations_default(#20106,#10000,5,1,7,1)
hasLocation(#20105,#20106)
stmt_containers(#20105,#20001)
#20107=*
exprs(#20107,78,#20105,0,"B")
hasLocation(#20107,#20046)
enclosing_stmt(#20107,#20105)
expr_containers(#20107,#20001)
literals("B","B",#20107)
decl(#20107,#20081)
typedecl(#20107,#20084)
#20108=*
scopes(#20108,10)
scopenodes(#20105,#20108)
scopenesting(#20108,#20000)
#20109=@"var;{this};{#20108}"
variables(#20109,"this",#20108)
#20110=*
exprs(#20110,79,#20105,1,"A")
hasLocation(#20110,#20050)
enclosing_stmt(#20110,#20105)
expr_containers(#20110,#20001)
literals("A","A",#20110)
bind(#20110,#20080)
#20111=*
properties(#20111,#20105,2,8,"y = super.x;")
#20112=@"loc,{#10000},6,3,6,14"
locations_default(#20112,#10000,6,3,6,14)
hasLocation(#20111,#20112)
#20113=*
#20114=*
exprs(#20114,0,#20111,0,"y")
hasLocation(#20114,#20054)
expr_containers(#20114,#20113)
literals("y","y",#20114)
#20115=*
exprs(#20115,14,#20111,1,"super.x")
#20116=@"loc,{#10000},6,7,6,13"
locations_default(#20116,#10000,6,7,6,13)
hasLocation(#20115,#20116)
expr_containers(#20115,#20113)
#20117=*
exprs(#20117,81,#20115,0,"super")
hasLocation(#20117,#20058)
expr_containers(#20117,#20113)
#20118=*
exprs(#20118,0,#20115,1,"x")
hasLocation(#20118,#20062)
expr_containers(#20118,#20113)
literals("x","x",#20118)
#20119=*
properties(#20119,#20105,3,0,"constru ... rgs); }")
#20120=@"loc,{#10000},5,19,5,18"
locations_default(#20120,#10000,5,19,5,18)
hasLocation(#20119,#20120)
#20121=*
exprs(#20121,0,#20119,0,"constructor")
hasLocation(#20121,#20120)
enclosing_stmt(#20121,#20105)
expr_containers(#20121,#20001)
literals("constructor","constructor",#20121)
exprs(#20113,9,#20119,1,"(...arg ... rgs); }")
hasLocation(#20113,#20120)
enclosing_stmt(#20113,#20105)
expr_containers(#20113,#20001)
#20122=*
scopes(#20122,1)
scopenodes(#20113,#20122)
scopenesting(#20122,#20108)
#20123=@"var;{this};{#20122}"
variables(#20123,"this",#20122)
#20124=@"var;{args};{#20122}"
variables(#20124,"args",#20122)
#20125=*
exprs(#20125,78,#20113,0,"args")
hasLocation(#20125,#20120)
expr_containers(#20125,#20113)
literals("args","args",#20125)
decl(#20125,#20124)
#20126=@"var;{arguments};{#20122}"
variables(#20126,"arguments",#20122)
is_arguments_object(#20126)
has_rest_parameter(#20113)
#20127=*
stmts(#20127,1,#20113,-2,"{ super(...args); }")
hasLocation(#20127,#20120)
stmt_containers(#20127,#20113)
#20128=*
stmts(#20128,2,#20127,0,"super(...args);")
hasLocation(#20128,#20120)
stmt_containers(#20128,#20113)
#20129=*
exprs(#20129,13,#20128,0,"super(...args)")
hasLocation(#20129,#20120)
enclosing_stmt(#20129,#20128)
expr_containers(#20129,#20113)
#20130=*
exprs(#20130,81,#20129,-1,"super")
hasLocation(#20130,#20120)
enclosing_stmt(#20130,#20128)
expr_containers(#20130,#20113)
#20131=*
exprs(#20131,66,#20129,0,"...args")
hasLocation(#20131,#20120)
enclosing_stmt(#20131,#20128)
expr_containers(#20131,#20113)
#20132=*
exprs(#20132,79,#20131,0,"args")
hasLocation(#20132,#20120)
enclosing_stmt(#20132,#20128)
expr_containers(#20132,#20113)
literals("args","args",#20132)
bind(#20132,#20124)
is_method(#20119)
#20133=*
stmts(#20133,26,#20001,2,"class C {\n async;\n}")
#20134=@"loc,{#10000},9,1,11,1"
locations_default(#20134,#10000,9,1,11,1)
hasLocation(#20133,#20134)
stmt_containers(#20133,#20001)
#20135=*
exprs(#20135,78,#20133,0,"C")
hasLocation(#20135,#20069)
enclosing_stmt(#20135,#20133)
expr_containers(#20135,#20001)
literals("C","C",#20135)
decl(#20135,#20082)
typedecl(#20135,#20085)
#20136=*
scopes(#20136,10)
scopenodes(#20133,#20136)
scopenesting(#20136,#20000)
#20137=@"var;{this};{#20136}"
variables(#20137,"this",#20136)
#20138=*
properties(#20138,#20133,2,8,"async;")
#20139=@"loc,{#10000},10,3,10,8"
locations_default(#20139,#10000,10,3,10,8)
hasLocation(#20138,#20139)
#20140=*
#20141=*
exprs(#20141,0,#20138,0,"async")
hasLocation(#20141,#20073)
expr_containers(#20141,#20140)
literals("async","async",#20141)
#20142=*
properties(#20142,#20133,3,0,"constructor() {}")
#20143=@"loc,{#10000},9,9,9,8"
locations_default(#20143,#10000,9,9,9,8)
hasLocation(#20142,#20143)
#20144=*
exprs(#20144,0,#20142,0,"constructor")
hasLocation(#20144,#20143)
enclosing_stmt(#20144,#20133)
expr_containers(#20144,#20001)
literals("constructor","constructor",#20144)
exprs(#20140,9,#20142,1,"() {}")
hasLocation(#20140,#20143)
enclosing_stmt(#20140,#20133)
expr_containers(#20140,#20001)
#20145=*
scopes(#20145,1)
scopenodes(#20140,#20145)
scopenesting(#20145,#20136)
#20146=@"var;{this};{#20145}"
variables(#20146,"this",#20145)
#20147=@"var;{arguments};{#20145}"
variables(#20147,"arguments",#20145)
is_arguments_object(#20147)
#20148=*
stmts(#20148,1,#20140,-2,"{}")
hasLocation(#20148,#20143)
stmt_containers(#20148,#20140)
is_method(#20142)
#20149=*
entry_cfg_node(#20149,#20001)
#20150=@"loc,{#10000},1,1,1,0"
locations_default(#20150,#10000,1,1,1,0)
hasLocation(#20149,#20150)
#20151=*
exit_cfg_node(#20151,#20001)
hasLocation(#20151,#20078)
successor(#20141,#20138)
successor(#20140,#20142)
#20152=*
entry_cfg_node(#20152,#20140)
hasLocation(#20152,#20143)
successor(#20138,#20148)
#20153=*
exit_cfg_node(#20153,#20140)
hasLocation(#20153,#20143)
successor(#20148,#20153)
successor(#20152,#20141)
successor(#20144,#20140)
successor(#20142,#20133)
successor(#20135,#20144)
successor(#20133,#20151)
successor(#20118,#20115)
successor(#20117,#20118)
successor(#20115,#20111)
successor(#20114,#20117)
successor(#20113,#20119)
#20154=*
entry_cfg_node(#20154,#20113)
hasLocation(#20154,#20120)
#20155=*
exit_cfg_node(#20155,#20113)
hasLocation(#20155,#20120)
successor(#20128,#20130)
successor(#20132,#20131)
successor(#20131,#20129)
successor(#20130,#20132)
successor(#20111,#20155)
successor(#20129,#20114)
successor(#20127,#20128)
successor(#20125,#20127)
successor(#20154,#20125)
successor(#20121,#20113)
successor(#20119,#20105)
successor(#20110,#20121)
successor(#20107,#20110)
successor(#20105,#20135)
successor(#20096,#20092)
successor(#20095,#20096)
successor(#20094,#20098)
#20156=*
entry_cfg_node(#20156,#20094)
hasLocation(#20156,#20099)
successor(#20092,#20104)
#20157=*
exit_cfg_node(#20157,#20094)
hasLocation(#20157,#20099)
successor(#20104,#20157)
successor(#20156,#20095)
successor(#20100,#20094)
successor(#20098,#20087)
successor(#20089,#20100)
successor(#20087,#20107)
successor(#20149,#20089)
numlines(#10000,11,9,0)
filetype(#10000,"javascript")