(source *ast.Node, target *ast.Node)
| 1828 | } |
| 1829 | |
| 1830 | func (c *Checker) optionalChainContainsReference(source *ast.Node, target *ast.Node) bool { |
| 1831 | for ast.IsOptionalChain(source) { |
| 1832 | source = source.Expression() |
| 1833 | if c.isMatchingReference(source, target) { |
| 1834 | return true |
| 1835 | } |
| 1836 | } |
| 1837 | return false |
| 1838 | } |
| 1839 | |
| 1840 | func (c *Checker) getReferenceCandidate(node *ast.Node) *ast.Node { |
| 1841 | switch node.Kind { |
no test coverage detected