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