File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -2960,9 +2960,9 @@ namespace ts {
29602960 case SyntaxKind . TypeAliasDeclaration : return ScriptElementKind . typeElement ;
29612961 case SyntaxKind . EnumDeclaration : return ScriptElementKind . enumElement ;
29622962 case SyntaxKind . VariableDeclaration :
2963- return variableDeclarationKind ( < VariableDeclaration > node ) ;
2963+ return getKindOfVariableDeclaration ( < VariableDeclaration > node ) ;
29642964 case SyntaxKind . BindingElement :
2965- return variableDeclarationKind ( < VariableDeclaration > getRootDeclaration ( node ) ) ;
2965+ return getKindOfVariableDeclaration ( < VariableDeclaration > getRootDeclaration ( node ) ) ;
29662966 case SyntaxKind . ArrowFunction :
29672967 case SyntaxKind . FunctionDeclaration :
29682968 case SyntaxKind . FunctionExpression :
@@ -2990,10 +2990,11 @@ namespace ts {
29902990 return ScriptElementKind . alias ;
29912991 case SyntaxKind . JSDocTypedefTag :
29922992 return ScriptElementKind . typeElement ;
2993+ default :
2994+ return ScriptElementKind . unknown ;
29932995 }
2994- return ScriptElementKind . unknown ;
29952996
2996- function variableDeclarationKind ( v : VariableDeclaration ) : string {
2997+ function getKindOfVariableDeclaration ( v : VariableDeclaration ) : string {
29972998 return isConst ( v )
29982999 ? ScriptElementKind . constElement
29993000 : isLet ( v )
Original file line number Diff line number Diff line change @@ -22,15 +22,15 @@ verify.navigationBar([
2222 "childItems" : [
2323 {
2424 "text" : "a" ,
25- "kind" : "property "
25+ "kind" : "const "
2626 } ,
2727 {
2828 "text" : "b" ,
29- "kind" : "property "
29+ "kind" : "const "
3030 } ,
3131 {
3232 "text" : "c" ,
33- "kind" : "property "
33+ "kind" : "const "
3434 }
3535 ] ,
3636 "indent" : 1
You can’t perform that action at this time.
0 commit comments