Home
last modified time | relevance | path

Searched refs:patches (Results 1 – 4 of 4) sorted by relevance

/PHP-Parser/lib/PhpParser/Lexer/
H A DEmulative.php24 private array $patches = []; variable in PhpParser\\Lexer\\Emulative
78 $this->patches = [];
80 $code = $emulator->preprocessCode($code, $this->patches);
116 usort($this->patches, function ($p1, $p2) {
126 if (\count($this->patches) === 0) {
132 list($patchPos, $patchType, $patchText) = $this->patches[$patchIdx];
178 if ($patchIdx >= \count($this->patches)) {
184 list($patchPos, $patchType, $patchText) = $this->patches[$patchIdx];
203 foreach ($this->patches as $patch) {
/PHP-Parser/lib/PhpParser/Lexer/TokenEmulator/
H A DAttributeEmulator.php39 public function preprocessCode(string $code, array &$patches): string { argument
44 $patches[] = [$pos, 'replace', '#'];
H A DTokenEmulator.php27 public function preprocessCode(string $code, array &$patches): string { argument
H A DReverseEmulator.php34 public function preprocessCode(string $code, array &$patches): string { argument

Completed in 11 milliseconds