* Generate output string by nodes tree
(ast)
| 35 | * Generate output string by nodes tree |
| 36 | */ |
| 37 | stringify(ast) { |
| 38 | let result = '' |
| 39 | for (let i of ast) { |
| 40 | if (typeof i === 'object') { |
| 41 | result += `(${brackets.stringify(i)})` |
| 42 | continue |
| 43 | } |
| 44 | |
| 45 | result += i |
| 46 | } |
| 47 | return result |
| 48 | } |
| 49 | } |
| 50 | |
| 51 | module.exports = brackets |
nothing calls this directly
no test coverage detected
searching dependent graphs…