MCPcopy Index your code
hub / github.com/coder/guts / Identifier

Method Identifier

convert.go:1366–1374  ·  view source on GitHub ↗

ObjectName returns the name of the object including any prefixes defined by the config.

(obj types.Object)

Source from the content-addressed store, hash-verified

1364// ObjectName returns the name of the object including any prefixes defined by
1365// the config.
1366func (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
1376func ptr[T any](v T) *T {
1377 return &v

Callers 5

parseMethod · 0.45
constantDeclarationMethod · 0.45
buildStructMethod · 0.45
typescriptTypeMethod · 0.45
buildUnionMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected