Lines Matching refs:this
44 $this->lexerActions = $lexerActions;
56 * If this is `null`,
102 * position-dependent lexer actions, the method returns `this`.
114 for ($i = 0, $count = \count($this->lexerActions); $i < $count; $i++) {
115 if ($this->lexerActions[$i]->isPositionDependent()
116 && !$this->lexerActions[$i] instanceof LexerIndexedCustomAction) {
118 $updatedLexerActions = \array_merge($this->lexerActions, []);
121 $updatedLexerActions[$i] = new LexerIndexedCustomAction($offset, $this->lexerActions[$i]);
126 return $this;
133 * Gets the lexer actions to be executed by this executor.
135 * @return array<LexerAction> The lexer actions to be executed by this executor.
139 return $this->lexerActions;
143 * Execute the actions encapsulated by this executor within the context of a
154 * the current token. When this method is called,
170 foreach ($this->lexerActions as $lexerAction) {
192 if ($this->cachedHashCode === null) {
193 $this->cachedHashCode = Hasher::hash($this->lexerActions);
196 return $this->cachedHashCode;
201 if ($this === $other) {
206 && $this->hashCode() === $other->hashCode()
207 && Equality::equals($this->lexerActions, $other->lexerActions);
212 return \sprintf('LexerActionExecutor[%s]', \implode(', ', $this->lexerActions));