* Get a number from a content token.
(token: ContentToken | undefined)
| 323 | * Get a number from a content token. |
| 324 | */ |
| 325 | private getNumber(token: ContentToken | undefined): number { |
| 326 | if (token?.type === "number") { |
| 327 | return token.value; |
| 328 | } |
| 329 | |
| 330 | return 0; |
| 331 | } |
| 332 | |
| 333 | /** |
| 334 | * Get a name from a content token (strips leading /). |
no outgoing calls
no test coverage detected