Skip to content

Commit 56d83f9

Browse files
author
Andy
authored
Rename pushTypePart to pushSymbolKind (#23481)
1 parent 48f98bd commit 56d83f9

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/services/symbolDisplay.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ namespace ts.SymbolDisplay {
178178
}
179179
else if (symbolFlags & SymbolFlags.Alias) {
180180
symbolKind = ScriptElementKind.alias;
181-
pushTypePart(symbolKind);
181+
pushSymbolKind(symbolKind);
182182
displayParts.push(spacePart());
183183
if (useConstructSignatures) {
184184
displayParts.push(keywordPart(SyntaxKind.NewKeyword));
@@ -258,7 +258,7 @@ namespace ts.SymbolDisplay {
258258
// Special case for class expressions because we would like to indicate that
259259
// the class name is local to the class body (similar to function expression)
260260
// (local class) class <className>
261-
pushTypePart(ScriptElementKind.localClassElement);
261+
pushSymbolKind(ScriptElementKind.localClassElement);
262262
}
263263
else {
264264
// Class declaration has name which is not local.
@@ -531,7 +531,7 @@ namespace ts.SymbolDisplay {
531531

532532
function addAliasPrefixIfNecessary() {
533533
if (alias) {
534-
pushTypePart(ScriptElementKind.alias);
534+
pushSymbolKind(ScriptElementKind.alias);
535535
displayParts.push(spacePart());
536536
}
537537
}
@@ -554,15 +554,15 @@ namespace ts.SymbolDisplay {
554554
function addPrefixForAnyFunctionOrVar(symbol: Symbol, symbolKind: string) {
555555
prefixNextMeaning();
556556
if (symbolKind) {
557-
pushTypePart(symbolKind);
557+
pushSymbolKind(symbolKind);
558558
if (symbol && !some(symbol.declarations, d => isArrowFunction(d) || (isFunctionExpression(d) || isClassExpression(d)) && !d.name)) {
559559
displayParts.push(spacePart());
560560
addFullSymbolName(symbol);
561561
}
562562
}
563563
}
564564

565-
function pushTypePart(symbolKind: string) {
565+
function pushSymbolKind(symbolKind: string) {
566566
switch (symbolKind) {
567567
case ScriptElementKind.variableElement:
568568
case ScriptElementKind.functionElement:

0 commit comments

Comments
 (0)