Examples returns a list of string examples for the overload.
()
| 691 | |
| 692 | // Examples returns a list of string examples for the overload. |
| 693 | func (o *OverloadDecl) Examples() []string { |
| 694 | var emptySet []string |
| 695 | if o == nil || len(o.doc) == 0 { |
| 696 | return emptySet |
| 697 | } |
| 698 | return common.ParseDescriptions(o.doc) |
| 699 | } |
| 700 | |
| 701 | // ID mirrors the overload signature and provides a unique id which may be referenced within the type-checker |
| 702 | // and interpreter to optimize performance. |