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

146 lines
4.3 KiB
Plaintext

#10000=@"/arbitaryModuleSpecifier.js;sourcefile"
files(#10000,"/arbitaryModuleSpecifier.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=*
comments(#20002,0,#20001," syntax-error, but it shouldn't crash the extractor","// synt ... tractor")
#20003=@"loc,{#10000},1,30,1,82"
locations_default(#20003,#10000,1,30,1,82)
hasLocation(#20002,#20003)
#20004=*
lines(#20004,#20001,"import { ""foo"" } from ""foo""; // syntax-error, but it shouldn't crash the extractor","
")
#20005=@"loc,{#10000},1,1,1,82"
locations_default(#20005,#10000,1,1,1,82)
hasLocation(#20004,#20005)
numlines(#20001,1,1,1)
#20006=*
tokeninfo(#20006,7,#20001,0,"import")
#20007=@"loc,{#10000},1,1,1,6"
locations_default(#20007,#10000,1,1,1,6)
hasLocation(#20006,#20007)
#20008=*
tokeninfo(#20008,8,#20001,1,"{")
#20009=@"loc,{#10000},1,8,1,8"
locations_default(#20009,#10000,1,8,1,8)
hasLocation(#20008,#20009)
#20010=*
tokeninfo(#20010,4,#20001,2,"""foo""")
#20011=@"loc,{#10000},1,10,1,14"
locations_default(#20011,#10000,1,10,1,14)
hasLocation(#20010,#20011)
#20012=*
tokeninfo(#20012,8,#20001,3,"}")
#20013=@"loc,{#10000},1,16,1,16"
locations_default(#20013,#10000,1,16,1,16)
hasLocation(#20012,#20013)
#20014=*
tokeninfo(#20014,6,#20001,4,"from")
#20015=@"loc,{#10000},1,18,1,21"
locations_default(#20015,#10000,1,18,1,21)
hasLocation(#20014,#20015)
#20016=*
tokeninfo(#20016,4,#20001,5,"""foo""")
#20017=@"loc,{#10000},1,23,1,27"
locations_default(#20017,#10000,1,23,1,27)
hasLocation(#20016,#20017)
#20018=*
tokeninfo(#20018,8,#20001,6,";")
#20019=@"loc,{#10000},1,28,1,28"
locations_default(#20019,#10000,1,28,1,28)
hasLocation(#20018,#20019)
#20020=*
tokeninfo(#20020,0,#20001,7,"")
#20021=@"loc,{#10000},2,1,2,0"
locations_default(#20021,#10000,2,1,2,0)
hasLocation(#20020,#20021)
next_token(#20002,#20020)
toplevels(#20001,0)
#20022=@"loc,{#10000},1,1,2,0"
locations_default(#20022,#10000,1,1,2,0)
hasLocation(#20001,#20022)
#20023=@"module;{#10000},1,1"
scopes(#20023,3)
scopenodes(#20001,#20023)
scopenesting(#20023,#20000)
is_module(#20001)
is_es2015_module(#20001)
#20024=@"var;{foo};{#20023}"
variables(#20024,"foo",#20023)
#20025=@"local_type_name;{foo};{#20023}"
local_type_names(#20025,"foo",#20023)
#20026=@"local_namespace_name;{foo};{#20023}"
local_namespace_names(#20026,"foo",#20023)
variables(#20024,"foo",#20023)
local_type_names(#20025,"foo",#20023)
local_namespace_names(#20026,"foo",#20023)
#20027=@"var;{this};{#20023}"
variables(#20027,"this",#20023)
#20028=*
stmts(#20028,27,#20001,0,"import ... ""foo"";")
#20029=@"loc,{#10000},1,1,1,28"
locations_default(#20029,#10000,1,1,1,28)
hasLocation(#20028,#20029)
stmt_containers(#20028,#20001)
#20030=*
exprs(#20030,4,#20028,-1,"""foo""")
hasLocation(#20030,#20017)
enclosing_stmt(#20030,#20028)
expr_containers(#20030,#20001)
literals("foo","""foo""",#20030)
#20031=*
regexpterm(#20031,14,#20030,0,"foo")
#20032=@"loc,{#10000},1,24,1,26"
locations_default(#20032,#10000,1,24,1,26)
hasLocation(#20031,#20032)
regexp_const_value(#20031,"foo")
#20033=*
exprs(#20033,83,#20028,0,"""foo""")
hasLocation(#20033,#20011)
enclosing_stmt(#20033,#20028)
expr_containers(#20033,#20001)
#20034=*
exprs(#20034,0,#20033,0,"""foo""")
hasLocation(#20034,#20011)
enclosing_stmt(#20034,#20028)
expr_containers(#20034,#20001)
literals("foo","foo",#20034)
#20035=*
exprs(#20035,78,#20033,1,"""foo""")
hasLocation(#20035,#20011)
enclosing_stmt(#20035,#20028)
expr_containers(#20035,#20001)
literals("foo","foo",#20035)
decl(#20035,#20024)
typedecl(#20035,#20025)
namespacedecl(#20035,#20026)
#20036=*
entry_cfg_node(#20036,#20001)
#20037=@"loc,{#10000},1,1,1,0"
locations_default(#20037,#10000,1,1,1,0)
hasLocation(#20036,#20037)
#20038=*
exit_cfg_node(#20038,#20001)
hasLocation(#20038,#20021)
successor(#20028,#20038)
successor(#20033,#20028)
successor(#20036,#20033)
#20039=*
js_parse_errors(#20039,#20001,"Error: Unexpected string","import { ""foo"" } from ""foo""; // syntax-error, but it shouldn't crash the extractor
")
hasLocation(#20039,#20013)
#20040=*
lines(#20040,#20001,"import { ""foo"" } from ""foo""; // syntax-error, but it shouldn't crash the extractor","
")
hasLocation(#20040,#20005)
numlines(#20001,1,0,0)
numlines(#10000,1,1,1)
filetype(#10000,"javascript")