FunctionDocs configures documentation from a list of strings separated by newlines.
(docs ...string)
| 451 | |
| 452 | // FunctionDocs configures documentation from a list of strings separated by newlines. |
| 453 | func FunctionDocs(docs ...string) FunctionOpt { |
| 454 | return func(fn *FunctionDecl) (*FunctionDecl, error) { |
| 455 | fn.doc = common.MultilineDescription(docs...) |
| 456 | return fn, nil |
| 457 | } |
| 458 | } |
| 459 | |
| 460 | // DisableTypeGuards disables automatically generated function invocation guards on direct overload calls. |
| 461 | // Type guards remain on during dynamic dispatch for parsed-only expressions. |