Searched refs:patches (Results 1 – 4 of 4) sorted by relevance
/PHP-Parser/lib/PhpParser/Lexer/ |
H A D | Emulative.php | 24 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 D | AttributeEmulator.php | 39 public function preprocessCode(string $code, array &$patches): string { argument 44 $patches[] = [$pos, 'replace', '#'];
|
H A D | TokenEmulator.php | 27 public function preprocessCode(string $code, array &$patches): string { argument
|
H A D | ReverseEmulator.php | 34 public function preprocessCode(string $code, array &$patches): string { argument
|
Completed in 6 milliseconds