Skip to content

Commit 3079c89

Browse files
committed
chore: Fix CI
I really, *really* dislike mixins.
1 parent d8a32d1 commit 3079c89

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/lib/converter/symbols.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,9 @@ function convertFunctionOrMethod(
249249
?.getDeclarations()
250250
?.find(
251251
(d) => ts.isClassDeclaration(d) || ts.isInterfaceDeclaration(d)
252-
) ?? symbol.getDeclarations()?.[0]?.getSourceFile();
252+
) ??
253+
parentSymbol?.getDeclarations()?.[0]?.getSourceFile() ??
254+
symbol.getDeclarations()?.[0]?.getSourceFile();
253255
assert(locationDeclaration, "Missing declaration context");
254256

255257
const type = context.checker.getTypeOfSymbolAtLocation(

0 commit comments

Comments
 (0)