function CompletionInput::isCursorFree
Whether the cursor is "free" (i.e. at the end of the input preceded by a space).
1 call to CompletionInput::isCursorFree()
- CompletionInput::bind in vendor/
symfony/ console/ Completion/ CompletionInput.php - Binds the current Input instance with the given arguments and options.
File
-
vendor/
symfony/ console/ Completion/ CompletionInput.php, line 219
Class
- CompletionInput
- An input specialized for shell completion.
Namespace
Symfony\Component\Console\CompletionCode
private function isCursorFree() : bool {
$nrOfTokens = \count($this->tokens);
if ($this->currentIndex > $nrOfTokens) {
throw new \LogicException('Current index is invalid, it must be the number of input tokens or one more.');
}
return $this->currentIndex >= $nrOfTokens;
}