NewFunctionWithDoc creates a named function declaration with a description and one or more overloads.
(name, doc string, overloads ...*exprpb.Decl_FunctionDecl_Overload)
| 93 | |
| 94 | // NewFunctionWithDoc creates a named function declaration with a description and one or more overloads. |
| 95 | func NewFunctionWithDoc(name, doc string, |
| 96 | overloads ...*exprpb.Decl_FunctionDecl_Overload) *exprpb.Decl { |
| 97 | return &exprpb.Decl{ |
| 98 | Name: name, |
| 99 | DeclKind: &exprpb.Decl_Function{ |
| 100 | Function: &exprpb.Decl_FunctionDecl{ |
| 101 | // Doc: desc, |
| 102 | Overloads: overloads}}} |
| 103 | } |
| 104 | |
| 105 | // NewIdent creates a named identifier declaration with an optional literal |
| 106 | // value. |
nothing calls this directly
no outgoing calls
no test coverage detected