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

Method containsMatchingReference

internal/checker/flow.go:1820–1828  ·  view source on GitHub ↗
(source *ast.Node, target *ast.Node)

Source from the content-addressed store, hash-verified

1818}
1819
1820func (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
1830func (c *Checker) optionalChainContainsReference(source *ast.Node, target *ast.Node) bool {
1831 for ast.IsOptionalChain(source) {

Callers 2

Calls 3

isMatchingReferenceMethod · 0.95
IsAccessExpressionFunction · 0.92
ExpressionMethod · 0.80

Tested by

no test coverage detected