(node)
| 108 | // We consider class declarations to be a special form of variable |
| 109 | // declaration. |
| 110 | ClassDeclaration(node) { |
| 111 | if (node.id && node.id.type === 'Identifier') { |
| 112 | userDefinitions.variables.push({ |
| 113 | name: node.id.name, |
| 114 | line: node.loc.start.line + lineOffset |
| 115 | }); |
| 116 | } |
| 117 | } |
| 118 | }); |
| 119 | } catch (error) { |
| 120 | // TODO: Replace this with a friendly error message. |