* Check whether the RangeNode needs the `end` symbol to be defined. * This end is the size of the Matrix in current dimension. * @return {boolean}
()
| 69 | * @return {boolean} |
| 70 | */ |
| 71 | needsEnd () { |
| 72 | // find all `end` symbols in this RangeNode |
| 73 | const endSymbols = this.filter(function (node) { |
| 74 | return isSymbolNode(node) && (node.name === 'end') |
| 75 | }) |
| 76 | |
| 77 | return endSymbols.length > 0 |
| 78 | } |
| 79 | |
| 80 | /** |
| 81 | * Compile a node into a JavaScript function. |
nothing calls this directly
no test coverage detected