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

Function IsFunctionLikeDeclaration

internal/ast/utilities.go:498–501  ·  view source on GitHub ↗

Determines if a node is function-like (but is not a signature declaration)

(node *Node)

Source from the content-addressed store, hash-verified

496
497// Determines if a node is function-like (but is not a signature declaration)
498func IsFunctionLikeDeclaration(node *Node) bool {
499 // TODO(rbuckton): Move `node != nil` test to call sites
500 return node != nil && isFunctionLikeDeclarationKind(node.Kind)
501}
502
503func IsFunctionLikeKind(kind Kind) bool {
504 switch kind {

Calls 1

Tested by

no test coverage detected