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

Function IsPartOfTypeQuery

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

Source from the content-addressed store, hash-verified

1739}
1740
1741func IsPartOfTypeQuery(node *Node) bool {
1742 for node.Kind == KindQualifiedName || node.Kind == KindIdentifier {
1743 node = node.Parent
1744 }
1745 return node.Kind == KindTypeQuery
1746}
1747
1748/**
1749 * This function returns true if the this node's root declaration is a parameter.

Callers 3

checkQualifiedNameMethod · 0.92
bindMethod · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected