public function processFile(Index $index, $file, $rewrite = false, $createCache = true) { $this->getLogger()->info("processing {$file}"); if ($index->isParsed($file) && !$rewrite) { return; } $this->processFileScope($index, $this->createScopeForFile($file, $createCache)); $index->addParsedFile($file); }