ObjectName returns the name of the object including any prefixes defined by the config.
(obj types.Object)
| 1364 | // ObjectName returns the name of the object including any prefixes defined by |
| 1365 | // the config. |
| 1366 | func (p *GoParser) Identifier(obj types.Object) bindings.Identifier { |
| 1367 | name := obj.Name() |
| 1368 | prefix := p.Prefix[obj.Pkg().Path()] |
| 1369 | return bindings.Identifier{ |
| 1370 | Name: name, |
| 1371 | Prefix: prefix, |
| 1372 | Package: obj.Pkg(), |
| 1373 | } |
| 1374 | } |
| 1375 | |
| 1376 | func ptr[T any](v T) *T { |
| 1377 | return &v |
no outgoing calls
no test coverage detected