IsSerialType returns whether or not the input type is a SERIAL type. This function should only be used during parsing.
(typ *T)
| 2537 | // IsSerialType returns whether or not the input type is a SERIAL type. |
| 2538 | // This function should only be used during parsing. |
| 2539 | func IsSerialType(typ *T) bool { |
| 2540 | // This is a special case where == is used to compare types, since the SERIAL |
| 2541 | // types are pseudo-types. |
| 2542 | return typ == &Serial2Type || typ == &Serial4Type || typ == &Serial8Type |
| 2543 | } |
| 2544 | |
| 2545 | // unreservedTypeTokens contain type alias that we resolve during parsing. |
| 2546 | // Instead of adding a new token to the parser, add the type here. |
no outgoing calls
no test coverage detected