@@ -178,7 +178,7 @@ namespace ts.SymbolDisplay {
178
178
}
179
179
else if ( symbolFlags & SymbolFlags . Alias ) {
180
180
symbolKind = ScriptElementKind . alias ;
181
- pushTypePart ( symbolKind ) ;
181
+ pushSymbolKind ( symbolKind ) ;
182
182
displayParts . push ( spacePart ( ) ) ;
183
183
if ( useConstructSignatures ) {
184
184
displayParts . push ( keywordPart ( SyntaxKind . NewKeyword ) ) ;
@@ -258,7 +258,7 @@ namespace ts.SymbolDisplay {
258
258
// Special case for class expressions because we would like to indicate that
259
259
// the class name is local to the class body (similar to function expression)
260
260
// (local class) class <className>
261
- pushTypePart ( ScriptElementKind . localClassElement ) ;
261
+ pushSymbolKind ( ScriptElementKind . localClassElement ) ;
262
262
}
263
263
else {
264
264
// Class declaration has name which is not local.
@@ -531,7 +531,7 @@ namespace ts.SymbolDisplay {
531
531
532
532
function addAliasPrefixIfNecessary ( ) {
533
533
if ( alias ) {
534
- pushTypePart ( ScriptElementKind . alias ) ;
534
+ pushSymbolKind ( ScriptElementKind . alias ) ;
535
535
displayParts . push ( spacePart ( ) ) ;
536
536
}
537
537
}
@@ -554,15 +554,15 @@ namespace ts.SymbolDisplay {
554
554
function addPrefixForAnyFunctionOrVar ( symbol : Symbol , symbolKind : string ) {
555
555
prefixNextMeaning ( ) ;
556
556
if ( symbolKind ) {
557
- pushTypePart ( symbolKind ) ;
557
+ pushSymbolKind ( symbolKind ) ;
558
558
if ( symbol && ! some ( symbol . declarations , d => isArrowFunction ( d ) || ( isFunctionExpression ( d ) || isClassExpression ( d ) ) && ! d . name ) ) {
559
559
displayParts . push ( spacePart ( ) ) ;
560
560
addFullSymbolName ( symbol ) ;
561
561
}
562
562
}
563
563
}
564
564
565
- function pushTypePart ( symbolKind : string ) {
565
+ function pushSymbolKind ( symbolKind : string ) {
566
566
switch ( symbolKind ) {
567
567
case ScriptElementKind . variableElement :
568
568
case ScriptElementKind . functionElement :
0 commit comments