PHPStan\Parser\Parser::parseFile PHP 메소드

parseFile() 공개 메소드

public parseFile ( string $file ) : array
$file string path to a file to parse
리턴 array
    public function parseFile(string $file) : array;

Usage Example

예제 #1
0
 /**
  * @param string $file path to a file to parse
  * @return \PhpParser\Node[]
  */
 public function parseFile(string $file) : array
 {
     if (!isset($this->cachedNodesByFile[$file])) {
         $this->cachedNodesByFile[$file] = $this->originalParser->parseFile($file);
     }
     return $this->cachedNodesByFile[$file];
 }
All Usage Examples Of PHPStan\Parser\Parser::parseFile