(ast)
| 8865 | |
| 8866 | // detect problematic expressions in a template |
| 8867 | function detectErrors (ast) { |
| 8868 | var errors = []; |
| 8869 | if (ast) { |
| 8870 | checkNode(ast, errors); |
| 8871 | } |
| 8872 | return errors |
| 8873 | } |
| 8874 | |
| 8875 | function checkNode (node, errors) { |
| 8876 | if (node.type === 1) { |