MCPcopy Create free account
hub / github.com/microsoft/typescript-go / IsFunctionLikeKind

Function IsFunctionLikeKind

internal/ast/utilities.go:503–515  ·  view source on GitHub ↗
(kind Kind)

Source from the content-addressed store, hash-verified

501}
502
503func IsFunctionLikeKind(kind Kind) bool {
504 switch kind {
505 case KindMethodSignature,
506 KindCallSignature,
507 KindJSDocSignature,
508 KindConstructSignature,
509 KindIndexSignature,
510 KindFunctionType,
511 KindConstructorType:
512 return true
513 }
514 return isFunctionLikeDeclarationKind(kind)
515}
516
517// Determines if a node is function- or signature-like.
518func IsFunctionLike(node *Node) bool {

Callers 5

isTypeAnnotationContextFunction · 0.92
IsFunctionLikeFunction · 0.85

Calls 1

Tested by

no test coverage detected