Files
codeql/javascript/extractor/tests/strictmode/output/trap/assignargs.js.trap
2018-11-07 07:48:25 +00:00

220 lines
5.9 KiB
Plaintext

#10000=@"/assignargs.js;sourcefile"
files(#10000,"/assignargs.js","assignargs","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"
toplevels(#20001,0)
#20002=@"loc,{#10000},1,1,4,1"
locations_default(#20002,#10000,1,1,4,1)
hasLocation(#20001,#20002)
#20003=@"var;{f};{#20000}"
variables(#20003,"f",#20000)
#20004=*
stmts(#20004,17,#20001,0,"functio ... = 42;\n}")
hasLocation(#20004,#20002)
stmtContainers(#20004,#20001)
#20005=*
exprs(#20005,78,#20004,-1,"f")
#20006=@"loc,{#10000},1,10,1,10"
locations_default(#20006,#10000,1,10,1,10)
hasLocation(#20005,#20006)
exprContainers(#20005,#20004)
literals("f","f",#20005)
decl(#20005,#20003)
#20007=*
scopes(#20007,1)
scopenodes(#20004,#20007)
scopenesting(#20007,#20000)
#20008=@"var;{arguments};{#20007}"
variables(#20008,"arguments",#20007)
isArgumentsObject(#20008)
#20009=*
stmts(#20009,1,#20004,-2,"{\n 'us ... = 42;\n}")
#20010=@"loc,{#10000},1,14,4,1"
locations_default(#20010,#10000,1,14,4,1)
hasLocation(#20009,#20010)
stmtContainers(#20009,#20004)
#20011=*
stmts(#20011,2,#20009,0,"'use strict';")
#20012=@"loc,{#10000},2,3,2,15"
locations_default(#20012,#10000,2,3,2,15)
hasLocation(#20011,#20012)
stmtContainers(#20011,#20004)
#20013=*
exprs(#20013,4,#20011,0,"'use strict'")
#20014=@"loc,{#10000},2,3,2,14"
locations_default(#20014,#10000,2,3,2,14)
hasLocation(#20013,#20014)
enclosingStmt(#20013,#20011)
exprContainers(#20013,#20004)
literals("use strict","'use strict'",#20013)
#20015=*
stmts(#20015,2,#20009,1,"arguments = 42;")
#20016=@"loc,{#10000},3,3,3,17"
locations_default(#20016,#10000,3,3,3,17)
hasLocation(#20015,#20016)
stmtContainers(#20015,#20004)
#20017=*
exprs(#20017,47,#20015,0,"arguments = 42")
#20018=@"loc,{#10000},3,3,3,16"
locations_default(#20018,#10000,3,3,3,16)
hasLocation(#20017,#20018)
enclosingStmt(#20017,#20015)
exprContainers(#20017,#20004)
#20019=*
exprs(#20019,79,#20017,0,"arguments")
#20020=@"loc,{#10000},3,3,3,11"
locations_default(#20020,#10000,3,3,3,11)
hasLocation(#20019,#20020)
enclosingStmt(#20019,#20015)
exprContainers(#20019,#20004)
literals("arguments","arguments",#20019)
bind(#20019,#20008)
#20021=*
exprs(#20021,3,#20017,1,"42")
#20022=@"loc,{#10000},3,15,3,16"
locations_default(#20022,#10000,3,15,3,16)
hasLocation(#20021,#20022)
enclosingStmt(#20021,#20015)
exprContainers(#20021,#20004)
literals("42","42",#20021)
numlines(#20004,4,4,0)
#20023=*
lines(#20023,#20001,"function f() {","
")
#20024=@"loc,{#10000},1,1,1,14"
locations_default(#20024,#10000,1,1,1,14)
hasLocation(#20023,#20024)
#20025=*
lines(#20025,#20001," 'use strict';","
")
#20026=@"loc,{#10000},2,1,2,15"
locations_default(#20026,#10000,2,1,2,15)
hasLocation(#20025,#20026)
indentation(#10000,2," ",2)
#20027=*
lines(#20027,#20001," arguments = 42;","
")
#20028=@"loc,{#10000},3,1,3,17"
locations_default(#20028,#10000,3,1,3,17)
hasLocation(#20027,#20028)
indentation(#10000,3," ",2)
#20029=*
lines(#20029,#20001,"}","")
#20030=@"loc,{#10000},4,1,4,1"
locations_default(#20030,#10000,4,1,4,1)
hasLocation(#20029,#20030)
numlines(#20001,4,4,0)
#20031=*
tokeninfo(#20031,7,#20001,0,"function")
#20032=@"loc,{#10000},1,1,1,8"
locations_default(#20032,#10000,1,1,1,8)
hasLocation(#20031,#20032)
#20033=*
tokeninfo(#20033,6,#20001,1,"f")
hasLocation(#20033,#20006)
#20034=*
tokeninfo(#20034,8,#20001,2,"(")
#20035=@"loc,{#10000},1,11,1,11"
locations_default(#20035,#10000,1,11,1,11)
hasLocation(#20034,#20035)
#20036=*
tokeninfo(#20036,8,#20001,3,")")
#20037=@"loc,{#10000},1,12,1,12"
locations_default(#20037,#10000,1,12,1,12)
hasLocation(#20036,#20037)
#20038=*
tokeninfo(#20038,8,#20001,4,"{")
#20039=@"loc,{#10000},1,14,1,14"
locations_default(#20039,#10000,1,14,1,14)
hasLocation(#20038,#20039)
#20040=*
tokeninfo(#20040,4,#20001,5,"'use strict'")
hasLocation(#20040,#20014)
#20041=*
tokeninfo(#20041,8,#20001,6,";")
#20042=@"loc,{#10000},2,15,2,15"
locations_default(#20042,#10000,2,15,2,15)
hasLocation(#20041,#20042)
#20043=*
tokeninfo(#20043,6,#20001,7,"arguments")
hasLocation(#20043,#20020)
#20044=*
tokeninfo(#20044,8,#20001,8,"=")
#20045=@"loc,{#10000},3,13,3,13"
locations_default(#20045,#10000,3,13,3,13)
hasLocation(#20044,#20045)
#20046=*
tokeninfo(#20046,3,#20001,9,"42")
hasLocation(#20046,#20022)
#20047=*
tokeninfo(#20047,8,#20001,10,";")
#20048=@"loc,{#10000},3,17,3,17"
locations_default(#20048,#10000,3,17,3,17)
hasLocation(#20047,#20048)
#20049=*
tokeninfo(#20049,8,#20001,11,"}")
hasLocation(#20049,#20030)
#20050=*
tokeninfo(#20050,0,#20001,12,"")
#20051=@"loc,{#10000},4,2,4,1"
locations_default(#20051,#10000,4,2,4,1)
hasLocation(#20050,#20051)
#20052=*
entry_cfg_node(#20052,#20001)
#20053=@"loc,{#10000},1,1,1,0"
locations_default(#20053,#10000,1,1,1,0)
hasLocation(#20052,#20053)
#20054=*
exit_cfg_node(#20054,#20001)
hasLocation(#20054,#20051)
successor(#20004,#20054)
#20055=*
entry_cfg_node(#20055,#20004)
hasLocation(#20055,#20053)
#20056=*
exit_cfg_node(#20056,#20004)
hasLocation(#20056,#20051)
successor(#20009,#20011)
successor(#20015,#20019)
successor(#20021,#20017)
successor(#20019,#20021)
successor(#20017,#20056)
successor(#20011,#20013)
successor(#20013,#20015)
successor(#20055,#20009)
successor(#20005,#20004)
successor(#20052,#20005)
#20057=*
jsParseErrors(#20057,#20001,"Error: Assigning to arguments in strict mode"," arguments = 42;
")
#20058=@"loc,{#10000},3,3,3,3"
locations_default(#20058,#10000,3,3,3,3)
hasLocation(#20057,#20058)
#20059=*
lines(#20059,#20001,"function f() {","
")
hasLocation(#20059,#20024)
#20060=*
lines(#20060,#20001," 'use strict';","
")
hasLocation(#20060,#20026)
indentation(#10000,2," ",2)
#20061=*
lines(#20061,#20001," arguments = 42;","
")
hasLocation(#20061,#20028)
indentation(#10000,3," ",2)
#20062=*
lines(#20062,#20001,"}","")
hasLocation(#20062,#20030)
numlines(#20001,4,4,0)
numlines(#10000,4,4,0)
filetype(#10000,"javascript")