Examples returns a list of string examples for the overload.
()
| 626 | |
| 627 | // Examples returns a list of string examples for the overload. |
| 628 | func (o *OverloadDecl) Examples() []string { |
| 629 | var emptySet []string |
| 630 | if o == nil || len(o.doc) == 0 { |
| 631 | return emptySet |
| 632 | } |
| 633 | return common.ParseDescriptions(o.doc) |
| 634 | } |
| 635 | |
| 636 | // ID mirrors the overload signature and provides a unique id which may be referenced within the type-checker |
| 637 | // and interpreter to optimize performance. |
no test coverage detected