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