Home
last modified time | relevance | path

Searched refs:tabWidth (Results 1 – 2 of 2) sorted by relevance

/PHP-Parser/lib/PhpParser/Internal/
H A DTokenStream.php23 public function __construct(array $tokens, int $tabWidth) { argument
25 $this->indentMap = $this->calcIndentMap($tabWidth);
251 private function calcIndentMap(int $tabWidth): array { argument
261 $indent = $this->getIndent(\substr($content, $newlinePos + 1), $tabWidth);
265 $indent = $this->getIndent($content, $tabWidth);
276 private function getIndent(string $ws, int $tabWidth): int { argument
280 return $spaces + $tabs * $tabWidth;
/PHP-Parser/lib/PhpParser/
H A DPrettyPrinterAbstract.php116 private int $tabWidth = 4; variable in PhpParser\\PrettyPrinterAbstract
208 $this->indentWidth = $this->tabWidth;
234 $tabs = \intdiv($level, $this->tabWidth);
235 $spaces = $level % $this->tabWidth;
567 $this->origTokens = new TokenStream($origTokens, $this->tabWidth);

Completed in 12 milliseconds