You are here

private function PHP_Token_Stream::addFunctionToMap in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/phpunit/php-token-stream/src/Token/Stream.php \PHP_Token_Stream::addFunctionToMap()

Parameters

string $name:

integer $startLine:

integer $endLine:

1 call to PHP_Token_Stream::addFunctionToMap()
PHP_Token_Stream::parse in vendor/phpunit/php-token-stream/src/Token/Stream.php

File

vendor/phpunit/php-token-stream/src/Token/Stream.php, line 600

Class

PHP_Token_Stream
A stream of PHP tokens.

Code

private function addFunctionToMap($name, $startLine, $endLine) {
  for ($line = $startLine; $line <= $endLine; $line++) {
    $this->lineToFunctionMap[$line] = $name;
  }
}