1
0
Fork 0

think first, truncate later

pull/341/head
jens1o 2017-04-02 20:40:46 +02:00
parent d349a07d55
commit 8ac5d72fdc
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,9 @@ class SymbolInformation
$symbol = new self; $symbol = new self;
if ($node instanceof Node\Stmt\Class_|| $node instanceof Node\Stmt\Trait_) { if ($node instanceof Node\Stmt\Class_|| $node instanceof Node\Stmt\Trait_) {
$symbol->kind = SymbolKind::CLASS_; $symbol->kind = SymbolKind::CLASS_;
} else if ($node instanceof Node\Stmt\Interface_ || ($node instanceof Node\Name && $parent instanceof Node\Stmt\Namespace_)) { } else if ($node instanceof Node\Stmt\Interface_) {
$symbol->kind = SymbolKind::INTERFACE;
} else if ($node instanceof Node\Name && $parent instanceof Node\Stmt\Namespace_) {
$symbol->kind = SymbolKind::NAMESPACE; $symbol->kind = SymbolKind::NAMESPACE;
} else if ($node instanceof Node\Stmt\Function_) { } else if ($node instanceof Node\Stmt\Function_) {
$symbol->kind = SymbolKind::FUNCTION; $symbol->kind = SymbolKind::FUNCTION;