(pass *analysis.Pass, base outerStoreMatcher, lhs ast.Expr, rhs ast.Expr)
| 364 | } |
| 365 | |
| 366 | func (m *outerStoreMatcher) collectAlias(pass *analysis.Pass, base outerStoreMatcher, lhs ast.Expr, rhs ast.Expr) { |
| 367 | lhsForm, ok := declaredIdentForm(pass, lhs) |
| 368 | if !ok { |
| 369 | return |
| 370 | } |
| 371 | |
| 372 | switch { |
| 373 | case base.matches(pass, rhs): |
| 374 | m.addStoreForm(lhsForm) |
| 375 | case base.matchesOwner(pass, rhs): |
| 376 | m.addOwnerForm(lhsForm) |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | func (m outerStoreMatcher) withReceiver(pass *analysis.Pass, decl *ast.FuncDecl) (outerStoreMatcher, bool) { |
| 381 | recvForm, ok := receiverForm(pass, decl) |
no test coverage detected