mirror of
https://github.com/github/codeql.git
synced 2026-05-05 21:55:19 +02:00
JavaScript: Open-source extractor.
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
#10000=@"/doctype.html;sourcefile"
|
||||
files(#10000,"/doctype.html","doctype","html",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)
|
||||
numlines(#10000,1,0,0)
|
||||
filetype(#10000,"html")
|
||||
@@ -0,0 +1,37 @@
|
||||
#10000=@"/empty_script.html;sourcefile"
|
||||
files(#10000,"/empty_script.html","empty_script","html",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=*
|
||||
xmlElements(#20001,"html",#10000,0,#10000)
|
||||
#20002=@"loc,{#10000},1,1,6,7"
|
||||
locations_default(#20002,#10000,1,1,6,7)
|
||||
xmllocations(#20001,#20002)
|
||||
#20003=*
|
||||
xmlElements(#20003,"head",#20001,0,#10000)
|
||||
#20004=@"loc,{#10000},2,3,5,9"
|
||||
locations_default(#20004,#10000,2,3,5,9)
|
||||
xmllocations(#20003,#20004)
|
||||
#20005=*
|
||||
xmlElements(#20005,"script",#20003,0,#10000)
|
||||
#20006=@"loc,{#10000},3,5,4,13"
|
||||
locations_default(#20006,#10000,3,5,4,13)
|
||||
xmllocations(#20005,#20006)
|
||||
#20007=*
|
||||
xmlAttrs(#20007,#20005,"type","text/javascript",0,#10000)
|
||||
#20008=@"loc,{#10000},3,13,3,34"
|
||||
locations_default(#20008,#10000,3,13,3,34)
|
||||
xmllocations(#20007,#20008)
|
||||
#20009=*
|
||||
xmlAttrs(#20009,#20005,"charset","utf-8",1,#10000)
|
||||
#20010=@"loc,{#10000},3,36,3,50"
|
||||
locations_default(#20010,#10000,3,36,3,50)
|
||||
xmllocations(#20009,#20010)
|
||||
numlines(#10000,6,0,0)
|
||||
filetype(#10000,"html")
|
||||
144
javascript/extractor/tests/html/output/trap/entities.html.trap
Normal file
144
javascript/extractor/tests/html/output/trap/entities.html.trap
Normal file
@@ -0,0 +1,144 @@
|
||||
#10000=@"/entities.html;sourcefile"
|
||||
files(#10000,"/entities.html","entities","html",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},6,29"
|
||||
toplevels(#20001,3)
|
||||
#20002=@"loc,{#10000},6,29,6,48"
|
||||
locations_default(#20002,#10000,6,29,6,48)
|
||||
hasLocation(#20001,#20002)
|
||||
#20003=*
|
||||
stmts(#20003,2,#20001,0,"void(alert(""Nope!""))")
|
||||
hasLocation(#20003,#20002)
|
||||
stmtContainers(#20003,#20001)
|
||||
#20004=*
|
||||
exprs(#20004,21,#20003,0,"void(alert(""Nope!""))")
|
||||
hasLocation(#20004,#20002)
|
||||
enclosingStmt(#20004,#20003)
|
||||
exprContainers(#20004,#20001)
|
||||
#20005=*
|
||||
exprs(#20005,63,#20004,0,"(alert(""Nope!""))")
|
||||
#20006=@"loc,{#10000},6,33,6,48"
|
||||
locations_default(#20006,#10000,6,33,6,48)
|
||||
hasLocation(#20005,#20006)
|
||||
enclosingStmt(#20005,#20003)
|
||||
exprContainers(#20005,#20001)
|
||||
#20007=*
|
||||
exprs(#20007,13,#20005,0,"alert(""Nope!"")")
|
||||
#20008=@"loc,{#10000},6,34,6,47"
|
||||
locations_default(#20008,#10000,6,34,6,47)
|
||||
hasLocation(#20007,#20008)
|
||||
enclosingStmt(#20007,#20003)
|
||||
exprContainers(#20007,#20001)
|
||||
#20009=*
|
||||
exprs(#20009,79,#20007,-1,"alert")
|
||||
#20010=@"loc,{#10000},6,34,6,38"
|
||||
locations_default(#20010,#10000,6,34,6,38)
|
||||
hasLocation(#20009,#20010)
|
||||
enclosingStmt(#20009,#20003)
|
||||
exprContainers(#20009,#20001)
|
||||
literals("alert","alert",#20009)
|
||||
#20011=@"var;{alert};{#20000}"
|
||||
variables(#20011,"alert",#20000)
|
||||
bind(#20009,#20011)
|
||||
#20012=*
|
||||
exprs(#20012,4,#20007,0,"""Nope!""")
|
||||
#20013=@"loc,{#10000},6,40,6,46"
|
||||
locations_default(#20013,#10000,6,40,6,46)
|
||||
hasLocation(#20012,#20013)
|
||||
enclosingStmt(#20012,#20003)
|
||||
exprContainers(#20012,#20001)
|
||||
literals("Nope!","""Nope!""",#20012)
|
||||
#20014=*
|
||||
lines(#20014,#20001,"void(alert(""Nope!""))","")
|
||||
hasLocation(#20014,#20002)
|
||||
numlines(#20001,1,1,0)
|
||||
#20015=*
|
||||
tokeninfo(#20015,7,#20001,0,"void")
|
||||
#20016=@"loc,{#10000},6,29,6,32"
|
||||
locations_default(#20016,#10000,6,29,6,32)
|
||||
hasLocation(#20015,#20016)
|
||||
#20017=*
|
||||
tokeninfo(#20017,8,#20001,1,"(")
|
||||
#20018=@"loc,{#10000},6,33,6,33"
|
||||
locations_default(#20018,#10000,6,33,6,33)
|
||||
hasLocation(#20017,#20018)
|
||||
#20019=*
|
||||
tokeninfo(#20019,6,#20001,2,"alert")
|
||||
hasLocation(#20019,#20010)
|
||||
#20020=*
|
||||
tokeninfo(#20020,8,#20001,3,"(")
|
||||
#20021=@"loc,{#10000},6,39,6,39"
|
||||
locations_default(#20021,#10000,6,39,6,39)
|
||||
hasLocation(#20020,#20021)
|
||||
#20022=*
|
||||
tokeninfo(#20022,4,#20001,4,"""Nope!""")
|
||||
hasLocation(#20022,#20013)
|
||||
#20023=*
|
||||
tokeninfo(#20023,8,#20001,5,")")
|
||||
#20024=@"loc,{#10000},6,47,6,47"
|
||||
locations_default(#20024,#10000,6,47,6,47)
|
||||
hasLocation(#20023,#20024)
|
||||
#20025=*
|
||||
tokeninfo(#20025,8,#20001,6,")")
|
||||
#20026=@"loc,{#10000},6,48,6,48"
|
||||
locations_default(#20026,#10000,6,48,6,48)
|
||||
hasLocation(#20025,#20026)
|
||||
#20027=*
|
||||
tokeninfo(#20027,0,#20001,7,"")
|
||||
#20028=@"loc,{#10000},6,49,6,48"
|
||||
locations_default(#20028,#10000,6,49,6,48)
|
||||
hasLocation(#20027,#20028)
|
||||
#20029=*
|
||||
entry_cfg_node(#20029,#20001)
|
||||
#20030=@"loc,{#10000},6,29,6,28"
|
||||
locations_default(#20030,#10000,6,29,6,28)
|
||||
hasLocation(#20029,#20030)
|
||||
#20031=*
|
||||
exit_cfg_node(#20031,#20001)
|
||||
hasLocation(#20031,#20028)
|
||||
successor(#20003,#20005)
|
||||
successor(#20005,#20009)
|
||||
successor(#20012,#20007)
|
||||
successor(#20009,#20012)
|
||||
successor(#20007,#20004)
|
||||
successor(#20004,#20031)
|
||||
successor(#20029,#20003)
|
||||
#20032=*
|
||||
xmlElements(#20032,"html",#10000,0,#10000)
|
||||
#20033=@"loc,{#10000},1,1,8,7"
|
||||
locations_default(#20033,#10000,1,1,8,7)
|
||||
xmllocations(#20032,#20033)
|
||||
#20034=*
|
||||
xmlElements(#20034,"head",#20032,0,#10000)
|
||||
#20035=@"loc,{#10000},2,5,4,11"
|
||||
locations_default(#20035,#10000,2,5,4,11)
|
||||
xmllocations(#20034,#20035)
|
||||
#20036=*
|
||||
xmlElements(#20036,"body",#20032,1,#10000)
|
||||
#20037=@"loc,{#10000},5,5,7,11"
|
||||
locations_default(#20037,#10000,5,5,7,11)
|
||||
xmllocations(#20036,#20037)
|
||||
#20038=*
|
||||
xmlElements(#20038,"title",#20034,0,#10000)
|
||||
#20039=@"loc,{#10000},3,9,3,32"
|
||||
locations_default(#20039,#10000,3,9,3,32)
|
||||
xmllocations(#20038,#20039)
|
||||
#20040=*
|
||||
xmlElements(#20040,"a",#20036,0,#10000)
|
||||
#20041=@"loc,{#10000},6,9,6,80"
|
||||
locations_default(#20041,#10000,6,9,6,80)
|
||||
xmllocations(#20040,#20041)
|
||||
#20042=*
|
||||
xmlAttrs(#20042,#20040,"href","javascript:void(alert(""Nope!""))",0,#10000)
|
||||
#20043=@"loc,{#10000},6,12,6,65"
|
||||
locations_default(#20043,#10000,6,12,6,65)
|
||||
xmllocations(#20042,#20043)
|
||||
numlines(#10000,8,1,0)
|
||||
filetype(#10000,"html")
|
||||
220
javascript/extractor/tests/html/output/trap/module.html.trap
Normal file
220
javascript/extractor/tests/html/output/trap/module.html.trap
Normal file
@@ -0,0 +1,220 @@
|
||||
#10000=@"/module.html;sourcefile"
|
||||
files(#10000,"/module.html","module","html",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},4,31"
|
||||
toplevels(#20001,1)
|
||||
#20002=@"loc,{#10000},4,31,7,8"
|
||||
locations_default(#20002,#10000,4,31,7,8)
|
||||
hasLocation(#20001,#20002)
|
||||
#20003=@"module;{#10000},4,31"
|
||||
scopes(#20003,3)
|
||||
scopenodes(#20001,#20003)
|
||||
scopenesting(#20003,#20000)
|
||||
isModule(#20001)
|
||||
#20004=@"var;{foo};{#20003}"
|
||||
variables(#20004,"foo",#20003)
|
||||
#20005=@"local_type_name;{foo};{#20003}"
|
||||
local_type_names(#20005,"foo",#20003)
|
||||
#20006=@"local_namespace_name;{foo};{#20003}"
|
||||
local_namespace_names(#20006,"foo",#20003)
|
||||
variables(#20004,"foo",#20003)
|
||||
local_type_names(#20005,"foo",#20003)
|
||||
local_namespace_names(#20006,"foo",#20003)
|
||||
#20007=*
|
||||
stmts(#20007,27,#20001,0,"import ... 'bar';")
|
||||
#20008=@"loc,{#10000},5,13,5,34"
|
||||
locations_default(#20008,#10000,5,13,5,34)
|
||||
hasLocation(#20007,#20008)
|
||||
stmtContainers(#20007,#20001)
|
||||
#20009=*
|
||||
exprs(#20009,4,#20007,-1,"'bar'")
|
||||
#20010=@"loc,{#10000},5,29,5,33"
|
||||
locations_default(#20010,#10000,5,29,5,33)
|
||||
hasLocation(#20009,#20010)
|
||||
enclosingStmt(#20009,#20007)
|
||||
exprContainers(#20009,#20001)
|
||||
literals("bar","'bar'",#20009)
|
||||
#20011=*
|
||||
exprs(#20011,84,#20007,0,"foo")
|
||||
#20012=@"loc,{#10000},5,20,5,22"
|
||||
locations_default(#20012,#10000,5,20,5,22)
|
||||
hasLocation(#20011,#20012)
|
||||
enclosingStmt(#20011,#20007)
|
||||
exprContainers(#20011,#20001)
|
||||
#20013=*
|
||||
exprs(#20013,78,#20011,1,"foo")
|
||||
hasLocation(#20013,#20012)
|
||||
enclosingStmt(#20013,#20007)
|
||||
exprContainers(#20013,#20001)
|
||||
literals("foo","foo",#20013)
|
||||
decl(#20013,#20004)
|
||||
typedecl(#20013,#20005)
|
||||
namespacedecl(#20013,#20006)
|
||||
#20014=*
|
||||
stmts(#20014,2,#20001,1,"foo.baz();")
|
||||
#20015=@"loc,{#10000},6,13,6,22"
|
||||
locations_default(#20015,#10000,6,13,6,22)
|
||||
hasLocation(#20014,#20015)
|
||||
stmtContainers(#20014,#20001)
|
||||
#20016=*
|
||||
exprs(#20016,13,#20014,0,"foo.baz()")
|
||||
#20017=@"loc,{#10000},6,13,6,21"
|
||||
locations_default(#20017,#10000,6,13,6,21)
|
||||
hasLocation(#20016,#20017)
|
||||
enclosingStmt(#20016,#20014)
|
||||
exprContainers(#20016,#20001)
|
||||
#20018=*
|
||||
exprs(#20018,14,#20016,-1,"foo.baz")
|
||||
#20019=@"loc,{#10000},6,13,6,19"
|
||||
locations_default(#20019,#10000,6,13,6,19)
|
||||
hasLocation(#20018,#20019)
|
||||
enclosingStmt(#20018,#20014)
|
||||
exprContainers(#20018,#20001)
|
||||
#20020=*
|
||||
exprs(#20020,79,#20018,0,"foo")
|
||||
#20021=@"loc,{#10000},6,13,6,15"
|
||||
locations_default(#20021,#10000,6,13,6,15)
|
||||
hasLocation(#20020,#20021)
|
||||
enclosingStmt(#20020,#20014)
|
||||
exprContainers(#20020,#20001)
|
||||
literals("foo","foo",#20020)
|
||||
bind(#20020,#20004)
|
||||
#20022=*
|
||||
exprs(#20022,0,#20018,1,"baz")
|
||||
#20023=@"loc,{#10000},6,17,6,19"
|
||||
locations_default(#20023,#10000,6,17,6,19)
|
||||
hasLocation(#20022,#20023)
|
||||
enclosingStmt(#20022,#20014)
|
||||
exprContainers(#20022,#20001)
|
||||
literals("baz","baz",#20022)
|
||||
#20024=*
|
||||
lines(#20024,#20001,"","
|
||||
")
|
||||
#20025=@"loc,{#10000},4,31,4,30"
|
||||
locations_default(#20025,#10000,4,31,4,30)
|
||||
hasLocation(#20024,#20025)
|
||||
#20026=*
|
||||
lines(#20026,#20001," import foo from 'bar';","
|
||||
")
|
||||
#20027=@"loc,{#10000},5,1,5,34"
|
||||
locations_default(#20027,#10000,5,1,5,34)
|
||||
hasLocation(#20026,#20027)
|
||||
indentation(#10000,5," ",12)
|
||||
#20028=*
|
||||
lines(#20028,#20001," foo.baz();","
|
||||
")
|
||||
#20029=@"loc,{#10000},6,1,6,22"
|
||||
locations_default(#20029,#10000,6,1,6,22)
|
||||
hasLocation(#20028,#20029)
|
||||
indentation(#10000,6," ",12)
|
||||
#20030=*
|
||||
lines(#20030,#20001," ","")
|
||||
#20031=@"loc,{#10000},7,1,7,8"
|
||||
locations_default(#20031,#10000,7,1,7,8)
|
||||
hasLocation(#20030,#20031)
|
||||
numlines(#20001,4,2,0)
|
||||
#20032=*
|
||||
tokeninfo(#20032,7,#20001,0,"import")
|
||||
#20033=@"loc,{#10000},5,13,5,18"
|
||||
locations_default(#20033,#10000,5,13,5,18)
|
||||
hasLocation(#20032,#20033)
|
||||
#20034=*
|
||||
tokeninfo(#20034,6,#20001,1,"foo")
|
||||
hasLocation(#20034,#20012)
|
||||
#20035=*
|
||||
tokeninfo(#20035,6,#20001,2,"from")
|
||||
#20036=@"loc,{#10000},5,24,5,27"
|
||||
locations_default(#20036,#10000,5,24,5,27)
|
||||
hasLocation(#20035,#20036)
|
||||
#20037=*
|
||||
tokeninfo(#20037,4,#20001,3,"'bar'")
|
||||
hasLocation(#20037,#20010)
|
||||
#20038=*
|
||||
tokeninfo(#20038,8,#20001,4,";")
|
||||
#20039=@"loc,{#10000},5,34,5,34"
|
||||
locations_default(#20039,#10000,5,34,5,34)
|
||||
hasLocation(#20038,#20039)
|
||||
#20040=*
|
||||
tokeninfo(#20040,6,#20001,5,"foo")
|
||||
hasLocation(#20040,#20021)
|
||||
#20041=*
|
||||
tokeninfo(#20041,8,#20001,6,".")
|
||||
#20042=@"loc,{#10000},6,16,6,16"
|
||||
locations_default(#20042,#10000,6,16,6,16)
|
||||
hasLocation(#20041,#20042)
|
||||
#20043=*
|
||||
tokeninfo(#20043,6,#20001,7,"baz")
|
||||
hasLocation(#20043,#20023)
|
||||
#20044=*
|
||||
tokeninfo(#20044,8,#20001,8,"(")
|
||||
#20045=@"loc,{#10000},6,20,6,20"
|
||||
locations_default(#20045,#10000,6,20,6,20)
|
||||
hasLocation(#20044,#20045)
|
||||
#20046=*
|
||||
tokeninfo(#20046,8,#20001,9,")")
|
||||
#20047=@"loc,{#10000},6,21,6,21"
|
||||
locations_default(#20047,#10000,6,21,6,21)
|
||||
hasLocation(#20046,#20047)
|
||||
#20048=*
|
||||
tokeninfo(#20048,8,#20001,10,";")
|
||||
#20049=@"loc,{#10000},6,22,6,22"
|
||||
locations_default(#20049,#10000,6,22,6,22)
|
||||
hasLocation(#20048,#20049)
|
||||
#20050=*
|
||||
tokeninfo(#20050,0,#20001,11,"")
|
||||
#20051=@"loc,{#10000},7,9,7,8"
|
||||
locations_default(#20051,#10000,7,9,7,8)
|
||||
hasLocation(#20050,#20051)
|
||||
#20052=*
|
||||
entry_cfg_node(#20052,#20001)
|
||||
hasLocation(#20052,#20025)
|
||||
#20053=*
|
||||
exit_cfg_node(#20053,#20001)
|
||||
hasLocation(#20053,#20051)
|
||||
successor(#20014,#20020)
|
||||
successor(#20022,#20018)
|
||||
successor(#20020,#20022)
|
||||
successor(#20018,#20016)
|
||||
successor(#20016,#20053)
|
||||
successor(#20007,#20014)
|
||||
successor(#20011,#20007)
|
||||
successor(#20052,#20011)
|
||||
#20054=*
|
||||
xmlElements(#20054,"html",#10000,0,#10000)
|
||||
#20055=@"loc,{#10000},1,1,11,7"
|
||||
locations_default(#20055,#10000,1,1,11,7)
|
||||
xmllocations(#20054,#20055)
|
||||
#20056=*
|
||||
xmlElements(#20056,"head",#20054,0,#10000)
|
||||
#20057=@"loc,{#10000},2,5,8,11"
|
||||
locations_default(#20057,#10000,2,5,8,11)
|
||||
xmllocations(#20056,#20057)
|
||||
#20058=*
|
||||
xmlElements(#20058,"body",#20054,1,#10000)
|
||||
#20059=@"loc,{#10000},9,5,10,11"
|
||||
locations_default(#20059,#10000,9,5,10,11)
|
||||
xmllocations(#20058,#20059)
|
||||
#20060=*
|
||||
xmlElements(#20060,"title",#20056,0,#10000)
|
||||
#20061=@"loc,{#10000},3,9,3,32"
|
||||
locations_default(#20061,#10000,3,9,3,32)
|
||||
xmllocations(#20060,#20061)
|
||||
#20062=*
|
||||
xmlElements(#20062,"script",#20056,1,#10000)
|
||||
#20063=@"loc,{#10000},4,9,7,17"
|
||||
locations_default(#20063,#10000,4,9,7,17)
|
||||
xmllocations(#20062,#20063)
|
||||
#20064=*
|
||||
xmlAttrs(#20064,#20062,"type","module",0,#10000)
|
||||
#20065=@"loc,{#10000},4,17,4,29"
|
||||
locations_default(#20065,#10000,4,17,4,29)
|
||||
xmllocations(#20064,#20065)
|
||||
numlines(#10000,11,2,0)
|
||||
filetype(#10000,"html")
|
||||
47
javascript/extractor/tests/html/output/trap/q.html.trap
Normal file
47
javascript/extractor/tests/html/output/trap/q.html.trap
Normal file
@@ -0,0 +1,47 @@
|
||||
#10000=@"/q.html;sourcefile"
|
||||
files(#10000,"/q.html","q","html",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=*
|
||||
xmlElements(#20001,"html",#10000,0,#10000)
|
||||
#20002=@"loc,{#10000},1,1,7,7"
|
||||
locations_default(#20002,#10000,1,1,7,7)
|
||||
xmllocations(#20001,#20002)
|
||||
#20003=*
|
||||
xmlElements(#20003,"body",#20001,0,#10000)
|
||||
#20004=@"loc,{#10000},2,3,6,9"
|
||||
locations_default(#20004,#10000,2,3,6,9)
|
||||
xmllocations(#20003,#20004)
|
||||
#20005=*
|
||||
xmlElements(#20005,"p",#20003,0,#10000)
|
||||
#20006=@"loc,{#10000},3,5,5,8"
|
||||
locations_default(#20006,#10000,3,5,5,8)
|
||||
xmllocations(#20005,#20006)
|
||||
#20007=*
|
||||
xmlElements(#20007,"input",#20005,0,#10000)
|
||||
#20008=@"loc,{#10000},4,7,4,51"
|
||||
locations_default(#20008,#10000,4,7,4,51)
|
||||
xmllocations(#20007,#20008)
|
||||
#20009=*
|
||||
xmlAttrs(#20009,#20007,"type","button",0,#10000)
|
||||
#20010=@"loc,{#10000},4,14,4,26"
|
||||
locations_default(#20010,#10000,4,14,4,26)
|
||||
xmllocations(#20009,#20010)
|
||||
#20011=*
|
||||
xmlAttrs(#20011,#20007,"value","Test",1,#10000)
|
||||
#20012=@"loc,{#10000},4,28,4,39"
|
||||
locations_default(#20012,#10000,4,28,4,39)
|
||||
xmllocations(#20011,#20012)
|
||||
#20013=*
|
||||
xmlAttrs(#20013,#20007,"onClick","",2,#10000)
|
||||
#20014=@"loc,{#10000},4,41,4,50"
|
||||
locations_default(#20014,#10000,4,41,4,50)
|
||||
xmllocations(#20013,#20014)
|
||||
numlines(#10000,8,0,0)
|
||||
filetype(#10000,"html")
|
||||
455
javascript/extractor/tests/html/output/trap/tst.html.trap
Normal file
455
javascript/extractor/tests/html/output/trap/tst.html.trap
Normal file
@@ -0,0 +1,455 @@
|
||||
#10000=@"/tst.html;sourcefile"
|
||||
files(#10000,"/tst.html","tst","html",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},5,17"
|
||||
toplevels(#20001,1)
|
||||
#20002=@"loc,{#10000},5,17,7,8"
|
||||
locations_default(#20002,#10000,5,17,7,8)
|
||||
hasLocation(#20001,#20002)
|
||||
#20003=*
|
||||
stmts(#20003,2,#20001,0,"alert("" ... rld!"");")
|
||||
#20004=@"loc,{#10000},6,13,6,35"
|
||||
locations_default(#20004,#10000,6,13,6,35)
|
||||
hasLocation(#20003,#20004)
|
||||
stmtContainers(#20003,#20001)
|
||||
#20005=*
|
||||
exprs(#20005,13,#20003,0,"alert("" ... orld!"")")
|
||||
#20006=@"loc,{#10000},6,13,6,34"
|
||||
locations_default(#20006,#10000,6,13,6,34)
|
||||
hasLocation(#20005,#20006)
|
||||
enclosingStmt(#20005,#20003)
|
||||
exprContainers(#20005,#20001)
|
||||
#20007=*
|
||||
exprs(#20007,79,#20005,-1,"alert")
|
||||
#20008=@"loc,{#10000},6,13,6,17"
|
||||
locations_default(#20008,#10000,6,13,6,17)
|
||||
hasLocation(#20007,#20008)
|
||||
enclosingStmt(#20007,#20003)
|
||||
exprContainers(#20007,#20001)
|
||||
literals("alert","alert",#20007)
|
||||
#20009=@"var;{alert};{#20000}"
|
||||
variables(#20009,"alert",#20000)
|
||||
bind(#20007,#20009)
|
||||
#20010=*
|
||||
exprs(#20010,4,#20005,0,"""Hello, world!""")
|
||||
#20011=@"loc,{#10000},6,19,6,33"
|
||||
locations_default(#20011,#10000,6,19,6,33)
|
||||
hasLocation(#20010,#20011)
|
||||
enclosingStmt(#20010,#20003)
|
||||
exprContainers(#20010,#20001)
|
||||
literals("Hello, world!","""Hello, world!""",#20010)
|
||||
#20012=*
|
||||
lines(#20012,#20001,"","
|
||||
")
|
||||
#20013=@"loc,{#10000},5,17,5,16"
|
||||
locations_default(#20013,#10000,5,17,5,16)
|
||||
hasLocation(#20012,#20013)
|
||||
#20014=*
|
||||
lines(#20014,#20001," alert(""Hello, world!"");","
|
||||
")
|
||||
#20015=@"loc,{#10000},6,1,6,35"
|
||||
locations_default(#20015,#10000,6,1,6,35)
|
||||
hasLocation(#20014,#20015)
|
||||
indentation(#10000,6," ",12)
|
||||
#20016=*
|
||||
lines(#20016,#20001," ","")
|
||||
#20017=@"loc,{#10000},7,1,7,8"
|
||||
locations_default(#20017,#10000,7,1,7,8)
|
||||
hasLocation(#20016,#20017)
|
||||
numlines(#20001,3,1,0)
|
||||
#20018=*
|
||||
tokeninfo(#20018,6,#20001,0,"alert")
|
||||
hasLocation(#20018,#20008)
|
||||
#20019=*
|
||||
tokeninfo(#20019,8,#20001,1,"(")
|
||||
#20020=@"loc,{#10000},6,18,6,18"
|
||||
locations_default(#20020,#10000,6,18,6,18)
|
||||
hasLocation(#20019,#20020)
|
||||
#20021=*
|
||||
tokeninfo(#20021,4,#20001,2,"""Hello, world!""")
|
||||
hasLocation(#20021,#20011)
|
||||
#20022=*
|
||||
tokeninfo(#20022,8,#20001,3,")")
|
||||
#20023=@"loc,{#10000},6,34,6,34"
|
||||
locations_default(#20023,#10000,6,34,6,34)
|
||||
hasLocation(#20022,#20023)
|
||||
#20024=*
|
||||
tokeninfo(#20024,8,#20001,4,";")
|
||||
#20025=@"loc,{#10000},6,35,6,35"
|
||||
locations_default(#20025,#10000,6,35,6,35)
|
||||
hasLocation(#20024,#20025)
|
||||
#20026=*
|
||||
tokeninfo(#20026,0,#20001,5,"")
|
||||
#20027=@"loc,{#10000},7,9,7,8"
|
||||
locations_default(#20027,#10000,7,9,7,8)
|
||||
hasLocation(#20026,#20027)
|
||||
#20028=*
|
||||
entry_cfg_node(#20028,#20001)
|
||||
hasLocation(#20028,#20013)
|
||||
#20029=*
|
||||
exit_cfg_node(#20029,#20001)
|
||||
hasLocation(#20029,#20027)
|
||||
successor(#20003,#20007)
|
||||
successor(#20010,#20005)
|
||||
successor(#20007,#20010)
|
||||
successor(#20005,#20029)
|
||||
successor(#20028,#20003)
|
||||
#20030=@"script;{#10000},8,17"
|
||||
toplevels(#20030,1)
|
||||
#20031=@"loc,{#10000},8,17,8,17"
|
||||
locations_default(#20031,#10000,8,17,8,17)
|
||||
hasLocation(#20030,#20031)
|
||||
#20032=*
|
||||
stmts(#20032,0,#20030,0,";")
|
||||
hasLocation(#20032,#20031)
|
||||
stmtContainers(#20032,#20030)
|
||||
#20033=*
|
||||
lines(#20033,#20030,";","")
|
||||
hasLocation(#20033,#20031)
|
||||
numlines(#20030,1,1,0)
|
||||
#20034=*
|
||||
tokeninfo(#20034,8,#20030,0,";")
|
||||
hasLocation(#20034,#20031)
|
||||
#20035=*
|
||||
tokeninfo(#20035,0,#20030,1,"")
|
||||
#20036=@"loc,{#10000},8,18,8,17"
|
||||
locations_default(#20036,#10000,8,18,8,17)
|
||||
hasLocation(#20035,#20036)
|
||||
#20037=*
|
||||
entry_cfg_node(#20037,#20030)
|
||||
#20038=@"loc,{#10000},8,17,8,16"
|
||||
locations_default(#20038,#10000,8,17,8,16)
|
||||
hasLocation(#20037,#20038)
|
||||
#20039=*
|
||||
exit_cfg_node(#20039,#20030)
|
||||
hasLocation(#20039,#20036)
|
||||
successor(#20032,#20039)
|
||||
successor(#20037,#20032)
|
||||
#20040=@"script;{#10000},11,29"
|
||||
toplevels(#20040,3)
|
||||
#20041=@"loc,{#10000},11,29,11,48"
|
||||
locations_default(#20041,#10000,11,29,11,48)
|
||||
hasLocation(#20040,#20041)
|
||||
#20042=*
|
||||
stmts(#20042,2,#20040,0,"void(alert('Nope!'))")
|
||||
hasLocation(#20042,#20041)
|
||||
stmtContainers(#20042,#20040)
|
||||
#20043=*
|
||||
exprs(#20043,21,#20042,0,"void(alert('Nope!'))")
|
||||
hasLocation(#20043,#20041)
|
||||
enclosingStmt(#20043,#20042)
|
||||
exprContainers(#20043,#20040)
|
||||
#20044=*
|
||||
exprs(#20044,63,#20043,0,"(alert('Nope!'))")
|
||||
#20045=@"loc,{#10000},11,33,11,48"
|
||||
locations_default(#20045,#10000,11,33,11,48)
|
||||
hasLocation(#20044,#20045)
|
||||
enclosingStmt(#20044,#20042)
|
||||
exprContainers(#20044,#20040)
|
||||
#20046=*
|
||||
exprs(#20046,13,#20044,0,"alert('Nope!')")
|
||||
#20047=@"loc,{#10000},11,34,11,47"
|
||||
locations_default(#20047,#10000,11,34,11,47)
|
||||
hasLocation(#20046,#20047)
|
||||
enclosingStmt(#20046,#20042)
|
||||
exprContainers(#20046,#20040)
|
||||
#20048=*
|
||||
exprs(#20048,79,#20046,-1,"alert")
|
||||
#20049=@"loc,{#10000},11,34,11,38"
|
||||
locations_default(#20049,#10000,11,34,11,38)
|
||||
hasLocation(#20048,#20049)
|
||||
enclosingStmt(#20048,#20042)
|
||||
exprContainers(#20048,#20040)
|
||||
literals("alert","alert",#20048)
|
||||
bind(#20048,#20009)
|
||||
#20050=*
|
||||
exprs(#20050,4,#20046,0,"'Nope!'")
|
||||
#20051=@"loc,{#10000},11,40,11,46"
|
||||
locations_default(#20051,#10000,11,40,11,46)
|
||||
hasLocation(#20050,#20051)
|
||||
enclosingStmt(#20050,#20042)
|
||||
exprContainers(#20050,#20040)
|
||||
literals("Nope!","'Nope!'",#20050)
|
||||
#20052=*
|
||||
lines(#20052,#20040,"void(alert('Nope!'))","")
|
||||
hasLocation(#20052,#20041)
|
||||
numlines(#20040,1,1,0)
|
||||
#20053=*
|
||||
tokeninfo(#20053,7,#20040,0,"void")
|
||||
#20054=@"loc,{#10000},11,29,11,32"
|
||||
locations_default(#20054,#10000,11,29,11,32)
|
||||
hasLocation(#20053,#20054)
|
||||
#20055=*
|
||||
tokeninfo(#20055,8,#20040,1,"(")
|
||||
#20056=@"loc,{#10000},11,33,11,33"
|
||||
locations_default(#20056,#10000,11,33,11,33)
|
||||
hasLocation(#20055,#20056)
|
||||
#20057=*
|
||||
tokeninfo(#20057,6,#20040,2,"alert")
|
||||
hasLocation(#20057,#20049)
|
||||
#20058=*
|
||||
tokeninfo(#20058,8,#20040,3,"(")
|
||||
#20059=@"loc,{#10000},11,39,11,39"
|
||||
locations_default(#20059,#10000,11,39,11,39)
|
||||
hasLocation(#20058,#20059)
|
||||
#20060=*
|
||||
tokeninfo(#20060,4,#20040,4,"'Nope!'")
|
||||
hasLocation(#20060,#20051)
|
||||
#20061=*
|
||||
tokeninfo(#20061,8,#20040,5,")")
|
||||
#20062=@"loc,{#10000},11,47,11,47"
|
||||
locations_default(#20062,#10000,11,47,11,47)
|
||||
hasLocation(#20061,#20062)
|
||||
#20063=*
|
||||
tokeninfo(#20063,8,#20040,6,")")
|
||||
#20064=@"loc,{#10000},11,48,11,48"
|
||||
locations_default(#20064,#10000,11,48,11,48)
|
||||
hasLocation(#20063,#20064)
|
||||
#20065=*
|
||||
tokeninfo(#20065,0,#20040,7,"")
|
||||
#20066=@"loc,{#10000},11,49,11,48"
|
||||
locations_default(#20066,#10000,11,49,11,48)
|
||||
hasLocation(#20065,#20066)
|
||||
#20067=*
|
||||
entry_cfg_node(#20067,#20040)
|
||||
#20068=@"loc,{#10000},11,29,11,28"
|
||||
locations_default(#20068,#10000,11,29,11,28)
|
||||
hasLocation(#20067,#20068)
|
||||
#20069=*
|
||||
exit_cfg_node(#20069,#20040)
|
||||
hasLocation(#20069,#20066)
|
||||
successor(#20042,#20044)
|
||||
successor(#20044,#20048)
|
||||
successor(#20050,#20046)
|
||||
successor(#20048,#20050)
|
||||
successor(#20046,#20043)
|
||||
successor(#20043,#20069)
|
||||
successor(#20067,#20042)
|
||||
#20070=@"script;{#10000},12,23"
|
||||
toplevels(#20070,2)
|
||||
#20071=@"loc,{#10000},12,23,12,51"
|
||||
locations_default(#20071,#10000,12,23,12,51)
|
||||
hasLocation(#20070,#20071)
|
||||
#20072=*
|
||||
stmts(#20072,2,#20070,0,"alert(' ... lick!')")
|
||||
hasLocation(#20072,#20071)
|
||||
stmtContainers(#20072,#20070)
|
||||
#20073=*
|
||||
exprs(#20073,13,#20072,0,"alert(' ... lick!')")
|
||||
hasLocation(#20073,#20071)
|
||||
enclosingStmt(#20073,#20072)
|
||||
exprContainers(#20073,#20070)
|
||||
#20074=*
|
||||
exprs(#20074,79,#20073,-1,"alert")
|
||||
#20075=@"loc,{#10000},12,23,12,27"
|
||||
locations_default(#20075,#10000,12,23,12,27)
|
||||
hasLocation(#20074,#20075)
|
||||
enclosingStmt(#20074,#20072)
|
||||
exprContainers(#20074,#20070)
|
||||
literals("alert","alert",#20074)
|
||||
bind(#20074,#20009)
|
||||
#20076=*
|
||||
exprs(#20076,4,#20073,0,"'I said ... click!'")
|
||||
#20077=@"loc,{#10000},12,29,12,50"
|
||||
locations_default(#20077,#10000,12,29,12,50)
|
||||
hasLocation(#20076,#20077)
|
||||
enclosingStmt(#20076,#20072)
|
||||
exprContainers(#20076,#20070)
|
||||
literals("I said don't click!","'I said don\'t click!'",#20076)
|
||||
#20078=*
|
||||
lines(#20078,#20070,"alert('I said don\'t click!')","")
|
||||
hasLocation(#20078,#20071)
|
||||
numlines(#20070,1,1,0)
|
||||
#20079=*
|
||||
tokeninfo(#20079,6,#20070,0,"alert")
|
||||
hasLocation(#20079,#20075)
|
||||
#20080=*
|
||||
tokeninfo(#20080,8,#20070,1,"(")
|
||||
#20081=@"loc,{#10000},12,28,12,28"
|
||||
locations_default(#20081,#10000,12,28,12,28)
|
||||
hasLocation(#20080,#20081)
|
||||
#20082=*
|
||||
tokeninfo(#20082,4,#20070,2,"'I said don\'t click!'")
|
||||
hasLocation(#20082,#20077)
|
||||
#20083=*
|
||||
tokeninfo(#20083,8,#20070,3,")")
|
||||
#20084=@"loc,{#10000},12,51,12,51"
|
||||
locations_default(#20084,#10000,12,51,12,51)
|
||||
hasLocation(#20083,#20084)
|
||||
#20085=*
|
||||
tokeninfo(#20085,0,#20070,4,"")
|
||||
#20086=@"loc,{#10000},12,52,12,51"
|
||||
locations_default(#20086,#10000,12,52,12,51)
|
||||
hasLocation(#20085,#20086)
|
||||
#20087=*
|
||||
entry_cfg_node(#20087,#20070)
|
||||
#20088=@"loc,{#10000},12,23,12,22"
|
||||
locations_default(#20088,#10000,12,23,12,22)
|
||||
hasLocation(#20087,#20088)
|
||||
#20089=*
|
||||
exit_cfg_node(#20089,#20070)
|
||||
hasLocation(#20089,#20086)
|
||||
successor(#20072,#20074)
|
||||
successor(#20076,#20073)
|
||||
successor(#20074,#20076)
|
||||
successor(#20073,#20089)
|
||||
successor(#20087,#20072)
|
||||
#20090=@"script;{#10000},13,21"
|
||||
toplevels(#20090,2)
|
||||
#20091=@"loc,{#10000},13,21,13,33"
|
||||
locations_default(#20091,#10000,13,21,13,33)
|
||||
hasLocation(#20090,#20091)
|
||||
#20092=*
|
||||
stmts(#20092,9,#20090,0,"return false;")
|
||||
hasLocation(#20092,#20091)
|
||||
stmtContainers(#20092,#20090)
|
||||
#20093=*
|
||||
exprs(#20093,2,#20092,0,"false")
|
||||
#20094=@"loc,{#10000},13,28,13,32"
|
||||
locations_default(#20094,#10000,13,28,13,32)
|
||||
hasLocation(#20093,#20094)
|
||||
enclosingStmt(#20093,#20092)
|
||||
exprContainers(#20093,#20090)
|
||||
literals("false","false",#20093)
|
||||
#20095=*
|
||||
lines(#20095,#20090,"return false;","")
|
||||
hasLocation(#20095,#20091)
|
||||
numlines(#20090,1,1,0)
|
||||
#20096=*
|
||||
tokeninfo(#20096,7,#20090,0,"return")
|
||||
#20097=@"loc,{#10000},13,21,13,26"
|
||||
locations_default(#20097,#10000,13,21,13,26)
|
||||
hasLocation(#20096,#20097)
|
||||
#20098=*
|
||||
tokeninfo(#20098,2,#20090,1,"false")
|
||||
hasLocation(#20098,#20094)
|
||||
#20099=*
|
||||
tokeninfo(#20099,8,#20090,2,";")
|
||||
#20100=@"loc,{#10000},13,33,13,33"
|
||||
locations_default(#20100,#10000,13,33,13,33)
|
||||
hasLocation(#20099,#20100)
|
||||
#20101=*
|
||||
tokeninfo(#20101,0,#20090,3,"")
|
||||
#20102=@"loc,{#10000},13,34,13,33"
|
||||
locations_default(#20102,#10000,13,34,13,33)
|
||||
hasLocation(#20101,#20102)
|
||||
#20103=*
|
||||
entry_cfg_node(#20103,#20090)
|
||||
#20104=@"loc,{#10000},13,21,13,20"
|
||||
locations_default(#20104,#10000,13,21,13,20)
|
||||
hasLocation(#20103,#20104)
|
||||
#20105=*
|
||||
exit_cfg_node(#20105,#20090)
|
||||
hasLocation(#20105,#20102)
|
||||
successor(#20093,#20092)
|
||||
successor(#20092,#20105)
|
||||
successor(#20103,#20093)
|
||||
#20106=*
|
||||
xmlElements(#20106,"html",#10000,0,#10000)
|
||||
#20107=@"loc,{#10000},1,1,18,7"
|
||||
locations_default(#20107,#10000,1,1,18,7)
|
||||
xmllocations(#20106,#20107)
|
||||
#20108=*
|
||||
xmlElements(#20108,"head",#20106,0,#10000)
|
||||
#20109=@"loc,{#10000},2,5,9,11"
|
||||
locations_default(#20109,#10000,2,5,9,11)
|
||||
xmllocations(#20108,#20109)
|
||||
#20110=*
|
||||
xmlElements(#20110,"body",#20106,1,#10000)
|
||||
#20111=@"loc,{#10000},10,5,14,11"
|
||||
locations_default(#20111,#10000,10,5,14,11)
|
||||
xmllocations(#20110,#20111)
|
||||
#20112=*
|
||||
xmlElements(#20112,"script",#20106,2,#10000)
|
||||
#20113=@"loc,{#10000},15,5,15,71"
|
||||
locations_default(#20113,#10000,15,5,15,71)
|
||||
xmllocations(#20112,#20113)
|
||||
#20114=*
|
||||
xmlElements(#20114,"script",#20106,3,#10000)
|
||||
#20115=@"loc,{#10000},16,5,16,71"
|
||||
locations_default(#20115,#10000,16,5,16,71)
|
||||
xmllocations(#20114,#20115)
|
||||
#20116=*
|
||||
xmlElements(#20116,"script",#20106,4,#10000)
|
||||
#20117=@"loc,{#10000},17,5,17,29"
|
||||
locations_default(#20117,#10000,17,5,17,29)
|
||||
xmllocations(#20116,#20117)
|
||||
#20118=*
|
||||
xmlElements(#20118,"title",#20108,0,#10000)
|
||||
#20119=@"loc,{#10000},3,9,3,32"
|
||||
locations_default(#20119,#10000,3,9,3,32)
|
||||
xmllocations(#20118,#20119)
|
||||
#20120=*
|
||||
xmlElements(#20120,"script",#20108,1,#10000)
|
||||
#20121=@"loc,{#10000},4,9,4,43"
|
||||
locations_default(#20121,#10000,4,9,4,43)
|
||||
xmllocations(#20120,#20121)
|
||||
#20122=*
|
||||
xmlElements(#20122,"script",#20108,2,#10000)
|
||||
#20123=@"loc,{#10000},5,9,7,17"
|
||||
locations_default(#20123,#10000,5,9,7,17)
|
||||
xmllocations(#20122,#20123)
|
||||
#20124=*
|
||||
xmlElements(#20124,"script",#20108,3,#10000)
|
||||
#20125=@"loc,{#10000},8,9,8,26"
|
||||
locations_default(#20125,#10000,8,9,8,26)
|
||||
xmllocations(#20124,#20125)
|
||||
#20126=*
|
||||
xmlAttrs(#20126,#20120,"src","external.js",0,#10000)
|
||||
#20127=@"loc,{#10000},4,17,4,33"
|
||||
locations_default(#20127,#10000,4,17,4,33)
|
||||
xmllocations(#20126,#20127)
|
||||
#20128=*
|
||||
xmlElements(#20128,"a",#20110,0,#10000)
|
||||
#20129=@"loc,{#10000},11,9,11,64"
|
||||
locations_default(#20129,#10000,11,9,11,64)
|
||||
xmllocations(#20128,#20129)
|
||||
#20130=*
|
||||
xmlElements(#20130,"div",#20110,1,#10000)
|
||||
#20131=@"loc,{#10000},12,9,12,75"
|
||||
locations_default(#20131,#10000,12,9,12,75)
|
||||
xmllocations(#20130,#20131)
|
||||
#20132=*
|
||||
xmlElements(#20132,"a",#20110,2,#10000)
|
||||
#20133=@"loc,{#10000},13,9,13,59"
|
||||
locations_default(#20133,#10000,13,9,13,59)
|
||||
xmllocations(#20132,#20133)
|
||||
#20134=*
|
||||
xmlAttrs(#20134,#20128,"href","javascript:void(alert('Nope!'))",0,#10000)
|
||||
#20135=@"loc,{#10000},11,12,11,49"
|
||||
locations_default(#20135,#10000,11,12,11,49)
|
||||
xmllocations(#20134,#20135)
|
||||
#20136=*
|
||||
xmlAttrs(#20136,#20130,"onclick","alert('I said don\'t click!')",0,#10000)
|
||||
#20137=@"loc,{#10000},12,14,12,52"
|
||||
locations_default(#20137,#10000,12,14,12,52)
|
||||
xmllocations(#20136,#20137)
|
||||
#20138=*
|
||||
xmlAttrs(#20138,#20132,"onclick","return false;",0,#10000)
|
||||
#20139=@"loc,{#10000},13,12,13,34"
|
||||
locations_default(#20139,#10000,13,12,13,34)
|
||||
xmllocations(#20138,#20139)
|
||||
#20140=*
|
||||
xmlAttrs(#20140,#20112,"type","text/x-handlebars-template",0,#10000)
|
||||
#20141=@"loc,{#10000},15,13,15,45"
|
||||
locations_default(#20141,#10000,15,13,15,45)
|
||||
xmllocations(#20140,#20141)
|
||||
#20142=*
|
||||
xmlAttrs(#20142,#20114,"TYPE","text/x-handlebars-template",0,#10000)
|
||||
#20143=@"loc,{#10000},16,13,16,45"
|
||||
locations_default(#20143,#10000,16,13,16,45)
|
||||
xmllocations(#20142,#20143)
|
||||
#20144=*
|
||||
xmlAttrs(#20144,#20116,"type","",0,#10000)
|
||||
#20145=@"loc,{#10000},17,13,17,19"
|
||||
locations_default(#20145,#10000,17,13,17,19)
|
||||
xmllocations(#20144,#20145)
|
||||
numlines(#10000,18,5,0)
|
||||
filetype(#10000,"html")
|
||||
118
javascript/extractor/tests/html/output/trap/tst.xhtml.trap
Normal file
118
javascript/extractor/tests/html/output/trap/tst.xhtml.trap
Normal file
@@ -0,0 +1,118 @@
|
||||
#10000=@"/tst.xhtml;sourcefile"
|
||||
files(#10000,"/tst.xhtml","tst","xhtml",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},7,43"
|
||||
toplevels(#20001,1)
|
||||
#20002=@"loc,{#10000},7,43,10,7"
|
||||
locations_default(#20002,#10000,7,43,10,7)
|
||||
hasLocation(#20001,#20002)
|
||||
#20003=*
|
||||
stmts(#20003,2,#20001,0,"42;")
|
||||
#20004=@"loc,{#10000},9,5,9,7"
|
||||
locations_default(#20004,#10000,9,5,9,7)
|
||||
hasLocation(#20003,#20004)
|
||||
stmtContainers(#20003,#20001)
|
||||
#20005=*
|
||||
exprs(#20005,3,#20003,0,"42")
|
||||
#20006=@"loc,{#10000},9,5,9,6"
|
||||
locations_default(#20006,#10000,9,5,9,6)
|
||||
hasLocation(#20005,#20006)
|
||||
enclosingStmt(#20005,#20003)
|
||||
exprContainers(#20005,#20001)
|
||||
literals("42","42",#20005)
|
||||
#20007=*
|
||||
lines(#20007,#20001,"","
|
||||
")
|
||||
#20008=@"loc,{#10000},7,43,7,42"
|
||||
locations_default(#20008,#10000,7,43,7,42)
|
||||
hasLocation(#20007,#20008)
|
||||
#20009=*
|
||||
lines(#20009,#20001," ","
|
||||
")
|
||||
#20010=@"loc,{#10000},8,1,8,14"
|
||||
locations_default(#20010,#10000,8,1,8,14)
|
||||
hasLocation(#20009,#20010)
|
||||
#20011=*
|
||||
lines(#20011,#20001," 42;","
|
||||
")
|
||||
#20012=@"loc,{#10000},9,1,9,7"
|
||||
locations_default(#20012,#10000,9,1,9,7)
|
||||
hasLocation(#20011,#20012)
|
||||
indentation(#10000,9," ",4)
|
||||
#20013=*
|
||||
lines(#20013,#20001," ","")
|
||||
#20014=@"loc,{#10000},10,1,10,7"
|
||||
locations_default(#20014,#10000,10,1,10,7)
|
||||
hasLocation(#20013,#20014)
|
||||
numlines(#20001,4,1,0)
|
||||
#20015=*
|
||||
tokeninfo(#20015,3,#20001,0,"42")
|
||||
hasLocation(#20015,#20006)
|
||||
#20016=*
|
||||
tokeninfo(#20016,8,#20001,1,";")
|
||||
#20017=@"loc,{#10000},9,7,9,7"
|
||||
locations_default(#20017,#10000,9,7,9,7)
|
||||
hasLocation(#20016,#20017)
|
||||
#20018=*
|
||||
tokeninfo(#20018,0,#20001,2,"")
|
||||
#20019=@"loc,{#10000},10,8,10,7"
|
||||
locations_default(#20019,#10000,10,8,10,7)
|
||||
hasLocation(#20018,#20019)
|
||||
#20020=*
|
||||
entry_cfg_node(#20020,#20001)
|
||||
hasLocation(#20020,#20008)
|
||||
#20021=*
|
||||
exit_cfg_node(#20021,#20001)
|
||||
hasLocation(#20021,#20019)
|
||||
successor(#20003,#20005)
|
||||
successor(#20005,#20021)
|
||||
successor(#20020,#20003)
|
||||
#20022=*
|
||||
xmlElements(#20022,"html",#10000,0,#10000)
|
||||
#20023=@"loc,{#10000},2,1,12,7"
|
||||
locations_default(#20023,#10000,2,1,12,7)
|
||||
xmllocations(#20022,#20023)
|
||||
#20024=*
|
||||
xmlElements(#20024,"head",#20022,0,#10000)
|
||||
#20025=@"loc,{#10000},3,1,5,7"
|
||||
locations_default(#20025,#10000,3,1,5,7)
|
||||
xmllocations(#20024,#20025)
|
||||
#20026=*
|
||||
xmlElements(#20026,"body",#20022,1,#10000)
|
||||
#20027=@"loc,{#10000},6,1,11,7"
|
||||
locations_default(#20027,#10000,6,1,11,7)
|
||||
xmllocations(#20026,#20027)
|
||||
#20028=*
|
||||
xmlAttrs(#20028,#20022,"xmlns","http://www.w3.org/1999/xhtml",0,#10000)
|
||||
#20029=@"loc,{#10000},2,7,2,42"
|
||||
locations_default(#20029,#10000,2,7,2,42)
|
||||
xmllocations(#20028,#20029)
|
||||
#20030=*
|
||||
xmlAttrs(#20030,#20022,"xml:lang","en",1,#10000)
|
||||
#20031=@"loc,{#10000},2,44,2,56"
|
||||
locations_default(#20031,#10000,2,44,2,56)
|
||||
xmllocations(#20030,#20031)
|
||||
#20032=*
|
||||
xmlElements(#20032,"title",#20024,0,#10000)
|
||||
#20033=@"loc,{#10000},4,5,4,31"
|
||||
locations_default(#20033,#10000,4,5,4,31)
|
||||
xmllocations(#20032,#20033)
|
||||
#20034=*
|
||||
xmlElements(#20034,"script",#20026,0,#10000)
|
||||
#20035=@"loc,{#10000},7,5,10,16"
|
||||
locations_default(#20035,#10000,7,5,10,16)
|
||||
xmllocations(#20034,#20035)
|
||||
#20036=*
|
||||
xmlAttrs(#20036,#20034,"type","application/javascript",0,#10000)
|
||||
#20037=@"loc,{#10000},7,13,7,41"
|
||||
locations_default(#20037,#10000,7,13,7,41)
|
||||
xmllocations(#20036,#20037)
|
||||
numlines(#10000,12,1,0)
|
||||
filetype(#10000,"html")
|
||||
362
javascript/extractor/tests/html/output/trap/tst2.html.trap
Normal file
362
javascript/extractor/tests/html/output/trap/tst2.html.trap
Normal file
@@ -0,0 +1,362 @@
|
||||
#10000=@"/tst2.html;sourcefile"
|
||||
files(#10000,"/tst2.html","tst2","html",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},2,31"
|
||||
toplevels(#20001,1)
|
||||
#20002=@"loc,{#10000},2,31,2,40"
|
||||
locations_default(#20002,#10000,2,31,2,40)
|
||||
hasLocation(#20001,#20002)
|
||||
#20003=@"var;{hello};{#20000}"
|
||||
variables(#20003,"hello",#20000)
|
||||
#20004=*
|
||||
stmts(#20004,18,#20001,0,"var hello;")
|
||||
hasLocation(#20004,#20002)
|
||||
stmtContainers(#20004,#20001)
|
||||
#20005=*
|
||||
exprs(#20005,64,#20004,0,"hello")
|
||||
#20006=@"loc,{#10000},2,35,2,39"
|
||||
locations_default(#20006,#10000,2,35,2,39)
|
||||
hasLocation(#20005,#20006)
|
||||
enclosingStmt(#20005,#20004)
|
||||
exprContainers(#20005,#20001)
|
||||
#20007=*
|
||||
exprs(#20007,78,#20005,0,"hello")
|
||||
hasLocation(#20007,#20006)
|
||||
enclosingStmt(#20007,#20004)
|
||||
exprContainers(#20007,#20001)
|
||||
literals("hello","hello",#20007)
|
||||
decl(#20007,#20003)
|
||||
#20008=*
|
||||
lines(#20008,#20001,"var hello;","")
|
||||
hasLocation(#20008,#20002)
|
||||
numlines(#20001,1,1,0)
|
||||
#20009=*
|
||||
tokeninfo(#20009,7,#20001,0,"var")
|
||||
#20010=@"loc,{#10000},2,31,2,33"
|
||||
locations_default(#20010,#10000,2,31,2,33)
|
||||
hasLocation(#20009,#20010)
|
||||
#20011=*
|
||||
tokeninfo(#20011,6,#20001,1,"hello")
|
||||
hasLocation(#20011,#20006)
|
||||
#20012=*
|
||||
tokeninfo(#20012,8,#20001,2,";")
|
||||
#20013=@"loc,{#10000},2,40,2,40"
|
||||
locations_default(#20013,#10000,2,40,2,40)
|
||||
hasLocation(#20012,#20013)
|
||||
#20014=*
|
||||
tokeninfo(#20014,0,#20001,3,"")
|
||||
#20015=@"loc,{#10000},2,41,2,40"
|
||||
locations_default(#20015,#10000,2,41,2,40)
|
||||
hasLocation(#20014,#20015)
|
||||
#20016=*
|
||||
entry_cfg_node(#20016,#20001)
|
||||
#20017=@"loc,{#10000},2,31,2,30"
|
||||
locations_default(#20017,#10000,2,31,2,30)
|
||||
hasLocation(#20016,#20017)
|
||||
#20018=*
|
||||
exit_cfg_node(#20018,#20001)
|
||||
hasLocation(#20018,#20015)
|
||||
successor(#20004,#20007)
|
||||
successor(#20007,#20005)
|
||||
successor(#20005,#20018)
|
||||
successor(#20016,#20004)
|
||||
#20019=@"script;{#10000},3,29"
|
||||
toplevels(#20019,1)
|
||||
#20020=@"loc,{#10000},3,29,3,38"
|
||||
locations_default(#20020,#10000,3,29,3,38)
|
||||
hasLocation(#20019,#20020)
|
||||
#20021=@"var;{world};{#20000}"
|
||||
variables(#20021,"world",#20000)
|
||||
#20022=*
|
||||
stmts(#20022,18,#20019,0,"var world;")
|
||||
hasLocation(#20022,#20020)
|
||||
stmtContainers(#20022,#20019)
|
||||
#20023=*
|
||||
exprs(#20023,64,#20022,0,"world")
|
||||
#20024=@"loc,{#10000},3,33,3,37"
|
||||
locations_default(#20024,#10000,3,33,3,37)
|
||||
hasLocation(#20023,#20024)
|
||||
enclosingStmt(#20023,#20022)
|
||||
exprContainers(#20023,#20019)
|
||||
#20025=*
|
||||
exprs(#20025,78,#20023,0,"world")
|
||||
hasLocation(#20025,#20024)
|
||||
enclosingStmt(#20025,#20022)
|
||||
exprContainers(#20025,#20019)
|
||||
literals("world","world",#20025)
|
||||
decl(#20025,#20021)
|
||||
#20026=*
|
||||
lines(#20026,#20019,"var world;","")
|
||||
hasLocation(#20026,#20020)
|
||||
numlines(#20019,1,1,0)
|
||||
#20027=*
|
||||
tokeninfo(#20027,7,#20019,0,"var")
|
||||
#20028=@"loc,{#10000},3,29,3,31"
|
||||
locations_default(#20028,#10000,3,29,3,31)
|
||||
hasLocation(#20027,#20028)
|
||||
#20029=*
|
||||
tokeninfo(#20029,6,#20019,1,"world")
|
||||
hasLocation(#20029,#20024)
|
||||
#20030=*
|
||||
tokeninfo(#20030,8,#20019,2,";")
|
||||
#20031=@"loc,{#10000},3,38,3,38"
|
||||
locations_default(#20031,#10000,3,38,3,38)
|
||||
hasLocation(#20030,#20031)
|
||||
#20032=*
|
||||
tokeninfo(#20032,0,#20019,3,"")
|
||||
#20033=@"loc,{#10000},3,39,3,38"
|
||||
locations_default(#20033,#10000,3,39,3,38)
|
||||
hasLocation(#20032,#20033)
|
||||
#20034=*
|
||||
entry_cfg_node(#20034,#20019)
|
||||
#20035=@"loc,{#10000},3,29,3,28"
|
||||
locations_default(#20035,#10000,3,29,3,28)
|
||||
hasLocation(#20034,#20035)
|
||||
#20036=*
|
||||
exit_cfg_node(#20036,#20019)
|
||||
hasLocation(#20036,#20033)
|
||||
successor(#20022,#20025)
|
||||
successor(#20025,#20023)
|
||||
successor(#20023,#20036)
|
||||
successor(#20034,#20022)
|
||||
#20037=@"script;{#10000},4,75"
|
||||
toplevels(#20037,1)
|
||||
#20038=@"loc,{#10000},4,75,6,4"
|
||||
locations_default(#20038,#10000,4,75,6,4)
|
||||
hasLocation(#20037,#20038)
|
||||
#20039=@"module;{#10000},4,75"
|
||||
scopes(#20039,3)
|
||||
scopenodes(#20037,#20039)
|
||||
scopenesting(#20039,#20000)
|
||||
isModule(#20037)
|
||||
#20040=@"var;{inAModule};{#20039}"
|
||||
variables(#20040,"inAModule",#20039)
|
||||
#20041=*
|
||||
stmts(#20041,18,#20037,0,"var inAModule;")
|
||||
#20042=@"loc,{#10000},5,7,5,20"
|
||||
locations_default(#20042,#10000,5,7,5,20)
|
||||
hasLocation(#20041,#20042)
|
||||
stmtContainers(#20041,#20037)
|
||||
#20043=*
|
||||
exprs(#20043,64,#20041,0,"inAModule")
|
||||
#20044=@"loc,{#10000},5,11,5,19"
|
||||
locations_default(#20044,#10000,5,11,5,19)
|
||||
hasLocation(#20043,#20044)
|
||||
enclosingStmt(#20043,#20041)
|
||||
exprContainers(#20043,#20037)
|
||||
#20045=*
|
||||
exprs(#20045,78,#20043,0,"inAModule")
|
||||
hasLocation(#20045,#20044)
|
||||
enclosingStmt(#20045,#20041)
|
||||
exprContainers(#20045,#20037)
|
||||
literals("inAModule","inAModule",#20045)
|
||||
decl(#20045,#20040)
|
||||
#20046=*
|
||||
lines(#20046,#20037,"","
|
||||
")
|
||||
#20047=@"loc,{#10000},4,75,4,74"
|
||||
locations_default(#20047,#10000,4,75,4,74)
|
||||
hasLocation(#20046,#20047)
|
||||
#20048=*
|
||||
lines(#20048,#20037," var inAModule;","
|
||||
")
|
||||
#20049=@"loc,{#10000},5,1,5,20"
|
||||
locations_default(#20049,#10000,5,1,5,20)
|
||||
hasLocation(#20048,#20049)
|
||||
indentation(#10000,5," ",6)
|
||||
#20050=*
|
||||
lines(#20050,#20037," ","")
|
||||
#20051=@"loc,{#10000},6,1,6,4"
|
||||
locations_default(#20051,#10000,6,1,6,4)
|
||||
hasLocation(#20050,#20051)
|
||||
numlines(#20037,3,1,0)
|
||||
#20052=*
|
||||
tokeninfo(#20052,7,#20037,0,"var")
|
||||
#20053=@"loc,{#10000},5,7,5,9"
|
||||
locations_default(#20053,#10000,5,7,5,9)
|
||||
hasLocation(#20052,#20053)
|
||||
#20054=*
|
||||
tokeninfo(#20054,6,#20037,1,"inAModule")
|
||||
hasLocation(#20054,#20044)
|
||||
#20055=*
|
||||
tokeninfo(#20055,8,#20037,2,";")
|
||||
#20056=@"loc,{#10000},5,20,5,20"
|
||||
locations_default(#20056,#10000,5,20,5,20)
|
||||
hasLocation(#20055,#20056)
|
||||
#20057=*
|
||||
tokeninfo(#20057,0,#20037,3,"")
|
||||
#20058=@"loc,{#10000},6,5,6,4"
|
||||
locations_default(#20058,#10000,6,5,6,4)
|
||||
hasLocation(#20057,#20058)
|
||||
#20059=*
|
||||
entry_cfg_node(#20059,#20037)
|
||||
hasLocation(#20059,#20047)
|
||||
#20060=*
|
||||
exit_cfg_node(#20060,#20037)
|
||||
hasLocation(#20060,#20058)
|
||||
successor(#20041,#20045)
|
||||
successor(#20045,#20043)
|
||||
successor(#20043,#20060)
|
||||
successor(#20059,#20041)
|
||||
#20061=@"script;{#10000},7,75"
|
||||
toplevels(#20061,1)
|
||||
#20062=@"loc,{#10000},7,75,9,4"
|
||||
locations_default(#20062,#10000,7,75,9,4)
|
||||
hasLocation(#20061,#20062)
|
||||
#20063=@"module;{#10000},7,75"
|
||||
scopes(#20063,3)
|
||||
scopenodes(#20061,#20063)
|
||||
scopenesting(#20063,#20000)
|
||||
isModule(#20061)
|
||||
#20064=@"var;{f};{#20063}"
|
||||
variables(#20064,"f",#20063)
|
||||
#20065=@"local_type_name;{f};{#20063}"
|
||||
local_type_names(#20065,"f",#20063)
|
||||
#20066=@"local_namespace_name;{f};{#20063}"
|
||||
local_namespace_names(#20066,"f",#20063)
|
||||
variables(#20064,"f",#20063)
|
||||
local_type_names(#20065,"f",#20063)
|
||||
local_namespace_names(#20066,"f",#20063)
|
||||
#20067=*
|
||||
stmts(#20067,27,#20061,0,"import f from ""f""")
|
||||
#20068=@"loc,{#10000},8,7,8,23"
|
||||
locations_default(#20068,#10000,8,7,8,23)
|
||||
hasLocation(#20067,#20068)
|
||||
stmtContainers(#20067,#20061)
|
||||
#20069=*
|
||||
exprs(#20069,4,#20067,-1,"""f""")
|
||||
#20070=@"loc,{#10000},8,21,8,23"
|
||||
locations_default(#20070,#10000,8,21,8,23)
|
||||
hasLocation(#20069,#20070)
|
||||
enclosingStmt(#20069,#20067)
|
||||
exprContainers(#20069,#20061)
|
||||
literals("f","""f""",#20069)
|
||||
#20071=*
|
||||
exprs(#20071,84,#20067,0,"f")
|
||||
#20072=@"loc,{#10000},8,14,8,14"
|
||||
locations_default(#20072,#10000,8,14,8,14)
|
||||
hasLocation(#20071,#20072)
|
||||
enclosingStmt(#20071,#20067)
|
||||
exprContainers(#20071,#20061)
|
||||
#20073=*
|
||||
exprs(#20073,78,#20071,1,"f")
|
||||
hasLocation(#20073,#20072)
|
||||
enclosingStmt(#20073,#20067)
|
||||
exprContainers(#20073,#20061)
|
||||
literals("f","f",#20073)
|
||||
decl(#20073,#20064)
|
||||
typedecl(#20073,#20065)
|
||||
namespacedecl(#20073,#20066)
|
||||
#20074=*
|
||||
lines(#20074,#20061,"","
|
||||
")
|
||||
#20075=@"loc,{#10000},7,75,7,74"
|
||||
locations_default(#20075,#10000,7,75,7,74)
|
||||
hasLocation(#20074,#20075)
|
||||
#20076=*
|
||||
lines(#20076,#20061," import f from ""f""","
|
||||
")
|
||||
#20077=@"loc,{#10000},8,1,8,23"
|
||||
locations_default(#20077,#10000,8,1,8,23)
|
||||
hasLocation(#20076,#20077)
|
||||
indentation(#10000,8," ",6)
|
||||
#20078=*
|
||||
lines(#20078,#20061," ","")
|
||||
#20079=@"loc,{#10000},9,1,9,4"
|
||||
locations_default(#20079,#10000,9,1,9,4)
|
||||
hasLocation(#20078,#20079)
|
||||
numlines(#20061,3,1,0)
|
||||
#20080=*
|
||||
tokeninfo(#20080,7,#20061,0,"import")
|
||||
#20081=@"loc,{#10000},8,7,8,12"
|
||||
locations_default(#20081,#10000,8,7,8,12)
|
||||
hasLocation(#20080,#20081)
|
||||
#20082=*
|
||||
tokeninfo(#20082,6,#20061,1,"f")
|
||||
hasLocation(#20082,#20072)
|
||||
#20083=*
|
||||
tokeninfo(#20083,6,#20061,2,"from")
|
||||
#20084=@"loc,{#10000},8,16,8,19"
|
||||
locations_default(#20084,#10000,8,16,8,19)
|
||||
hasLocation(#20083,#20084)
|
||||
#20085=*
|
||||
tokeninfo(#20085,4,#20061,3,"""f""")
|
||||
hasLocation(#20085,#20070)
|
||||
#20086=*
|
||||
tokeninfo(#20086,0,#20061,4,"")
|
||||
#20087=@"loc,{#10000},9,5,9,4"
|
||||
locations_default(#20087,#10000,9,5,9,4)
|
||||
hasLocation(#20086,#20087)
|
||||
#20088=*
|
||||
entry_cfg_node(#20088,#20061)
|
||||
hasLocation(#20088,#20075)
|
||||
#20089=*
|
||||
exit_cfg_node(#20089,#20061)
|
||||
hasLocation(#20089,#20087)
|
||||
successor(#20067,#20089)
|
||||
successor(#20071,#20067)
|
||||
successor(#20088,#20071)
|
||||
#20090=*
|
||||
xmlElements(#20090,"html",#10000,0,#10000)
|
||||
#20091=@"loc,{#10000},1,1,10,7"
|
||||
locations_default(#20091,#10000,1,1,10,7)
|
||||
xmllocations(#20090,#20091)
|
||||
#20092=*
|
||||
xmlElements(#20092,"script",#20090,0,#10000)
|
||||
#20093=@"loc,{#10000},2,5,2,49"
|
||||
locations_default(#20093,#10000,2,5,2,49)
|
||||
xmllocations(#20092,#20093)
|
||||
#20094=*
|
||||
xmlElements(#20094,"script",#20090,1,#10000)
|
||||
#20095=@"loc,{#10000},3,5,3,47"
|
||||
locations_default(#20095,#10000,3,5,3,47)
|
||||
xmllocations(#20094,#20095)
|
||||
#20096=*
|
||||
xmlElements(#20096,"script",#20090,2,#10000)
|
||||
#20097=@"loc,{#10000},4,5,6,13"
|
||||
locations_default(#20097,#10000,4,5,6,13)
|
||||
xmllocations(#20096,#20097)
|
||||
#20098=*
|
||||
xmlElements(#20098,"script",#20090,3,#10000)
|
||||
#20099=@"loc,{#10000},7,5,9,13"
|
||||
locations_default(#20099,#10000,7,5,9,13)
|
||||
xmllocations(#20098,#20099)
|
||||
#20100=*
|
||||
xmlAttrs(#20100,#20092,"type","text/babel",0,#10000)
|
||||
#20101=@"loc,{#10000},2,13,2,29"
|
||||
locations_default(#20101,#10000,2,13,2,29)
|
||||
xmllocations(#20100,#20101)
|
||||
#20102=*
|
||||
xmlAttrs(#20102,#20094,"type","text/jsx",0,#10000)
|
||||
#20103=@"loc,{#10000},3,13,3,27"
|
||||
locations_default(#20103,#10000,3,13,3,27)
|
||||
xmllocations(#20102,#20103)
|
||||
#20104=*
|
||||
xmlAttrs(#20104,#20096,"type","text/babel",0,#10000)
|
||||
#20105=@"loc,{#10000},4,13,4,29"
|
||||
locations_default(#20105,#10000,4,13,4,29)
|
||||
xmllocations(#20104,#20105)
|
||||
#20106=*
|
||||
xmlAttrs(#20106,#20096,"data-plugins","transform-es2015-modules-umd",1,#10000)
|
||||
#20107=@"loc,{#10000},4,31,4,73"
|
||||
locations_default(#20107,#10000,4,31,4,73)
|
||||
xmllocations(#20106,#20107)
|
||||
#20108=*
|
||||
xmlAttrs(#20108,#20098,"type","text/babel",0,#10000)
|
||||
#20109=@"loc,{#10000},7,13,7,29"
|
||||
locations_default(#20109,#10000,7,13,7,29)
|
||||
xmllocations(#20108,#20109)
|
||||
#20110=*
|
||||
xmlAttrs(#20110,#20098,"data-plugins","transform-es2015-modules-umd",1,#10000)
|
||||
#20111=@"loc,{#10000},7,31,7,73"
|
||||
locations_default(#20111,#10000,7,31,7,73)
|
||||
xmllocations(#20110,#20111)
|
||||
numlines(#10000,10,4,0)
|
||||
filetype(#10000,"html")
|
||||
37
javascript/extractor/tests/html/output/trap/tst2.xhtml.trap
Normal file
37
javascript/extractor/tests/html/output/trap/tst2.xhtml.trap
Normal file
@@ -0,0 +1,37 @@
|
||||
#10000=@"/tst2.xhtml;sourcefile"
|
||||
files(#10000,"/tst2.xhtml","tst2","xhtml",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=*
|
||||
xmlElements(#20001,"html",#10000,0,#10000)
|
||||
#20002=@"loc,{#10000},2,1,8,7"
|
||||
locations_default(#20002,#10000,2,1,8,7)
|
||||
xmllocations(#20001,#20002)
|
||||
#20003=*
|
||||
xmlElements(#20003,"head",#20001,0,#10000)
|
||||
#20004=@"loc,{#10000},3,3,6,9"
|
||||
locations_default(#20004,#10000,3,3,6,9)
|
||||
xmllocations(#20003,#20004)
|
||||
#20005=*
|
||||
xmlElements(#20005,"body",#20001,1,#10000)
|
||||
#20006=@"loc,{#10000},7,3,7,10"
|
||||
locations_default(#20006,#10000,7,3,7,10)
|
||||
xmllocations(#20005,#20006)
|
||||
#20007=*
|
||||
xmlElements(#20007,"script",#20003,0,#10000)
|
||||
#20008=@"loc,{#10000},4,5,5,21"
|
||||
locations_default(#20008,#10000,4,5,5,21)
|
||||
xmllocations(#20007,#20008)
|
||||
#20009=*
|
||||
xmlAttrs(#20009,#20007,"src","svgunit.js",0,#10000)
|
||||
#20010=@"loc,{#10000},4,13,4,28"
|
||||
locations_default(#20010,#10000,4,13,4,28)
|
||||
xmllocations(#20009,#20010)
|
||||
numlines(#10000,8,0,0)
|
||||
filetype(#10000,"html")
|
||||
Reference in New Issue
Block a user