()
| 58207 | class PDFAbstractReference { |
| 58208 | toString() { |
| 58209 | throw new Error('Must be implemented by subclasses'); |
| 58210 | } |
| 58211 | |
| 58212 | } |
| 58213 | |
| 58214 | /* |
| 58215 | PDFNameTree - represents a name tree object |
| 58216 | */ |
| 58217 | |
| 58218 | class PDFNameTree { |
| 58219 | constructor() { |
| 58220 | this._items = {}; |
| 58221 | } |
| 58222 | |
| 58223 | add(key, val) { |
| 58224 | return this._items[key] = val; |
| 58225 | } |
| 58226 | |
| 58227 | get(key) { |
| 58228 | return this._items[key]; |
| 58229 | } |
| 58230 | |
| 58231 | toString() { |
| 58232 | // Needs to be sorted by key |
no test coverage detected