IsSpace returns whether the token represents one of the space types.
()
| 45 | |
| 46 | // IsSpace returns whether the token represents one of the space types. |
| 47 | func (t Token) IsSpace() bool { |
| 48 | return t.Type == TokenType_ShortSpace || t.Type == TokenType_MediumSpace || t.Type == TokenType_LongSpace |
| 49 | } |
| 50 | |
| 51 | // IsStandardSpace returns whether the token represents a short or medium space, which will not end a statement. |
| 52 | func (t Token) IsStandardSpace() bool { |
no outgoing calls
no test coverage detected