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

Function isFunctionLikeDeclarationKind

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

Source from the content-addressed store, hash-verified

481}
482
483func isFunctionLikeDeclarationKind(kind Kind) bool {
484 switch kind {
485 case KindFunctionDeclaration,
486 KindMethodDeclaration,
487 KindConstructor,
488 KindGetAccessor,
489 KindSetAccessor,
490 KindFunctionExpression,
491 KindArrowFunction:
492 return true
493 }
494 return false
495}
496
497// Determines if a node is function-like (but is not a signature declaration)
498func IsFunctionLikeDeclaration(node *Node) bool {

Callers 2

IsFunctionLikeKindFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected