MCPcopy
hub / github.com/microsoft/typescript-go / IsThisInTypeQuery

Function IsThisInTypeQuery

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

Source from the content-addressed store, hash-verified

2962}
2963
2964func IsThisInTypeQuery(node *Node) bool {
2965 if !IsThisIdentifier(node) {
2966 return false
2967 }
2968 for IsQualifiedName(node.Parent) && node.Parent.AsQualifiedName().Left == node {
2969 node = node.Parent
2970 }
2971 return node.Parent.Kind == KindTypeQuery
2972}
2973
2974// Gets whether a bound `VariableDeclaration` or `VariableDeclarationList` is part of a `let` declaration.
2975func IsLet(node *Node) bool {

Calls 3

IsThisIdentifierFunction · 0.85
IsQualifiedNameFunction · 0.85
AsQualifiedNameMethod · 0.80

Tested by

no test coverage detected