Files
codeql/javascript/extractor/tests/es2015/output/trap/import1.js.trap
2020-09-04 11:52:10 +02:00

108 lines
3.0 KiB
Plaintext

#10000=@"/import1.js;sourcefile"
files(#10000,"/import1.js","import1","js",0)
#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=*
stmts(#20020,27,#20001,0,"import x from 'foo';")
hasLocation(#20020,#20003)
stmt_containers(#20020,#20001)
#20021=*
exprs(#20021,4,#20020,-1,"'foo'")
hasLocation(#20021,#20011)
enclosing_stmt(#20021,#20020)
expr_containers(#20021,#20001)
literals("foo","'foo'",#20021)
#20022=*
regexpterm(#20022,14,#20021,0,"foo")
#20023=@"loc,{#10000},1,16,1,18"
locations_default(#20023,#10000,1,16,1,18)
hasLocation(#20022,#20023)
regexp_const_value(#20022,"foo")
#20024=*
exprs(#20024,84,#20020,0,"x")
hasLocation(#20024,#20007)
enclosing_stmt(#20024,#20020)
expr_containers(#20024,#20001)
#20025=*
exprs(#20025,78,#20024,1,"x")
hasLocation(#20025,#20007)
enclosing_stmt(#20025,#20020)
expr_containers(#20025,#20001)
literals("x","x",#20025)
decl(#20025,#20017)
typedecl(#20025,#20018)
namespacedecl(#20025,#20019)
#20026=*
entry_cfg_node(#20026,#20001)
#20027=@"loc,{#10000},1,1,1,0"
locations_default(#20027,#10000,1,1,1,0)
hasLocation(#20026,#20027)
#20028=*
exit_cfg_node(#20028,#20001)
hasLocation(#20028,#20015)
successor(#20020,#20028)
successor(#20024,#20020)
successor(#20026,#20024)
numlines(#10000,1,1,0)
filetype(#10000,"javascript")