Skip to content

Adding semicolon inbetween property name and { get; set; } invalidates rest of the document (excess errors) #52

@NTaylorMullen

Description

@NTaylorMullen

Repro:

public class Class
{
    public int MyProperty; { get; set; }

    // Pretty much anything here causes an error
}

Note the ; after MyProperty and before { get; set; }

Expected:
Rest of document not being invalidated and an error that points to the property.

Notes:

When generating code for Razor there have been some cases of users adding semicolons after @inject statements resulting in the entire document being invalidated (tons of errors) after

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions