At this line, identifiers are added to this.identifiers if they are top level variable declarations.
But later in the code, there is a similar code block handling variable declarations that are also exported (inside an ExportNamedDeclaration node), which does not add identifiers to this.identifiers.
At this line, identifiers are added to
this.identifiers
if they are top level variable declarations.But later in the code, there is a similar code block handling variable declarations that are also exported (inside an
ExportNamedDeclaration
node), which does not add identifiers tothis.identifiers
.Because of that, this is parsed ok:
But this is not:
Edit: This will be fixed by #56 but I'm creating a separate issue to help track bug fixes.