Skip to content

Parsing fails with no indication of which file is broken #191

@dimageller

Description

@dimageller

I had a function with JSDoc, where I forgot to specify type of object for input parameter, like below
/** Some function @param {} timeout */

While generating a document, parser failed, but it didn't indicate where

node_modules/jsdoctypeparser/lib/index.js:48 throw new Lexer.SyntaxError(e.message, typeExp, e.offset); ^ TypeLexerSyntaxError: Expected "!", "(", "*", "...", "=", "?", "function", "module", "{" or [a-zA-Z_$] but " " found.:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions