@@ -224,12 +224,12 @@ function buildFromPostfixUnaryExpression(
224224}
225225
226226
227- function mangleNameFromDecleration (
227+ function mangleNameFromDeclaration (
228228 declaration : ts . SignatureDeclaration ,
229229 ctx : Context ,
230230 mangler : ManglerInterface
231231) {
232- if ( declaration . kind === ts . SyntaxKind . MethodDeclaration ) {
232+ if ( declaration . kind === ts . SyntaxKind . MethodDeclaration || declaration . kind === ts . SyntaxKind . MethodSignature ) {
233233 const left = ctx . typeChecker . getTypeAtLocation ( declaration . parent ! ) as ts . ObjectType ;
234234
235235 return mangler . getMethodName (
@@ -274,7 +274,7 @@ export function buildCalleFromSignature(
274274 < ts . FunctionDeclaration > declaration ,
275275 ctx ,
276276 builder ,
277- mangleNameFromDecleration ( declaration , ctx , CPPMangler )
277+ mangleNameFromDeclaration ( declaration , ctx , CPPMangler )
278278 ) ;
279279
280280 ctx . signature . set ( signature , llvmFunction ) ;
@@ -287,7 +287,7 @@ export function buildCalleFromSignature(
287287 < ts . FunctionDeclaration > declaration ,
288288 ctx ,
289289 builder ,
290- mangleNameFromDecleration ( declaration , ctx , CMangler )
290+ mangleNameFromDeclaration ( declaration , ctx , CMangler )
291291 ) ;
292292
293293
0 commit comments