Debian Codegraph @

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