(node *Node)
| 1611 | } |
| 1612 | |
| 1613 | func 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 | |
| 1623 | func HasSamePropertyAccessName(node1, node2 *Node) bool { |
| 1624 | if node1.Kind == KindIdentifier && node2.Kind == KindIdentifier { |
no test coverage detected