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