Skip to content

Commit e27c7b7

Browse files
committed
Rename createDocumentSymbol
It is now called `extractDocumentSymbolFromDeclaration`.
1 parent e2d2ed3 commit e27c7b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server/src/server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ export function getDocumentSymbols(document: TextDocument): DocumentSymbol[] {
11921192
...declarations,
11931193
...whereClausesDeclarations,
11941194
...typeDeclarations,
1195-
].map((node) => createDocumentSymbol(node, document));
1195+
].map((node) => extractDocumentSymbolFromDeclaration(node, document));
11961196
}
11971197

11981198
function findNodesOfType(rootNode: SyntaxNode, type: string): SyntaxNode[] {
@@ -1221,7 +1221,7 @@ function findWhereClauseDeclarations(rootNode: SyntaxNode): SyntaxNode[] {
12211221
return declarations;
12221222
}
12231223

1224-
function createDocumentSymbol(
1224+
function extractDocumentSymbolFromDeclaration(
12251225
node: SyntaxNode,
12261226
document: TextDocument,
12271227
): DocumentSymbol {

0 commit comments

Comments
 (0)