MCPcopy Create free account
hub / github.com/crossplane/crossplane-tools / WriteMethods

Function WriteMethods

internal/generate/generate.go:80–122  ·  view source on GitHub ↗

WriteMethods writes the supplied methods for each object in the supplied package to the supplied file. Use WithMatcher to limit the objects for which methods will be written. Methods will not be generated if a method with the same name is already defined for the object outside of the supplied filena

(p *packages.Package, ms method.Set, file string, wo ...WriteOption)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Calls 3

DefinedOutsideFunction · 0.92
ProducedNothingFunction · 0.85
WriteMethod · 0.80

Tested by

no test coverage detected