| 402 | } |
| 403 | |
| 404 | int TokenFunc::asIdentifier(const Token& token) { |
| 405 | if (token.type != Token_IDENTIFIER) { |
| 406 | throw IfcInvalidTokenException(token.startPos, toString(token), "instance name"); |
| 407 | } |
| 408 | return token.value_int; |
| 409 | } |
| 410 | |
| 411 | bool TokenFunc::asBool(const Token& token) { |
| 412 | if (token.type != Token_BOOL) { |
nothing calls this directly
no test coverage detected