1
0
Fork 0

Use SymbolKind::FIELD for class fields (#78)

pull/80/head^2
Felix Becker 2016-10-14 09:02:42 +02:00 committed by GitHub
parent c479969758
commit 2980941fd1
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\Namespace_::class => SymbolKind::NAMESPACE,
Node\Stmt\Function_::class => SymbolKind::FUNCTION, Node\Stmt\Function_::class => SymbolKind::FUNCTION,
Node\Stmt\ClassMethod::class => SymbolKind::METHOD, Node\Stmt\ClassMethod::class => SymbolKind::METHOD,
Node\Stmt\PropertyProperty::class => SymbolKind::PROPERTY, Node\Stmt\PropertyProperty::class => SymbolKind::FIELD,
Node\Const_::class => SymbolKind::CONSTANT Node\Const_::class => SymbolKind::CONSTANT
]; ];
$class = get_class($node); $class = get_class($node);

View File

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

View File

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