1
0
Fork 0

Minor changes

pull/681/head
Gabriel Noé González 2018-11-10 13:52:16 +01:00
parent d1bdcbd173
commit 88bb2eaf17
1 changed files with 2 additions and 2 deletions

View File

@ -236,7 +236,7 @@ class CompletionProvider
$fqns = FqnUtilities\getFqnsFromType( $fqns = FqnUtilities\getFqnsFromType(
$this->definitionResolver->resolveExpressionNodeToType($node->dereferencableExpression) $this->definitionResolver->resolveExpressionNodeToType($node->dereferencableExpression)
); );
$start = microtime(true);
$isInMethodDeclaration = null !== $node->getFirstAncestor(\Microsoft\PhpParser\Node\MethodDeclaration::class); $isInMethodDeclaration = null !== $node->getFirstAncestor(\Microsoft\PhpParser\Node\MethodDeclaration::class);
// Add the object access operator to only get members of all parents // Add the object access operator to only get members of all parents
$prefixes = []; $prefixes = [];
@ -254,7 +254,7 @@ class CompletionProvider
} }
} }
} }
echo microtime(true) - $start;
} elseif ( } elseif (
($scoped = $node->parent) instanceof Node\Expression\ScopedPropertyAccessExpression || ($scoped = $node->parent) instanceof Node\Expression\ScopedPropertyAccessExpression ||
($scoped = $node) instanceof Node\Expression\ScopedPropertyAccessExpression ($scoped = $node) instanceof Node\Expression\ScopedPropertyAccessExpression