MCPcopy Create free account
hub / github.com/goadesign/goa / Ref

Method Ref

codegen/transformer.go:18–18  ·  view source on GitHub ↗

Ref generates a valid reference to the given attribute type.

(att *expr.AttributeExpr, pkg string)

Source from the content-addressed store, hash-verified

16 Name(att *expr.AttributeExpr, pkg string, ptr, useDefault bool) string
17 // Ref generates a valid reference to the given attribute type.
18 Ref(att *expr.AttributeExpr, pkg string) string
19 // Field generates a valid data structure field identifier for the given
20 // attribute and field name. If firstUpper is true then the field name
21 // first letter is capitalized.

Callers 15

transformAttributeFunction · 0.65
transformObjectFunction · 0.65
transformArrayFunction · 0.65
transformMapFunction · 0.65
transformUnionDataFunction · 0.65
collectHelpersFunction · 0.65
buildInitDataMethod · 0.65
buildErrorConvertDataMethod · 0.65
buildStreamDataMethod · 0.65
transformPrimitiveFunction · 0.65

Implementers 2

protoBufScopegrpc/codegen/protobuf.go
AttributeScopecodegen/transformer.go

Calls

no outgoing calls

Tested by

no test coverage detected