* When one or more tokens are pushed to a stream, those tokens * must be inserted, in given order, after the last token in the * stream. * * @param token The tokens(s) to push to the stream.
(token: number | number[])
| 115 | * @param token The tokens(s) to push to the stream. |
| 116 | */ |
| 117 | push(token: number | number[]): void { |
| 118 | if (Array.isArray(token)) { |
| 119 | while (token.length) this.tokens.unshift(token.shift()!); |
| 120 | } else { |
| 121 | this.tokens.unshift(token); |
| 122 | } |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | function decoderError(fatal: boolean, opt_code_point?: number) { |
no outgoing calls