(source: string, url: string, options: TokenizeOptions = {})
| 56 | } |
| 57 | |
| 58 | parse(source: string, url: string, options: TokenizeOptions = {}): ParseTreeResult { |
| 59 | const parseResult = this._htmlParser.parse(source, url, {...options}); |
| 60 | |
| 61 | if (parseResult.errors.length) { |
| 62 | return new ParseTreeResult(parseResult.rootNodes, parseResult.errors); |
| 63 | } |
| 64 | |
| 65 | return mergeTranslations(parseResult.rootNodes, this._translationBundle, [], {}); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | function createSerializer(format?: string): Serializer { |
nothing calls this directly
no test coverage detected