File tree 2 files changed +8
-7
lines changed
2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -2960,9 +2960,9 @@ namespace ts {
2960
2960
case SyntaxKind . TypeAliasDeclaration : return ScriptElementKind . typeElement ;
2961
2961
case SyntaxKind . EnumDeclaration : return ScriptElementKind . enumElement ;
2962
2962
case SyntaxKind . VariableDeclaration :
2963
- return variableDeclarationKind ( < VariableDeclaration > node ) ;
2963
+ return getKindOfVariableDeclaration ( < VariableDeclaration > node ) ;
2964
2964
case SyntaxKind . BindingElement :
2965
- return variableDeclarationKind ( < VariableDeclaration > getRootDeclaration ( node ) ) ;
2965
+ return getKindOfVariableDeclaration ( < VariableDeclaration > getRootDeclaration ( node ) ) ;
2966
2966
case SyntaxKind . ArrowFunction :
2967
2967
case SyntaxKind . FunctionDeclaration :
2968
2968
case SyntaxKind . FunctionExpression :
@@ -2990,10 +2990,11 @@ namespace ts {
2990
2990
return ScriptElementKind . alias ;
2991
2991
case SyntaxKind . JSDocTypedefTag :
2992
2992
return ScriptElementKind . typeElement ;
2993
+ default :
2994
+ return ScriptElementKind . unknown ;
2993
2995
}
2994
- return ScriptElementKind . unknown ;
2995
2996
2996
- function variableDeclarationKind ( v : VariableDeclaration ) : string {
2997
+ function getKindOfVariableDeclaration ( v : VariableDeclaration ) : string {
2997
2998
return isConst ( v )
2998
2999
? ScriptElementKind . constElement
2999
3000
: isLet ( v )
Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ verify.navigationBar([
22
22
"childItems" : [
23
23
{
24
24
"text" : "a" ,
25
- "kind" : "property "
25
+ "kind" : "const "
26
26
} ,
27
27
{
28
28
"text" : "b" ,
29
- "kind" : "property "
29
+ "kind" : "const "
30
30
} ,
31
31
{
32
32
"text" : "c" ,
33
- "kind" : "property "
33
+ "kind" : "const "
34
34
}
35
35
] ,
36
36
"indent" : 1
You can’t perform that action at this time.
0 commit comments