* Check if a parsed token is a command operator (|, ||, &&, ;)
(token: ParseEntry)
| 24 | * Check if a parsed token is a command operator (|, ||, &&, ;) |
| 25 | */ |
| 26 | function isCommandOperator(token: ParseEntry): boolean { |
| 27 | return ( |
| 28 | typeof token === 'object' && |
| 29 | token !== null && |
| 30 | 'op' in token && |
| 31 | (COMMAND_OPERATORS as readonly string[]).includes(token.op as string) |
| 32 | ) |
| 33 | } |
| 34 | |
| 35 | /** |
| 36 | * Determine completion type based solely on prefix characteristics |
no outgoing calls
no test coverage detected