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

151 lines
4.3 KiB
Plaintext

#10000=@"/tst4.cjs;sourcefile"
files(#10000,"/tst4.cjs")
#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,"console.log(""Hello CommonJS"");","
")
#20003=@"loc,{#10000},1,1,1,30"
locations_default(#20003,#10000,1,1,1,30)
hasLocation(#20002,#20003)
numlines(#20001,1,1,0)
#20004=*
tokeninfo(#20004,6,#20001,0,"console")
#20005=@"loc,{#10000},1,1,1,7"
locations_default(#20005,#10000,1,1,1,7)
hasLocation(#20004,#20005)
#20006=*
tokeninfo(#20006,8,#20001,1,".")
#20007=@"loc,{#10000},1,8,1,8"
locations_default(#20007,#10000,1,8,1,8)
hasLocation(#20006,#20007)
#20008=*
tokeninfo(#20008,6,#20001,2,"log")
#20009=@"loc,{#10000},1,9,1,11"
locations_default(#20009,#10000,1,9,1,11)
hasLocation(#20008,#20009)
#20010=*
tokeninfo(#20010,8,#20001,3,"(")
#20011=@"loc,{#10000},1,12,1,12"
locations_default(#20011,#10000,1,12,1,12)
hasLocation(#20010,#20011)
#20012=*
tokeninfo(#20012,4,#20001,4,"""Hello CommonJS""")
#20013=@"loc,{#10000},1,13,1,28"
locations_default(#20013,#10000,1,13,1,28)
hasLocation(#20012,#20013)
#20014=*
tokeninfo(#20014,8,#20001,5,")")
#20015=@"loc,{#10000},1,29,1,29"
locations_default(#20015,#10000,1,29,1,29)
hasLocation(#20014,#20015)
#20016=*
tokeninfo(#20016,8,#20001,6,";")
#20017=@"loc,{#10000},1,30,1,30"
locations_default(#20017,#10000,1,30,1,30)
hasLocation(#20016,#20017)
#20018=*
tokeninfo(#20018,0,#20001,7,"")
#20019=@"loc,{#10000},2,1,2,0"
locations_default(#20019,#10000,2,1,2,0)
hasLocation(#20018,#20019)
toplevels(#20001,0)
#20020=@"loc,{#10000},1,1,2,0"
locations_default(#20020,#10000,1,1,2,0)
hasLocation(#20001,#20020)
#20021=@"var;{global};{#20000}"
variables(#20021,"global",#20000)
#20022=@"var;{process};{#20000}"
variables(#20022,"process",#20000)
#20023=@"var;{console};{#20000}"
variables(#20023,"console",#20000)
#20024=@"var;{Buffer};{#20000}"
variables(#20024,"Buffer",#20000)
#20025=@"module;{#10000},1,1"
scopes(#20025,3)
scopenodes(#20001,#20025)
scopenesting(#20025,#20000)
#20026=@"var;{require};{#20025}"
variables(#20026,"require",#20025)
#20027=@"var;{module};{#20025}"
variables(#20027,"module",#20025)
#20028=@"var;{exports};{#20025}"
variables(#20028,"exports",#20025)
#20029=@"var;{__filename};{#20025}"
variables(#20029,"__filename",#20025)
#20030=@"var;{__dirname};{#20025}"
variables(#20030,"__dirname",#20025)
#20031=@"var;{arguments};{#20025}"
variables(#20031,"arguments",#20025)
is_module(#20001)
#20032=@"var;{this};{#20025}"
variables(#20032,"this",#20025)
#20033=*
stmts(#20033,2,#20001,0,"console ... onJS"");")
hasLocation(#20033,#20003)
stmt_containers(#20033,#20001)
#20034=*
exprs(#20034,13,#20033,0,"console ... monJS"")")
#20035=@"loc,{#10000},1,1,1,29"
locations_default(#20035,#10000,1,1,1,29)
hasLocation(#20034,#20035)
enclosing_stmt(#20034,#20033)
expr_containers(#20034,#20001)
#20036=*
exprs(#20036,14,#20034,-1,"console.log")
#20037=@"loc,{#10000},1,1,1,11"
locations_default(#20037,#10000,1,1,1,11)
hasLocation(#20036,#20037)
enclosing_stmt(#20036,#20033)
expr_containers(#20036,#20001)
#20038=*
exprs(#20038,79,#20036,0,"console")
hasLocation(#20038,#20005)
enclosing_stmt(#20038,#20033)
expr_containers(#20038,#20001)
literals("console","console",#20038)
bind(#20038,#20023)
#20039=*
exprs(#20039,0,#20036,1,"log")
hasLocation(#20039,#20009)
enclosing_stmt(#20039,#20033)
expr_containers(#20039,#20001)
literals("log","log",#20039)
#20040=*
exprs(#20040,4,#20034,0,"""Hello CommonJS""")
hasLocation(#20040,#20013)
enclosing_stmt(#20040,#20033)
expr_containers(#20040,#20001)
literals("Hello CommonJS","""Hello CommonJS""",#20040)
#20041=*
regexpterm(#20041,14,#20040,0,"Hello CommonJS")
#20042=@"loc,{#10000},1,14,1,27"
locations_default(#20042,#10000,1,14,1,27)
hasLocation(#20041,#20042)
regexp_const_value(#20041,"Hello CommonJS")
#20043=*
entry_cfg_node(#20043,#20001)
#20044=@"loc,{#10000},1,1,1,0"
locations_default(#20044,#10000,1,1,1,0)
hasLocation(#20043,#20044)
#20045=*
exit_cfg_node(#20045,#20001)
hasLocation(#20045,#20019)
successor(#20033,#20038)
successor(#20040,#20034)
successor(#20039,#20036)
successor(#20038,#20039)
successor(#20036,#20040)
successor(#20034,#20045)
successor(#20043,#20033)
is_nodejs(#20001)
numlines(#10000,1,1,0)
filetype(#10000,"javascript")