(node)
| 98 | } |
| 99 | }, |
| 100 | FunctionDeclaration(node) { |
| 101 | if (node.id && node.id.type === 'Identifier') { |
| 102 | userDefinitions.functions.push({ |
| 103 | name: node.id.name, |
| 104 | line: node.loc.start.line + lineOffset |
| 105 | }); |
| 106 | } |
| 107 | }, |
| 108 | // We consider class declarations to be a special form of variable |
| 109 | // declaration. |
| 110 | ClassDeclaration(node) { |