(source *ast.Node, target *ast.Node)
| 1818 | } |
| 1819 | |
| 1820 | func (c *Checker) containsMatchingReference(source *ast.Node, target *ast.Node) bool { |
| 1821 | for ast.IsAccessExpression(source) { |
| 1822 | source = source.Expression() |
| 1823 | if c.isMatchingReference(source, target) { |
| 1824 | return true |
| 1825 | } |
| 1826 | } |
| 1827 | return false |
| 1828 | } |
| 1829 | |
| 1830 | func (c *Checker) optionalChainContainsReference(source *ast.Node, target *ast.Node) bool { |
| 1831 | for ast.IsOptionalChain(source) { |
no test coverage detected