Skip to content

Commit

Permalink
fix: class instances shouldn't go to class definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
mxsdev committed Oct 17, 2022
1 parent 3bfd8d4 commit b5340f9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/localizedTree.ts
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@ function localizePurpose(purpose: TypePurpose): string {
}

function getTypeLocations(info: TypeInfo): SourceFileLocation[]|undefined {
const baseLocations = wrapSafe(getLocations)(info.typeSymbolMeta ?? info.aliasSymbolMeta ?? info.symbolMeta)
const baseLocations = wrapSafe(getLocations)(info.aliasSymbolMeta ?? info.symbolMeta ?? info.typeSymbolMeta)

if(!baseLocations) {
if(info.kind === 'function' && info.signatures.length === 1) {
Expand Down

0 comments on commit b5340f9

Please sign in to comment.