From 22481480e36e1866755d1fb2e19045eea2e71a53 Mon Sep 17 00:00:00 2001 From: Rob Lourens Date: Wed, 24 May 2017 21:37:00 -0700 Subject: [PATCH] Remove nullDocs logging - Tolerant parser doesn't produce null SourceFileNodes --- src/Indexer.php | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/src/Indexer.php b/src/Indexer.php index 28b7d1e..9f8749d 100644 --- a/src/Indexer.php +++ b/src/Indexer.php @@ -193,19 +193,11 @@ class Indexer $mem = (int)(memory_get_usage(true) / (1024 * 1024)); $this->client->window->logMessage( MessageType::INFO, - "All $count PHP files parsed in $duration seconds. $mem MiB allocated. " . \count($this->nullDocs) . " null docs" + "All $count PHP files parsed in $duration seconds. $mem MiB allocated." ); - foreach ($this->nullDocs as $nullDoc) { - $this->client->window->logMessage( - MessageType::INFO, - $nullDoc - ); - } }); } - private $nullDocs = []; - /** * @param array $files * @return Promise @@ -224,9 +216,6 @@ class Indexer $this->client->window->logMessage(MessageType::LOG, "Parsing $uri"); try { $document = yield $this->documentLoader->load($uri); - if ($document->getStmts() === null) { - $this->nullDocs[] = $document->getUri(); - } if (!isVendored($document, $this->composerJson)) { $this->client->textDocument->publishDiagnostics($uri, $document->getDiagnostics()); }