1
0
Fork 0

Use SymbolKind::FIELD for class fields

pull/78/head
Felix Becker 2016-10-13 23:03:53 +02:00
parent c479969758
commit d28e9ef119
3 changed files with 5 additions and 5 deletions

View File

@ -55,7 +55,7 @@ class SymbolInformation
Node\Stmt\Namespace_::class => SymbolKind::NAMESPACE,
Node\Stmt\Function_::class => SymbolKind::FUNCTION,
Node\Stmt\ClassMethod::class => SymbolKind::METHOD,
Node\Stmt\PropertyProperty::class => SymbolKind::PROPERTY,
Node\Stmt\PropertyProperty::class => SymbolKind::FIELD,
Node\Const_::class => SymbolKind::CONSTANT
];
$class = get_class($node);

View File

@ -84,7 +84,7 @@ class DocumentSymbolTest extends TestCase
],
[
'name' => 'staticTestProperty',
'kind' => SymbolKind::PROPERTY,
'kind' => SymbolKind::FIELD,
'location' => [
'uri' => 'symbols',
'range' => [
@ -102,7 +102,7 @@ class DocumentSymbolTest extends TestCase
],
[
'name' => 'testProperty',
'kind' => SymbolKind::PROPERTY,
'kind' => SymbolKind::FIELD,
'location' => [
'uri' => 'symbols',
'range' => [

View File

@ -99,7 +99,7 @@ class SymbolTest extends TestCase
],
[
'name' => 'staticTestProperty',
'kind' => SymbolKind::PROPERTY,
'kind' => SymbolKind::FIELD,
'location' => [
'uri' => $this->symbolsUri,
'range' => [
@ -117,7 +117,7 @@ class SymbolTest extends TestCase
],
[
'name' => 'testProperty',
'kind' => SymbolKind::PROPERTY,
'kind' => SymbolKind::FIELD,
'location' => [
'uri' => $this->symbolsUri,
'range' => [