Macro type which declares the function name and arg count expected for the macro, as well as a macro expansion function.
| 126 | // Macro type which declares the function name and arg count expected for the |
| 127 | // macro, as well as a macro expansion function. |
| 128 | type macro struct { |
| 129 | function string |
| 130 | receiverStyle bool |
| 131 | varArgStyle bool |
| 132 | argCount int |
| 133 | expander MacroExpander |
| 134 | doc string |
| 135 | examples []string |
| 136 | } |
| 137 | |
| 138 | // Function returns the macro's function name (i.e. the function whose syntax it mimics). |
| 139 | func (m *macro) Function() string { |
nothing calls this directly
no outgoing calls
no test coverage detected