* Use this to register only the HTML and MathML builders for a function (e.g. * if the function's ParseNode is generated in Parser.js rather than via a * stand-alone handler provided to `defineFunction`).
(_ref2)
| 6207 | */ |
| 6208 | |
| 6209 | function defineFunctionBuilders(_ref2) { |
| 6210 | let type = _ref2.type, |
| 6211 | htmlBuilder = _ref2.htmlBuilder, |
| 6212 | mathmlBuilder = _ref2.mathmlBuilder; |
| 6213 | defineFunction({ |
| 6214 | type, |
| 6215 | names: [], |
| 6216 | props: { |
| 6217 | numArgs: 0 |
| 6218 | }, |
| 6219 | |
| 6220 | handler() { |
| 6221 | throw new Error('Should never be called.'); |
| 6222 | }, |
| 6223 | |
| 6224 | htmlBuilder, |
| 6225 | mathmlBuilder |
| 6226 | }); |
| 6227 | } // Since the corresponding buildHTML/buildMathML function expects a |
| 6228 | // list of elements, we normalize for different kinds of arguments |
| 6229 | |
| 6230 | const ordargument = function ordargument(arg) { |
no test coverage detected