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

Function IsDeclaration

internal/ast/utilities.go:1279–1284  ·  view source on GitHub ↗
(node *Node)

Source from the content-addressed store, hash-verified

1277}
1278
1279func IsDeclaration(node *Node) bool {
1280 if node.Kind == KindTypeParameter {
1281 return node.Parent != nil
1282 }
1283 return IsDeclarationNode(node)
1284}
1285
1286// True if `name` is the name of a declaration node
1287func IsDeclarationName(name *Node) bool {

Callers 15

visitNodeFunction · 0.92
getNodeModifiersFunction · 0.92
pseudoTypeToNodeMethod · 0.92
getTypeOfNodeMethod · 0.92

Calls 1

IsDeclarationNodeFunction · 0.85

Tested by

no test coverage detected