MCPcopy Index your code
hub / github.com/coder/coder / matchesOwner

Method matchesOwner

scripts/intxcheck/analyzer.go:422–438  ·  view source on GitHub ↗
(pass *analysis.Pass, expr ast.Expr)

Source from the content-addressed store, hash-verified

420}
421
422func (m outerStoreMatcher) matchesOwner(pass *analysis.Pass, expr ast.Expr) bool {
423 if len(m.ownerForms) == 0 {
424 return false
425 }
426
427 form := exprFormFor(pass, expr)
428 if form.text == "" {
429 return false
430 }
431
432 for _, ownerForm := range m.ownerForms {
433 if sameExprForm(form, ownerForm) {
434 return true
435 }
436 }
437 return false
438}
439
440func (m *outerStoreMatcher) addOwnerForm(form exprForm) {
441 if form.text == "" || containsExprForm(m.ownerForms, form) {

Callers 2

resolveSamePackageCalleeFunction · 0.80
collectAliasMethod · 0.80

Calls 2

exprFormForFunction · 0.85
sameExprFormFunction · 0.85

Tested by

no test coverage detected