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