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

174 lines
4.9 KiB
Plaintext

#10000=@"/usestrict.js;sourcefile"
files(#10000,"/usestrict.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,"function f(a=2) { 'use strict'; }","")
#20003=@"loc,{#10000},1,1,1,33"
locations_default(#20003,#10000,1,1,1,33)
hasLocation(#20002,#20003)
numlines(#20001,1,1,0)
#20004=*
tokeninfo(#20004,7,#20001,0,"function")
#20005=@"loc,{#10000},1,1,1,8"
locations_default(#20005,#10000,1,1,1,8)
hasLocation(#20004,#20005)
#20006=*
tokeninfo(#20006,6,#20001,1,"f")
#20007=@"loc,{#10000},1,10,1,10"
locations_default(#20007,#10000,1,10,1,10)
hasLocation(#20006,#20007)
#20008=*
tokeninfo(#20008,8,#20001,2,"(")
#20009=@"loc,{#10000},1,11,1,11"
locations_default(#20009,#10000,1,11,1,11)
hasLocation(#20008,#20009)
#20010=*
tokeninfo(#20010,6,#20001,3,"a")
#20011=@"loc,{#10000},1,12,1,12"
locations_default(#20011,#10000,1,12,1,12)
hasLocation(#20010,#20011)
#20012=*
tokeninfo(#20012,8,#20001,4,"=")
#20013=@"loc,{#10000},1,13,1,13"
locations_default(#20013,#10000,1,13,1,13)
hasLocation(#20012,#20013)
#20014=*
tokeninfo(#20014,3,#20001,5,"2")
#20015=@"loc,{#10000},1,14,1,14"
locations_default(#20015,#10000,1,14,1,14)
hasLocation(#20014,#20015)
#20016=*
tokeninfo(#20016,8,#20001,6,")")
#20017=@"loc,{#10000},1,15,1,15"
locations_default(#20017,#10000,1,15,1,15)
hasLocation(#20016,#20017)
#20018=*
tokeninfo(#20018,8,#20001,7,"{")
#20019=@"loc,{#10000},1,17,1,17"
locations_default(#20019,#10000,1,17,1,17)
hasLocation(#20018,#20019)
#20020=*
tokeninfo(#20020,4,#20001,8,"'use strict'")
#20021=@"loc,{#10000},1,19,1,30"
locations_default(#20021,#10000,1,19,1,30)
hasLocation(#20020,#20021)
#20022=*
tokeninfo(#20022,8,#20001,9,";")
#20023=@"loc,{#10000},1,31,1,31"
locations_default(#20023,#10000,1,31,1,31)
hasLocation(#20022,#20023)
#20024=*
tokeninfo(#20024,8,#20001,10,"}")
#20025=@"loc,{#10000},1,33,1,33"
locations_default(#20025,#10000,1,33,1,33)
hasLocation(#20024,#20025)
#20026=*
tokeninfo(#20026,0,#20001,11,"")
#20027=@"loc,{#10000},1,34,1,33"
locations_default(#20027,#10000,1,34,1,33)
hasLocation(#20026,#20027)
toplevels(#20001,0)
hasLocation(#20001,#20003)
#20028=@"var;{f};{#20000}"
variables(#20028,"f",#20000)
#20029=@"var;{this};{#20000}"
variables(#20029,"this",#20000)
#20030=*
stmts(#20030,17,#20001,0,"functio ... ict'; }")
hasLocation(#20030,#20003)
stmt_containers(#20030,#20001)
#20031=*
exprs(#20031,78,#20030,-1,"f")
hasLocation(#20031,#20007)
expr_containers(#20031,#20030)
literals("f","f",#20031)
decl(#20031,#20028)
#20032=*
scopes(#20032,1)
scopenodes(#20030,#20032)
scopenesting(#20032,#20000)
#20033=@"var;{this};{#20032}"
variables(#20033,"this",#20032)
#20034=@"var;{a};{#20032}"
variables(#20034,"a",#20032)
#20035=*
exprs(#20035,78,#20030,0,"a")
hasLocation(#20035,#20011)
expr_containers(#20035,#20030)
literals("a","a",#20035)
decl(#20035,#20034)
#20036=@"var;{arguments};{#20032}"
variables(#20036,"arguments",#20032)
is_arguments_object(#20036)
#20037=*
exprs(#20037,3,#20030,-5,"2")
hasLocation(#20037,#20015)
expr_containers(#20037,#20030)
literals("2","2",#20037)
#20038=*
stmts(#20038,1,#20030,-2,"{ 'use strict'; }")
#20039=@"loc,{#10000},1,17,1,33"
locations_default(#20039,#10000,1,17,1,33)
hasLocation(#20038,#20039)
stmt_containers(#20038,#20030)
#20040=*
stmts(#20040,2,#20038,0,"'use strict';")
#20041=@"loc,{#10000},1,19,1,31"
locations_default(#20041,#10000,1,19,1,31)
hasLocation(#20040,#20041)
stmt_containers(#20040,#20030)
#20042=*
exprs(#20042,4,#20040,0,"'use strict'")
hasLocation(#20042,#20021)
enclosing_stmt(#20042,#20040)
expr_containers(#20042,#20030)
literals("use strict","'use strict'",#20042)
#20043=*
regexpterm(#20043,14,#20042,0,"use strict")
#20044=@"loc,{#10000},1,20,1,29"
locations_default(#20044,#10000,1,20,1,29)
hasLocation(#20043,#20044)
regexp_const_value(#20043,"use strict")
#20045=*
entry_cfg_node(#20045,#20001)
#20046=@"loc,{#10000},1,1,1,0"
locations_default(#20046,#10000,1,1,1,0)
hasLocation(#20045,#20046)
#20047=*
exit_cfg_node(#20047,#20001)
hasLocation(#20047,#20027)
successor(#20030,#20047)
#20048=*
entry_cfg_node(#20048,#20030)
hasLocation(#20048,#20046)
#20049=*
exit_cfg_node(#20049,#20030)
hasLocation(#20049,#20027)
successor(#20040,#20042)
successor(#20042,#20049)
successor(#20038,#20040)
successor(#20035,#20038)
successor(#20037,#20035)
successor(#20048,#20037)
successor(#20031,#20030)
successor(#20045,#20031)
#20050=*
js_parse_errors(#20050,#20001,"Error: Illegal 'use strict' directive in function with non-simple parameter list","function f(a=2) { 'use strict'; }")
#20051=@"loc,{#10000},1,19,1,19"
locations_default(#20051,#10000,1,19,1,19)
hasLocation(#20050,#20051)
#20052=*
lines(#20052,#20001,"function f(a=2) { 'use strict'; }","")
hasLocation(#20052,#20003)
numlines(#20001,1,0,0)
numlines(#10000,1,1,0)
filetype(#10000,"javascript")