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

Method function

gapil/bapi/encode.go:940–964  ·  view source on GitHub ↗
(n *semantic.Function)

Source from the content-addressed store, hash-verified

938}
939
940func (e *encoder) function(n *semantic.Function) (outID uint64) {
941 e.build(&e.instances.Function, e.maps.Function, n, &outID, func() *Function {
942 p := &Function{}
943 p.Owner = e.node(n.Owner())
944 p.Ast = e.astFunction(n.AST)
945 p.Annotations = e.annotations(n.Annotations)
946 p.Name = e.str(n.Name())
947 p.Docs = e.docs(n.Docs)
948 p.Return = e.param(n.Return)
949 p.This = e.param(n.This)
950 foreach(n.FullParameters, e.param, &p.FullParameters)
951 p.Block = e.block(n.Block)
952 p.Signature = e.signature(n.Signature)
953 p.Extern = n.Extern
954 p.Subroutine = n.Subroutine
955 p.Recursive = n.Recursive
956 p.Order = &LogicalOrder{
957 Resolved: n.Order.Resolved(),
958 Pre: n.Order.Pre(),
959 Post: n.Order.Post(),
960 }
961 return p
962 })
963 return
964}
965
966func (e *encoder) global(n *semantic.Global) (outID uint64) {
967 e.build(&e.instances.Global, e.maps.Global, n, &outID, func() *Global {

Callers 5

nodeMethod · 0.95
abortMethod · 0.95
callableMethod · 0.95
paramMethod · 0.95
return_Method · 0.95

Calls 15

buildMethod · 0.95
nodeMethod · 0.95
astFunctionMethod · 0.95
annotationsMethod · 0.95
strMethod · 0.95
docsMethod · 0.95
paramMethod · 0.95
blockMethod · 0.95
signatureMethod · 0.95
foreachFunction · 0.85
ResolvedMethod · 0.80
PreMethod · 0.80

Tested by

no test coverage detected