Skip to content

identifierCount may not be correct #28534

@ghost

Description

TypeScript Version: 3.2.0-dev.20181114

In parser.ts, there is an identifierCount variable that is incremented every time createIdentifier is called.
Unfortunately, not all createIdentifier calls will result in an identifier in the AST, since some may have happened during speculative parsing. It may be necessary to reset identifierCount after speculative parsing fails.

Metadata

Metadata

Assignees

No one assigned

    Labels

    InfrastructureIssue relates to TypeScript team infrastructure

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions