(definitionID uint64)
| 544 | } |
| 545 | |
| 546 | func (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 | |
| 558 | func (d *decoder) docs(p *Documentation) semantic.Documentation { |
| 559 | s := semantic.Documentation{} |
no test coverage detected