PDepend\Engine::performParseProcess PHP Method

performParseProcess() private method

This method performs the parsing process of all source files. It expects that the $_builder property was initialized with a concrete builder implementation.
private performParseProcess ( ) : void
return void
    private function performParseProcess()
    {
        // Reset list of thrown exceptions
        $this->parseExceptions = array();
        $tokenizer = new PHPTokenizerInternal();
        $this->fireStartParseProcess($this->builder);
        foreach ($this->createFileIterator() as $file) {
            $tokenizer->setSourceFile($file);
            $parser = new PHPParserGeneric($tokenizer, $this->builder, $this->cacheFactory->create());
            $parser->setMaxNestingLevel($this->configuration->parser->nesting);
            // Disable annotation parsing?
            if ($this->withoutAnnotations === true) {
                $parser->setIgnoreAnnotations();
            }
            $this->fireStartFileParsing($tokenizer);
            try {
                $parser->parse();
            } catch (\PDepend\Source\Parser\ParserException $e) {
                $this->parseExceptions[] = $e;
            }
            $this->fireEndFileParsing($tokenizer);
        }
        $this->fireEndParseProcess($this->builder);
    }