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

Function IsDottedName

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

Source from the content-addressed store, hash-verified

1611}
1612
1613func IsDottedName(node *Node) bool {
1614 switch node.Kind {
1615 case KindIdentifier, KindThisKeyword, KindSuperKeyword, KindMetaProperty:
1616 return true
1617 case KindPropertyAccessExpression, KindParenthesizedExpression:
1618 return IsDottedName(node.Expression())
1619 }
1620 return false
1621}
1622
1623func HasSamePropertyAccessName(node1, node2 *Node) bool {
1624 if node1.Kind == KindIdentifier && node2.Kind == KindIdentifier {

Callers 2

checkCallExpressionMethod · 0.92

Calls 1

ExpressionMethod · 0.80

Tested by

no test coverage detected