@@ -79,7 +79,7 @@ export class RegExpVisitor {
79
79
}
80
80
}
81
81
82
- private visitAlternative ( node : Alternative ) : void {
82
+ protected visitAlternative ( node : Alternative ) : void {
83
83
if ( this . _handlers . onAlternativeEnter ) {
84
84
this . _handlers . onAlternativeEnter ( node )
85
85
}
@@ -88,7 +88,7 @@ export class RegExpVisitor {
88
88
this . _handlers . onAlternativeLeave ( node )
89
89
}
90
90
}
91
- private visitAssertion ( node : Assertion ) : void {
91
+ protected visitAssertion ( node : Assertion ) : void {
92
92
if ( this . _handlers . onAssertionEnter ) {
93
93
this . _handlers . onAssertionEnter ( node )
94
94
}
@@ -99,15 +99,15 @@ export class RegExpVisitor {
99
99
this . _handlers . onAssertionLeave ( node )
100
100
}
101
101
}
102
- private visitBackreference ( node : Backreference ) : void {
102
+ protected visitBackreference ( node : Backreference ) : void {
103
103
if ( this . _handlers . onBackreferenceEnter ) {
104
104
this . _handlers . onBackreferenceEnter ( node )
105
105
}
106
106
if ( this . _handlers . onBackreferenceLeave ) {
107
107
this . _handlers . onBackreferenceLeave ( node )
108
108
}
109
109
}
110
- private visitCapturingGroup ( node : CapturingGroup ) : void {
110
+ protected visitCapturingGroup ( node : CapturingGroup ) : void {
111
111
if ( this . _handlers . onCapturingGroupEnter ) {
112
112
this . _handlers . onCapturingGroupEnter ( node )
113
113
}
@@ -116,15 +116,15 @@ export class RegExpVisitor {
116
116
this . _handlers . onCapturingGroupLeave ( node )
117
117
}
118
118
}
119
- private visitCharacter ( node : Character ) : void {
119
+ protected visitCharacter ( node : Character ) : void {
120
120
if ( this . _handlers . onCharacterEnter ) {
121
121
this . _handlers . onCharacterEnter ( node )
122
122
}
123
123
if ( this . _handlers . onCharacterLeave ) {
124
124
this . _handlers . onCharacterLeave ( node )
125
125
}
126
126
}
127
- private visitCharacterClass ( node : CharacterClass ) : void {
127
+ protected visitCharacterClass ( node : CharacterClass ) : void {
128
128
if ( this . _handlers . onCharacterClassEnter ) {
129
129
this . _handlers . onCharacterClassEnter ( node )
130
130
}
@@ -133,7 +133,7 @@ export class RegExpVisitor {
133
133
this . _handlers . onCharacterClassLeave ( node )
134
134
}
135
135
}
136
- private visitCharacterClassRange ( node : CharacterClassRange ) : void {
136
+ protected visitCharacterClassRange ( node : CharacterClassRange ) : void {
137
137
if ( this . _handlers . onCharacterClassRangeEnter ) {
138
138
this . _handlers . onCharacterClassRangeEnter ( node )
139
139
}
@@ -143,23 +143,23 @@ export class RegExpVisitor {
143
143
this . _handlers . onCharacterClassRangeLeave ( node )
144
144
}
145
145
}
146
- private visitCharacterSet ( node : CharacterSet ) : void {
146
+ protected visitCharacterSet ( node : CharacterSet ) : void {
147
147
if ( this . _handlers . onCharacterSetEnter ) {
148
148
this . _handlers . onCharacterSetEnter ( node )
149
149
}
150
150
if ( this . _handlers . onCharacterSetLeave ) {
151
151
this . _handlers . onCharacterSetLeave ( node )
152
152
}
153
153
}
154
- private visitFlags ( node : Flags ) : void {
154
+ protected visitFlags ( node : Flags ) : void {
155
155
if ( this . _handlers . onFlagsEnter ) {
156
156
this . _handlers . onFlagsEnter ( node )
157
157
}
158
158
if ( this . _handlers . onFlagsLeave ) {
159
159
this . _handlers . onFlagsLeave ( node )
160
160
}
161
161
}
162
- private visitGroup ( node : Group ) : void {
162
+ protected visitGroup ( node : Group ) : void {
163
163
if ( this . _handlers . onGroupEnter ) {
164
164
this . _handlers . onGroupEnter ( node )
165
165
}
@@ -168,7 +168,7 @@ export class RegExpVisitor {
168
168
this . _handlers . onGroupLeave ( node )
169
169
}
170
170
}
171
- private visitPattern ( node : Pattern ) : void {
171
+ protected visitPattern ( node : Pattern ) : void {
172
172
if ( this . _handlers . onPatternEnter ) {
173
173
this . _handlers . onPatternEnter ( node )
174
174
}
@@ -177,7 +177,7 @@ export class RegExpVisitor {
177
177
this . _handlers . onPatternLeave ( node )
178
178
}
179
179
}
180
- private visitQuantifier ( node : Quantifier ) : void {
180
+ protected visitQuantifier ( node : Quantifier ) : void {
181
181
if ( this . _handlers . onQuantifierEnter ) {
182
182
this . _handlers . onQuantifierEnter ( node )
183
183
}
@@ -186,7 +186,7 @@ export class RegExpVisitor {
186
186
this . _handlers . onQuantifierLeave ( node )
187
187
}
188
188
}
189
- private visitRegExpLiteral ( node : RegExpLiteral ) : void {
189
+ protected visitRegExpLiteral ( node : RegExpLiteral ) : void {
190
190
if ( this . _handlers . onRegExpLiteralEnter ) {
191
191
this . _handlers . onRegExpLiteralEnter ( node )
192
192
}
0 commit comments