FunctionDocs configures documentation from a list of strings separated by newlines.
(docs ...string)
| 461 | |
| 462 | // FunctionDocs configures documentation from a list of strings separated by newlines. |
| 463 | func FunctionDocs(docs ...string) FunctionOpt { |
| 464 | return func(fn *FunctionDecl) (*FunctionDecl, error) { |
| 465 | fn.doc = common.MultilineDescription(docs...) |
| 466 | return fn, nil |
| 467 | } |
| 468 | } |
| 469 | |
| 470 | // DisableTypeGuards disables automatically generated function invocation guards on direct overload calls. |
| 471 | // Type guards remain on during dynamic dispatch for parsed-only expressions. |