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

Method definition

gapil/bapi/encode.go:732–743  ·  view source on GitHub ↗
(n *semantic.Definition)

Source from the content-addressed store, hash-verified

730}
731
732func (e *encoder) definition(n *semantic.Definition) (outID uint64) {
733 e.build(&e.instances.Definition, e.maps.Definition, n, &outID, func() *Definition {
734 p := &Definition{}
735 p.Name = e.str(n.Name())
736 p.Ast = e.astDefinition(n.AST)
737 p.Annotations = e.annotations(n.Annotations)
738 p.Docs = e.docs(n.Docs)
739 p.Expression = e.expr(n.Expression)
740 return p
741 })
742 return
743}
744
745func (e *encoder) definitionUsage(n *semantic.DefinitionUsage) (outID uint64) {
746 e.build(&e.instances.DefinitionUsage, e.maps.DefinitionUsage, n, &outID, func() *DefinitionUsage {

Callers 3

nodeMethod · 0.95
definitionUsageMethod · 0.95
exprMethod · 0.95

Calls 7

buildMethod · 0.95
strMethod · 0.95
astDefinitionMethod · 0.95
annotationsMethod · 0.95
docsMethod · 0.95
exprMethod · 0.95
NameMethod · 0.65

Tested by

no test coverage detected