Skip to content

Commit 7b0c3c9

Browse files
committed
Added intersection test for parsing.
1 parent 6857954 commit 7b0c3c9

File tree

3 files changed

+129
-0
lines changed

3 files changed

+129
-0
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/[[abc]&&[bcd]]/v
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"experimental": true
3+
}
Lines changed: 125 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,125 @@
1+
#10000=@"/intersection.js;sourcefile"
2+
files(#10000,"/intersection.js")
3+
#10001=@"/;folder"
4+
folders(#10001,"/")
5+
containerparent(#10001,#10000)
6+
#10002=@"loc,{#10000},0,0,0,0"
7+
locations_default(#10002,#10000,0,0,0,0)
8+
hasLocation(#10000,#10002)
9+
#20000=@"global_scope"
10+
scopes(#20000,0)
11+
#20001=@"script;{#10000},1,1"
12+
#20002=*
13+
lines(#20002,#20001,"/[[abc]&&[bcd]]/v","
14+
")
15+
#20003=@"loc,{#10000},1,1,1,17"
16+
locations_default(#20003,#10000,1,1,1,17)
17+
hasLocation(#20002,#20003)
18+
numlines(#20001,1,1,0)
19+
#20004=*
20+
tokeninfo(#20004,5,#20001,0,"/[[abc]&&[bcd]]/v")
21+
hasLocation(#20004,#20003)
22+
#20005=*
23+
tokeninfo(#20005,0,#20001,1,"")
24+
#20006=@"loc,{#10000},2,1,2,0"
25+
locations_default(#20006,#10000,2,1,2,0)
26+
hasLocation(#20005,#20006)
27+
toplevels(#20001,0)
28+
#20007=@"loc,{#10000},1,1,2,0"
29+
locations_default(#20007,#10000,1,1,2,0)
30+
hasLocation(#20001,#20007)
31+
#20008=*
32+
stmts(#20008,2,#20001,0,"/[[abc]&&[bcd]]/v")
33+
hasLocation(#20008,#20003)
34+
stmt_containers(#20008,#20001)
35+
#20009=*
36+
exprs(#20009,5,#20008,0,"/[[abc]&&[bcd]]/v")
37+
hasLocation(#20009,#20003)
38+
enclosing_stmt(#20009,#20008)
39+
expr_containers(#20009,#20001)
40+
literals("/[[abc]&&[bcd]]/v","/[[abc]&&[bcd]]/v",#20009)
41+
#20010=*
42+
regexpterm(#20010,1,#20009,0,"[[abc]&&[bcd]]")
43+
#20011=@"loc,{#10000},1,2,1,15"
44+
locations_default(#20011,#10000,1,2,1,15)
45+
hasLocation(#20010,#20011)
46+
#20012=*
47+
regexpterm(#20012,23,#20010,0,"[[abc]")
48+
#20013=@"loc,{#10000},1,2,1,7"
49+
locations_default(#20013,#10000,1,2,1,7)
50+
hasLocation(#20012,#20013)
51+
#20014=*
52+
regexpterm(#20014,14,#20012,0,"[")
53+
#20015=@"loc,{#10000},1,3,1,3"
54+
locations_default(#20015,#10000,1,3,1,3)
55+
hasLocation(#20014,#20015)
56+
regexp_const_value(#20014,"[")
57+
#20016=*
58+
regexpterm(#20016,14,#20012,1,"a")
59+
#20017=@"loc,{#10000},1,4,1,4"
60+
locations_default(#20017,#10000,1,4,1,4)
61+
hasLocation(#20016,#20017)
62+
regexp_const_value(#20016,"a")
63+
#20018=*
64+
regexpterm(#20018,14,#20012,2,"b")
65+
#20019=@"loc,{#10000},1,5,1,5"
66+
locations_default(#20019,#10000,1,5,1,5)
67+
hasLocation(#20018,#20019)
68+
regexp_const_value(#20018,"b")
69+
#20020=*
70+
regexpterm(#20020,14,#20012,3,"c")
71+
#20021=@"loc,{#10000},1,6,1,6"
72+
locations_default(#20021,#10000,1,6,1,6)
73+
hasLocation(#20020,#20021)
74+
regexp_const_value(#20020,"c")
75+
#20022=*
76+
regexpterm(#20022,14,#20010,1,"&&")
77+
#20023=@"loc,{#10000},1,8,1,9"
78+
locations_default(#20023,#10000,1,8,1,9)
79+
hasLocation(#20022,#20023)
80+
regexp_const_value(#20022,"&&")
81+
#20024=*
82+
regexpterm(#20024,23,#20010,2,"[bcd]")
83+
#20025=@"loc,{#10000},1,10,1,14"
84+
locations_default(#20025,#10000,1,10,1,14)
85+
hasLocation(#20024,#20025)
86+
#20026=*
87+
regexpterm(#20026,14,#20024,0,"b")
88+
#20027=@"loc,{#10000},1,11,1,11"
89+
locations_default(#20027,#10000,1,11,1,11)
90+
hasLocation(#20026,#20027)
91+
regexp_const_value(#20026,"b")
92+
#20028=*
93+
regexpterm(#20028,14,#20024,1,"c")
94+
#20029=@"loc,{#10000},1,12,1,12"
95+
locations_default(#20029,#10000,1,12,1,12)
96+
hasLocation(#20028,#20029)
97+
regexp_const_value(#20028,"c")
98+
#20030=*
99+
regexpterm(#20030,14,#20024,2,"d")
100+
#20031=@"loc,{#10000},1,13,1,13"
101+
locations_default(#20031,#10000,1,13,1,13)
102+
hasLocation(#20030,#20031)
103+
regexp_const_value(#20030,"d")
104+
#20032=*
105+
regexpterm(#20032,14,#20010,3,"]")
106+
#20033=@"loc,{#10000},1,15,1,15"
107+
locations_default(#20033,#10000,1,15,1,15)
108+
hasLocation(#20032,#20033)
109+
regexp_const_value(#20032,"]")
110+
#20034=*
111+
regexp_parse_errors(#20034,#20010,"unexpected character")
112+
hasLocation(#20034,#20033)
113+
#20035=*
114+
entry_cfg_node(#20035,#20001)
115+
#20036=@"loc,{#10000},1,1,1,0"
116+
locations_default(#20036,#10000,1,1,1,0)
117+
hasLocation(#20035,#20036)
118+
#20037=*
119+
exit_cfg_node(#20037,#20001)
120+
hasLocation(#20037,#20006)
121+
successor(#20008,#20009)
122+
successor(#20009,#20037)
123+
successor(#20035,#20008)
124+
numlines(#10000,1,1,0)
125+
filetype(#10000,"javascript")

0 commit comments

Comments
 (0)