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

Function IsTypeDeclarationName

internal/ast/utilities.go:3579–3583  ·  view source on GitHub ↗
(name *Node)

Source from the content-addressed store, hash-verified

3577}
3578
3579func IsTypeDeclarationName(name *Node) bool {
3580 return name.Kind == KindIdentifier &&
3581 IsTypeDeclaration(name.Parent) &&
3582 GetNameOfDeclaration(name.Parent) == name
3583}
3584
3585func IsRightSideOfPropertyAccess(node *Node) bool {
3586 return node.Parent.Kind == KindPropertyAccessExpression && node.Parent.Name() == node

Callers 1

getTypeOfNodeMethod · 0.92

Calls 2

IsTypeDeclarationFunction · 0.85
GetNameOfDeclarationFunction · 0.85

Tested by

no test coverage detected