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

Method definition

gapil/bapi/decode.go:546–556  ·  view source on GitHub ↗
(definitionID uint64)

Source from the content-addressed store, hash-verified

544}
545
546func (d *decoder) definition(definitionID uint64) (out *semantic.Definition) {
547 d.build(d.content.Instances.Definition, &d.inst.Definition, definitionID, &out,
548 func(p *Definition, s *semantic.Definition) {
549 s.AST = d.astDefinition(p.Ast)
550 s.Annotations = d.annotations(p.Annotations)
551 s.Named = semantic.Named(d.str(p.Name))
552 s.Docs = d.docs(p.Docs)
553 s.Expression = d.expr(p.Expression)
554 })
555 return
556}
557
558func (d *decoder) docs(p *Documentation) semantic.Documentation {
559 s := semantic.Documentation{}

Callers 2

exprMethod · 0.95
nodeMethod · 0.95

Calls 6

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

Tested by

no test coverage detected