{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/52","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/52/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/52/events","html_url":"https://github.com/dotnet/roslyn/issues/52","id":55067944,"number":52,"title":"Adding semicolon inbetween property name and { get; set; } invalidates rest of the document (excess errors)","user":{"login":"NTaylorMullen","id":2008729,"avatar_url":"https://avatars.githubusercontent.com/u/2008729?v=3","gravatar_id":"","url":"https://api.github.com/users/NTaylorMullen","html_url":"https://github.com/NTaylorMullen","followers_url":"https://api.github.com/users/NTaylorMullen/followers","following_url":"https://api.github.com/users/NTaylorMullen/following{/other_user}","gists_url":"https://api.github.com/users/NTaylorMullen/gists{/gist_id}","starred_url":"https://api.github.com/users/NTaylorMullen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NTaylorMullen/subscriptions","organizations_url":"https://api.github.com/users/NTaylorMullen/orgs","repos_url":"https://api.github.com/users/NTaylorMullen/repos","events_url":"https://api.github.com/users/NTaylorMullen/events{/privacy}","received_events_url":"https://api.github.com/users/NTaylorMullen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Compilers","name":"Area-Compilers","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Bug","name":"Bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/dotnet/roslyn/milestones/2","labels_url":"https://api.github.com/repos/dotnet/roslyn/milestones/2/labels","id":937398,"number":2,"title":"Unknown","description":"This represents work which is not planned for a specific release.","creator":{"login":"jaredpar","id":146967,"avatar_url":"https://avatars.githubusercontent.com/u/146967?v=3","gravatar_id":"","url":"https://api.github.com/users/jaredpar","html_url":"https://github.com/jaredpar","followers_url":"https://api.github.com/users/jaredpar/followers","following_url":"https://api.github.com/users/jaredpar/following{/other_user}","gists_url":"https://api.github.com/users/jaredpar/gists{/gist_id}","starred_url":"https://api.github.com/users/jaredpar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jaredpar/subscriptions","organizations_url":"https://api.github.com/users/jaredpar/orgs","repos_url":"https://api.github.com/users/jaredpar/repos","events_url":"https://api.github.com/users/jaredpar/events{/privacy}","received_events_url":"https://api.github.com/users/jaredpar/received_events","type":"User","site_admin":false},"open_issues":29,"closed_issues":5,"state":"open","created_at":"2015-01-15T20:46:02Z","updated_at":"2015-01-25T11:27:00Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2015-01-21T19:49:39Z","updated_at":"2015-01-25T23:49:05Z","closed_at":null,"body":"**Repro:**  \r\n```C#\r\npublic class Class\r\n{\r\n    public int MyProperty; { get; set; }\r\n\r\n    // Pretty much anything here causes an error\r\n}\r\n```\r\nNote the `;` after `MyProperty` and before `{ get; set; }`\r\n\r\n**Expected:**  \r\nRest of document not being invalidated and an error that points to the property.\r\n\r\n**Notes:**  \r\n\r\nWhen 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"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/71400599","html_url":"https://github.com/dotnet/roslyn/issues/52#issuecomment-71400599","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/52","id":71400599,"user":{"login":"NTaylorMullen","id":2008729,"avatar_url":"https://avatars.githubusercontent.com/u/2008729?v=3","gravatar_id":"","url":"https://api.github.com/users/NTaylorMullen","html_url":"https://github.com/NTaylorMullen","followers_url":"https://api.github.com/users/NTaylorMullen/followers","following_url":"https://api.github.com/users/NTaylorMullen/following{/other_user}","gists_url":"https://api.github.com/users/NTaylorMullen/gists{/gist_id}","starred_url":"https://api.github.com/users/NTaylorMullen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NTaylorMullen/subscriptions","organizations_url":"https://api.github.com/users/NTaylorMullen/orgs","repos_url":"https://api.github.com/users/NTaylorMullen/repos","events_url":"https://api.github.com/users/NTaylorMullen/events{/privacy}","received_events_url":"https://api.github.com/users/NTaylorMullen/received_events","type":"User","site_admin":false},"created_at":"2015-01-25T23:49:04Z","updated_at":"2015-01-25T23:49:04Z","body":"@paulomorgado `{ get; set; }` is invalid C# by itself. Whatever is encapsulated inside of the `{...}` should be handled as an individual error and not affect code past it.\r\n\r\nIf a user were to type: `{ get; set;` without the ending `}` then it'd be a different situation because there'd be unbalanced curly braces; therefore, it may make sense to invalidate the rest of the document in that case.\r\n\r\nTo sum it all up, if you encounter any variation of `{ get; set; }` without a corresponding property name/type the recovery is to find the next piece of valid standalone C# and mark the previous `{ ... }` as errored code. \r\n\r\nI'm not entirely familiar with the parsing logic/behavior done in Roslyn so I apologize for not being able to go more into familiar detail but that is how we would do it in Razor."}}