getResolvedSignature

abstract fun getResolvedSignature(node: CallLikeExpression, candidatesOutArray: ReadonlyArray<Signature> = definedExternally, argumentCount: Double = definedExternally): Signature?(source)

returns unknownSignature in the case of an error. returns undefined if the node is not valid.

Parameters

argumentCount

Apparent number of arguments, passed in case of a possibly incomplete call. This should come from an ArgumentListInfo. See signatureHelp.ts.