1export class SharedIds {
2 constructor(t) {
3 this.t = t;
4 this.execId = t.identifier('_exec');
5 this.substrId = t.identifier('_substr');
6 this.patternId = t.identifier('_pattern');
7 this.tagId = t.identifier('tag');
8 }
9
10 get node() {
11 return this.t.identifier('node');
12 }
13
14 get match() {
15 return this.t.identifier('match');
16 }
17
18 get state() {
19 return this.t.identifier('state');
20 }
21
22 get exec() {
23 return this.t.identifier(this.execId.name);
24 }
25
26 get substr() {
27 return this.t.identifier(this.substrId.name);
28 }
29
30 get pattern() {
31 return this.t.identifier(this.patternId.name);
32 }
33
34 get tag() {
35 return this.t.identifier(this.tagId.name);
36 }
37}