(mode: _VisitorMode)
| 274 | } |
| 275 | |
| 276 | private _init(mode: _VisitorMode): void { |
| 277 | this._mode = mode; |
| 278 | this._inI18nBlock = false; |
| 279 | this._inI18nNode = false; |
| 280 | this._depth = 0; |
| 281 | this._inIcu = false; |
| 282 | this._msgCountAtSectionStart = undefined; |
| 283 | this._errors = []; |
| 284 | this._messages = []; |
| 285 | this._inImplicitNode = false; |
| 286 | this._createI18nMessage = createI18nMessageFactory( |
| 287 | // When dropping significant whitespace we need to retain whitespace tokens or |
| 288 | // else we won't be able to reuse source spans because empty tokens would be |
| 289 | // removed and cause a mismatch. |
| 290 | /* retainEmptyTokens */ !this._preserveSignificantWhitespace, |
| 291 | /* preserveExpressionWhitespace */ this._preserveSignificantWhitespace, |
| 292 | ); |
| 293 | } |
| 294 | |
| 295 | private _visitElementLike<T extends html.Element | html.Component>( |
| 296 | node: T, |
no test coverage detected