Token type for testing - recreates the old token structure for assertions.
| 6 | |
| 7 | /** Token type for testing - recreates the old token structure for assertions. */ |
| 8 | interface XmlToken { |
| 9 | type: string; |
| 10 | name?: string; |
| 11 | value?: string; |
| 12 | content?: string; |
| 13 | target?: string; |
| 14 | version?: string; |
| 15 | encoding?: string; |
| 16 | standalone?: "yes" | "no"; |
| 17 | publicId?: string; |
| 18 | systemId?: string; |
| 19 | selfClosing?: boolean; |
| 20 | position?: { line: number; column: number; offset: number }; |
| 21 | } |
| 22 | |
| 23 | /** Creates callbacks that collect tokens into an array. */ |
| 24 | function createCollector(): { |
nothing calls this directly
no outgoing calls
no test coverage detected