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

Function identObject

scripts/intxcheck/analyzer.go:526–534  ·  view source on GitHub ↗
(pass *analysis.Pass, ident *ast.Ident)

Source from the content-addressed store, hash-verified

524}
525
526func identObject(pass *analysis.Pass, ident *ast.Ident) types.Object {
527 if ident == nil {
528 return nil
529 }
530 if obj := pass.TypesInfo.Uses[ident]; obj != nil {
531 return obj
532 }
533 return pass.TypesInfo.Defs[ident]
534}
535
536func rootIdentAndSuffix(expr ast.Expr) (*ast.Ident, string, bool) {
537 switch expr := unparen(expr).(type) {

Callers 1

exprFormForFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected