Debian Codegraph @

tests/fixtures/ecma-version/13/regexp-match-indices/regexp-match-indices.result.js

raw
1 import conditionalRegex from "../../../../lib/conditional-regex-value.js";
2
3 export default {
4 "type": "Program",
5 "loc": {
6 "start": {
7 "line": 1,
8 "column": 0
9 },
10 "end": {
11 "line": 1,
12 "column": 25
13 }
14 },
15 "range": [
16 0,
17 25
18 ],
19 "body": [
20 {
21 "type": "VariableDeclaration",
22 "loc": {
23 "start": {
24 "line": 1,
25 "column": 0
26 },
27 "end": {
28 "line": 1,
29 "column": 25
30 }
31 },
32 "range": [
33 0,
34 25
35 ],
36 "declarations": [
37 {
38 "type": "VariableDeclarator",
39 "loc": {
40 "start": {
41 "line": 1,
42 "column": 6
43 },
44 "end": {
45 "line": 1,
46 "column": 24
47 }
48 },
49 "range": [
50 6,
51 24
52 ],
53 "id": {
54 "type": "Identifier",
55 "loc": {
56 "start": {
57 "line": 1,
58 "column": 6
59 },
60 "end": {
61 "line": 1,
62 "column": 9
63 }
64 },
65 "range": [
66 6,
67 9
68 ],
69 "name": "re1"
70 },
71 "init": conditionalRegex({
72 "type": "Literal",
73 "loc": {
74 "start": {
75 "line": 1,
76 "column": 12
77 },
78 "end": {
79 "line": 1,
80 "column": 24
81 }
82 },
83 "range": [
84 12,
85 24
86 ],
87
88 // /d flag no supported in Node.js 12 or 14 yet
89 "value": null,
90 "raw": "/a+(<Z>z)?/d",
91 "regex": {
92 "pattern": "a+(<Z>z)?",
93 "flags": "d"
94 }
95 })
96 }
97 ],
98 "kind": "const"
99 }
100 ],
101 "sourceType": "script",
102 "tokens": [
103 {
104 "type": "Keyword",
105 "value": "const",
106 "loc": {
107 "start": {
108 "line": 1,
109 "column": 0
110 },
111 "end": {
112 "line": 1,
113 "column": 5
114 }
115 },
116 "range": [
117 0,
118 5
119 ]
120 },
121 {
122 "type": "Identifier",
123 "value": "re1",
124 "loc": {
125 "start": {
126 "line": 1,
127 "column": 6
128 },
129 "end": {
130 "line": 1,
131 "column": 9
132 }
133 },
134 "range": [
135 6,
136 9
137 ]
138 },
139 {
140 "type": "Punctuator",
141 "value": "=",
142 "loc": {
143 "start": {
144 "line": 1,
145 "column": 10
146 },
147 "end": {
148 "line": 1,
149 "column": 11
150 }
151 },
152 "range": [
153 10,
154 11
155 ]
156 },
157 {
158 "type": "RegularExpression",
159 "value": "/a+(<Z>z)?/d",
160 "loc": {
161 "start": {
162 "line": 1,
163 "column": 12
164 },
165 "end": {
166 "line": 1,
167 "column": 24
168 }
169 },
170 "range": [
171 12,
172 24
173 ],
174 "regex": {
175 "flags": "d",
176 "pattern": "a+(<Z>z)?"
177 }
178 },
179 {
180 "type": "Punctuator",
181 "value": ";",
182 "loc": {
183 "start": {
184 "line": 1,
185 "column": 24
186 },
187 "end": {
188 "line": 1,
189 "column": 25
190 }
191 },
192 "range": [
193 24,
194 25
195 ]
196 }
197 ]
198 };