Debian Codegraph @

tests/fixtures/ecma-version/9/regexp-named-group/valid-backreference-1.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": 26
13 }
14 },
15 "range": [
16 0,
17 26
18 ],
19 "body": [
20 {
21 "type": "ExpressionStatement",
22 "loc": {
23 "start": {
24 "line": 1,
25 "column": 0
26 },
27 "end": {
28 "line": 1,
29 "column": 26
30 }
31 },
32 "range": [
33 0,
34 26
35 ],
36 "expression": conditionalRegex({
37 "type": "Literal",
38 "loc": {
39 "start": {
40 "line": 1,
41 "column": 0
42 },
43 "end": {
44 "line": 1,
45 "column": 26
46 }
47 },
48 "range": [
49 0,
50 26
51 ],
52 "value": null,
53 "raw": "/(?<\\u0041\\u0042>a)\\k<AB>/",
54 "regex": {
55 "pattern": "(?<\\u0041\\u0042>a)\\k<AB>",
56 "flags": ""
57 }
58 })
59 }
60 ],
61 "sourceType": "script",
62 "tokens": [
63 {
64 "type": "RegularExpression",
65 "value": "/(?<\\u0041\\u0042>a)\\k<AB>/",
66 "loc": {
67 "start": {
68 "line": 1,
69 "column": 0
70 },
71 "end": {
72 "line": 1,
73 "column": 26
74 }
75 },
76 "range": [
77 0,
78 26
79 ],
80 "regex": {
81 "flags": "",
82 "pattern": "(?<\\u0041\\u0042>a)\\k<AB>"
83 }
84 }
85 ]
86 };