| 395 | } |
| 396 | |
| 397 | int TokenFunc::asInt(const Token& token) { |
| 398 | if (token.type != Token_INT) { |
| 399 | throw IfcInvalidTokenException(token.startPos, toString(token), "integer"); |
| 400 | } |
| 401 | return token.value_int; |
| 402 | } |
| 403 | |
| 404 | int TokenFunc::asIdentifier(const Token& token) { |
| 405 | if (token.type != Token_IDENTIFIER) { |
nothing calls this directly
no test coverage detected