Searched refs:tokenIndex (Results 1 – 4 of 4) sorted by relevance
376 public function getHiddenTokensToRight(int $tokenIndex, int $channel) : ?array argument380 if ($tokenIndex < 0 || $tokenIndex >= \count($this->tokens)) {381 … throw new \RuntimeException(\sprintf('%d not in 0..%d', $tokenIndex, \count($this->tokens) - 1));384 $nextOnChannel = $this->nextTokenOnChannel($tokenIndex + 1, Lexer::DEFAULT_TOKEN_CHANNEL);385 $from_ = $tokenIndex + 1;399 public function getHiddenTokensToLeft(int $tokenIndex, int $channel) : ?array argument403 if ($tokenIndex < 0 || $tokenIndex >= \count($this->tokens)) {404 … throw new \RuntimeException(\sprintf('%d not in 0..%d', $tokenIndex, \count($this->tokens) - 1));407 … $prevOnChannel = $this->previousTokenOnChannel($tokenIndex - 1, Lexer::DEFAULT_TOKEN_CHANNEL);409 if ($prevOnChannel === $tokenIndex - 1) {[all …]
256 public function setTokenIndex(int $tokenIndex) : void argument258 $this->index = $tokenIndex;
58 $tokenIndex = $this->symbol->getTokenIndex();60 return new Interval($tokenIndex, $tokenIndex);
943 this.tokenIndex = 0;1020 me.tokenIndex++;1025 me.tokenIndex++;1030 if( this.tokenIndex < this.tokens.length ) {1031 return this.tokens[ this.tokenIndex++ ];1164 return this.tokens[ this.tokenIndex-- - 2 ];