MCPcopy Create free account
hub / github.com/google/gapid / param

Method param

gapil/bapi/encode.go:1200–1212  ·  view source on GitHub ↗
(n *semantic.Parameter)

Source from the content-addressed store, hash-verified

1198}
1199
1200func (e *encoder) param(n *semantic.Parameter) (outID uint64) {
1201 e.build(&e.instances.Parameter, e.maps.Parameter, n, &outID, func() *Parameter {
1202 return &Parameter{
1203 Ast: e.astParameter(n.AST),
1204 Annotations: e.annotations(n.Annotations),
1205 Function: e.function(n.Function),
1206 Name: e.str(n.Name()),
1207 Docs: e.docs(n.Docs),
1208 Type: e.ty(n.Type),
1209 }
1210 })
1211 return
1212}
1213
1214func (e *encoder) pointer(n *semantic.Pointer) (outID uint64) {
1215 e.build(&e.instances.Pointer, e.maps.Pointer, n, &outID, func() *Pointer {

Callers 4

nodeMethod · 0.95
exprMethod · 0.95
functionMethod · 0.95
observedMethod · 0.95

Calls 8

buildMethod · 0.95
astParameterMethod · 0.95
annotationsMethod · 0.95
functionMethod · 0.95
strMethod · 0.95
docsMethod · 0.95
tyMethod · 0.95
NameMethod · 0.65

Tested by

no test coverage detected