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

110 lines
3.0 KiB
Plaintext

#10000=@"/import1.js;sourcefile"
files(#10000,"/import1.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,"import x from 'foo';","")
#20003=@"loc,{#10000},1,1,1,20"
locations_default(#20003,#10000,1,1,1,20)
hasLocation(#20002,#20003)
numlines(#20001,1,1,0)
#20004=*
tokeninfo(#20004,7,#20001,0,"import")
#20005=@"loc,{#10000},1,1,1,6"
locations_default(#20005,#10000,1,1,1,6)
hasLocation(#20004,#20005)
#20006=*
tokeninfo(#20006,6,#20001,1,"x")
#20007=@"loc,{#10000},1,8,1,8"
locations_default(#20007,#10000,1,8,1,8)
hasLocation(#20006,#20007)
#20008=*
tokeninfo(#20008,6,#20001,2,"from")
#20009=@"loc,{#10000},1,10,1,13"
locations_default(#20009,#10000,1,10,1,13)
hasLocation(#20008,#20009)
#20010=*
tokeninfo(#20010,4,#20001,3,"'foo'")
#20011=@"loc,{#10000},1,15,1,19"
locations_default(#20011,#10000,1,15,1,19)
hasLocation(#20010,#20011)
#20012=*
tokeninfo(#20012,8,#20001,4,";")
#20013=@"loc,{#10000},1,20,1,20"
locations_default(#20013,#10000,1,20,1,20)
hasLocation(#20012,#20013)
#20014=*
tokeninfo(#20014,0,#20001,5,"")
#20015=@"loc,{#10000},1,21,1,20"
locations_default(#20015,#10000,1,21,1,20)
hasLocation(#20014,#20015)
toplevels(#20001,0)
hasLocation(#20001,#20003)
#20016=@"module;{#10000},1,1"
scopes(#20016,3)
scopenodes(#20001,#20016)
scopenesting(#20016,#20000)
is_module(#20001)
is_es2015_module(#20001)
#20017=@"var;{x};{#20016}"
variables(#20017,"x",#20016)
#20018=@"local_type_name;{x};{#20016}"
local_type_names(#20018,"x",#20016)
#20019=@"local_namespace_name;{x};{#20016}"
local_namespace_names(#20019,"x",#20016)
variables(#20017,"x",#20016)
local_type_names(#20018,"x",#20016)
local_namespace_names(#20019,"x",#20016)
#20020=@"var;{this};{#20016}"
variables(#20020,"this",#20016)
#20021=*
stmts(#20021,27,#20001,0,"import x from 'foo';")
hasLocation(#20021,#20003)
stmt_containers(#20021,#20001)
#20022=*
exprs(#20022,4,#20021,-1,"'foo'")
hasLocation(#20022,#20011)
enclosing_stmt(#20022,#20021)
expr_containers(#20022,#20001)
literals("foo","'foo'",#20022)
#20023=*
regexpterm(#20023,14,#20022,0,"foo")
#20024=@"loc,{#10000},1,16,1,18"
locations_default(#20024,#10000,1,16,1,18)
hasLocation(#20023,#20024)
regexp_const_value(#20023,"foo")
#20025=*
exprs(#20025,84,#20021,0,"x")
hasLocation(#20025,#20007)
enclosing_stmt(#20025,#20021)
expr_containers(#20025,#20001)
#20026=*
exprs(#20026,78,#20025,1,"x")
hasLocation(#20026,#20007)
enclosing_stmt(#20026,#20021)
expr_containers(#20026,#20001)
literals("x","x",#20026)
decl(#20026,#20017)
typedecl(#20026,#20018)
namespacedecl(#20026,#20019)
#20027=*
entry_cfg_node(#20027,#20001)
#20028=@"loc,{#10000},1,1,1,0"
locations_default(#20028,#10000,1,1,1,0)
hasLocation(#20027,#20028)
#20029=*
exit_cfg_node(#20029,#20001)
hasLocation(#20029,#20015)
successor(#20021,#20029)
successor(#20025,#20021)
successor(#20027,#20025)
numlines(#10000,1,1,0)
filetype(#10000,"javascript")