{"action":"created","issue":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/9015","repository_url":"https://api.github.com/repos/dotnet/roslyn","labels_url":"https://api.github.com/repos/dotnet/roslyn/issues/9015/labels{/name}","comments_url":"https://api.github.com/repos/dotnet/roslyn/issues/9015/comments","events_url":"https://api.github.com/repos/dotnet/roslyn/issues/9015/events","html_url":"https://github.com/dotnet/roslyn/issues/9015","id":135503983,"number":9015,"title":"Crash in `Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.IsStandaloneStatement(StatementSyntax node)`","user":{"login":"genlu","id":788783,"avatar_url":"https://avatars.githubusercontent.com/u/788783?v=3","gravatar_id":"","url":"https://api.github.com/users/genlu","html_url":"https://github.com/genlu","followers_url":"https://api.github.com/users/genlu/followers","following_url":"https://api.github.com/users/genlu/following{/other_user}","gists_url":"https://api.github.com/users/genlu/gists{/gist_id}","starred_url":"https://api.github.com/users/genlu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genlu/subscriptions","organizations_url":"https://api.github.com/users/genlu/orgs","repos_url":"https://api.github.com/users/genlu/repos","events_url":"https://api.github.com/users/genlu/events{/privacy}","received_events_url":"https://api.github.com/users/genlu/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Area-Analyzers","name":"Area-Analyzers","color":"5319e7"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/Bug","name":"Bug","color":"fc2929"},{"url":"https://api.github.com/repos/dotnet/roslyn/labels/New%20Feature%20-%20IOperation","name":"New Feature - IOperation","color":"bfd4f2"}],"state":"open","locked":false,"assignee":{"login":"JohnHamby","id":10982715,"avatar_url":"https://avatars.githubusercontent.com/u/10982715?v=3","gravatar_id":"","url":"https://api.github.com/users/JohnHamby","html_url":"https://github.com/JohnHamby","followers_url":"https://api.github.com/users/JohnHamby/followers","following_url":"https://api.github.com/users/JohnHamby/following{/other_user}","gists_url":"https://api.github.com/users/JohnHamby/gists{/gist_id}","starred_url":"https://api.github.com/users/JohnHamby/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JohnHamby/subscriptions","organizations_url":"https://api.github.com/users/JohnHamby/orgs","repos_url":"https://api.github.com/users/JohnHamby/repos","events_url":"https://api.github.com/users/JohnHamby/events{/privacy}","received_events_url":"https://api.github.com/users/JohnHamby/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2016-02-22T18:39:43Z","updated_at":"2016-02-22T20:00:24Z","closed_at":null,"body":"Can be repro'd in following tests with OperationWAlker hooked up:\r\n```\r\nMicrosoft.CodeAnalysis.VisualBasic.UnitTests.Semantics.UnstructuredExceptionHandling.Resume_in_Lambda_1\r\nMicrosoft.CodeAnalysis.VisualBasic.UnitTests.Semantics.UnstructuredExceptionHandling.Resume_in_Lambda_5\r\n```\r\nStack trace:\r\n```\r\nTest 'Microsoft.CodeAnalysis.VisualBasic.UnitTests.Semantics.UnstructuredExceptionHandling.Resume_in_Lambda_1' failed: Microsoft.CodeAnalysis.ThrowingTraceListener+DebugAssertFailureException : Unexpected value 'ResumeStatement' of type 'Microsoft.CodeAnalysis.VisualBasic.SyntaxKind'\r\n\r\n\tThrowingTraceListener.cs(25,0): at Microsoft.CodeAnalysis.ThrowingTraceListener.Fail(String message, String detailMessage)\r\n\tat System.Diagnostics.TraceListener.Fail(String message)\r\n\tat System.Diagnostics.TraceInternal.Fail(String message)\r\n\tat System.Diagnostics.Debug.Assert(Boolean condition, String message)\r\n\tInternalUtilities\\ExceptionUtilities.cs(13,0): at Roslyn.Utilities.ExceptionUtilities.UnexpectedValue(Object o)\r\n\tBinding\\MemberSemanticModel.vb(381,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.IsStandaloneStatement(StatementSyntax node)\r\n\tBinding\\MemberSemanticModel.vb(1905,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.GetBindingRoot(VisualBasicSyntaxNode node)\r\n\tBinding\\MemberSemanticModel.vb(1780,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.GetBoundNodes(VisualBasicSyntaxNode node)\r\n\tBinding\\MemberSemanticModel.vb(142,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.GetUpperBoundNode(VisualBasicSyntaxNode node)\r\n\tBinding\\MemberSemanticModel.vb(200,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.GetBoundNodeSummary(VisualBasicSyntaxNode node)\r\n\tBinding\\MemberSemanticModel.vb(789,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.GetOperationWorker(VisualBasicSyntaxNode node, GetOperationOptions options, CancellationToken cancellationToken)\r\n\tCompilation\\SyntaxTreeSemanticModel.vb(357,0): at Microsoft.CodeAnalysis.VisualBasic.SyntaxTreeSemanticModel.GetOperationWorker(VisualBasicSyntaxNode node, GetOperationOptions options, CancellationToken cancellationToken)\r\n\tCompilation\\SemanticModel.vb(143,0): at Microsoft.CodeAnalysis.VisualBasic.VBSemanticModel.GetOperationCore(SyntaxNode node, CancellationToken cancellationToken)\r\n\tCompilation\\SemanticModel.cs(74,0): at Microsoft.CodeAnalysis.SemanticModel.GetOperation(SyntaxNode node, CancellationToken cancellationToken)\r\n\tCompilationTestUtils.vb(246,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationUtils.WalkOperationTrees(VisualBasicCompilation compilation)\r\n\tCompilationTestUtils.vb(228,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationUtils.CreateCompilationWithReferences(IEnumerable`1 sourceTrees, IEnumerable`1 references, VisualBasicCompilationOptions options, String assemblyName)\r\n\tCompilationTestUtils.vb(199,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationUtils.CreateCompilationWithReferences(XElement sources, IEnumerable`1 references, VisualBasicCompilationOptions options, IEnumerable`1& spans, VisualBasicParseOptions parseOptions)\r\n\tCompilationTestUtils.vb(120,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationUtils.CreateCompilationWithMscorlibAndVBRuntime(XElement sources, MetadataReference[] additionalRefs, VisualBasicCompilationOptions options, VisualBasicParseOptions parseOptions)\r\n\tCompilationTestUtils.vb(125,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationUtils.CreateCompilationWithMscorlibAndVBRuntime(XElement sources, VisualBasicCompilationOptions options)\r\n\tSemantics\\UnstructuredExceptionHandling.vb(13907,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.Semantics.UnstructuredExceptionHandling.Resume_in_Lambda_1()Test 'Microsoft.CodeAnalysis.VisualBasic.UnitTests.Semantics.UnstructuredExceptionHandling.Resume_in_Lambda_1' failed: Microsoft.CodeAnalysis.ThrowingTraceListener+DebugAssertFailureException : Unexpected value 'ResumeStatement' of type 'Microsoft.CodeAnalysis.VisualBasic.SyntaxKind'\r\n\r\n\tThrowingTraceListener.cs(25,0): at Microsoft.CodeAnalysis.ThrowingTraceListener.Fail(String message, String detailMessage)\r\n\tat System.Diagnostics.TraceListener.Fail(String message)\r\n\tat System.Diagnostics.TraceInternal.Fail(String message)\r\n\tat System.Diagnostics.Debug.Assert(Boolean condition, String message)\r\n\tInternalUtilities\\ExceptionUtilities.cs(13,0): at Roslyn.Utilities.ExceptionUtilities.UnexpectedValue(Object o)\r\n\tBinding\\MemberSemanticModel.vb(381,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.IsStandaloneStatement(StatementSyntax node)\r\n\tBinding\\MemberSemanticModel.vb(1905,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.GetBindingRoot(VisualBasicSyntaxNode node)\r\n\tBinding\\MemberSemanticModel.vb(1780,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.GetBoundNodes(VisualBasicSyntaxNode node)\r\n\tBinding\\MemberSemanticModel.vb(142,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.GetUpperBoundNode(VisualBasicSyntaxNode node)\r\n\tBinding\\MemberSemanticModel.vb(200,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.GetBoundNodeSummary(VisualBasicSyntaxNode node)\r\n\tBinding\\MemberSemanticModel.vb(789,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.GetOperationWorker(VisualBasicSyntaxNode node, GetOperationOptions options, CancellationToken cancellationToken)\r\n\tCompilation\\SyntaxTreeSemanticModel.vb(357,0): at Microsoft.CodeAnalysis.VisualBasic.SyntaxTreeSemanticModel.GetOperationWorker(VisualBasicSyntaxNode node, GetOperationOptions options, CancellationToken cancellationToken)\r\n\tCompilation\\SemanticModel.vb(143,0): at Microsoft.CodeAnalysis.VisualBasic.VBSemanticModel.GetOperationCore(SyntaxNode node, CancellationToken cancellationToken)\r\n\tCompilation\\SemanticModel.cs(74,0): at Microsoft.CodeAnalysis.SemanticModel.GetOperation(SyntaxNode node, CancellationToken cancellationToken)\r\n\tCompilationTestUtils.vb(246,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationUtils.WalkOperationTrees(VisualBasicCompilation compilation)\r\n\tCompilationTestUtils.vb(228,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationUtils.CreateCompilationWithReferences(IEnumerable`1 sourceTrees, IEnumerable`1 references, VisualBasicCompilationOptions options, String assemblyName)\r\n\tCompilationTestUtils.vb(199,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationUtils.CreateCompilationWithReferences(XElement sources, IEnumerable`1 references, VisualBasicCompilationOptions options, IEnumerable`1& spans, VisualBasicParseOptions parseOptions)\r\n\tCompilationTestUtils.vb(120,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationUtils.CreateCompilationWithMscorlibAndVBRuntime(XElement sources, MetadataReference[] additionalRefs, VisualBasicCompilationOptions options, VisualBasicParseOptions parseOptions)\r\n\tCompilationTestUtils.vb(125,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationUtils.CreateCompilationWithMscorlibAndVBRuntime(XElement sources, VisualBasicCompilationOptions options)\r\n\tSemantics\\UnstructuredExceptionHandling.vb(13907,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.Semantics.UnstructuredExceptionHandling.Resume_in_Lambda_1()Test 'Microsoft.CodeAnalysis.VisualBasic.UnitTests.Semantics.UnstructuredExceptionHandling.Resume_in_Lambda_1' failed: Microsoft.CodeAnalysis.ThrowingTraceListener+DebugAssertFailureException : Unexpected value 'ResumeStatement' of type 'Microsoft.CodeAnalysis.VisualBasic.SyntaxKind'\r\n\r\n\tThrowingTraceListener.cs(25,0): at Microsoft.CodeAnalysis.ThrowingTraceListener.Fail(String message, String detailMessage)\r\n\tat System.Diagnostics.TraceListener.Fail(String message)\r\n\tat System.Diagnostics.TraceInternal.Fail(String message)\r\n\tat System.Diagnostics.Debug.Assert(Boolean condition, String message)\r\n\tInternalUtilities\\ExceptionUtilities.cs(13,0): at Roslyn.Utilities.ExceptionUtilities.UnexpectedValue(Object o)\r\n\tBinding\\MemberSemanticModel.vb(381,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.IsStandaloneStatement(StatementSyntax node)\r\n\tBinding\\MemberSemanticModel.vb(1905,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.GetBindingRoot(VisualBasicSyntaxNode node)\r\n\tBinding\\MemberSemanticModel.vb(1780,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.GetBoundNodes(VisualBasicSyntaxNode node)\r\n\tBinding\\MemberSemanticModel.vb(142,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.GetUpperBoundNode(VisualBasicSyntaxNode node)\r\n\tBinding\\MemberSemanticModel.vb(200,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.GetBoundNodeSummary(VisualBasicSyntaxNode node)\r\n\tBinding\\MemberSemanticModel.vb(789,0): at Microsoft.CodeAnalysis.VisualBasic.MemberSemanticModel.GetOperationWorker(VisualBasicSyntaxNode node, GetOperationOptions options, CancellationToken cancellationToken)\r\n\tCompilation\\SyntaxTreeSemanticModel.vb(357,0): at Microsoft.CodeAnalysis.VisualBasic.SyntaxTreeSemanticModel.GetOperationWorker(VisualBasicSyntaxNode node, GetOperationOptions options, CancellationToken cancellationToken)\r\n\tCompilation\\SemanticModel.vb(143,0): at Microsoft.CodeAnalysis.VisualBasic.VBSemanticModel.GetOperationCore(SyntaxNode node, CancellationToken cancellationToken)\r\n\tCompilation\\SemanticModel.cs(74,0): at Microsoft.CodeAnalysis.SemanticModel.GetOperation(SyntaxNode node, CancellationToken cancellationToken)\r\n\tCompilationTestUtils.vb(246,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationUtils.WalkOperationTrees(VisualBasicCompilation compilation)\r\n\tCompilationTestUtils.vb(228,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationUtils.CreateCompilationWithReferences(IEnumerable`1 sourceTrees, IEnumerable`1 references, VisualBasicCompilationOptions options, String assemblyName)\r\n\tCompilationTestUtils.vb(199,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationUtils.CreateCompilationWithReferences(XElement sources, IEnumerable`1 references, VisualBasicCompilationOptions options, IEnumerable`1& spans, VisualBasicParseOptions parseOptions)\r\n\tCompilationTestUtils.vb(120,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationUtils.CreateCompilationWithMscorlibAndVBRuntime(XElement sources, MetadataReference[] additionalRefs, VisualBasicCompilationOptions options, VisualBasicParseOptions parseOptions)\r\n\tCompilationTestUtils.vb(125,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.CompilationUtils.CreateCompilationWithMscorlibAndVBRuntime(XElement sources, VisualBasicCompilationOptions options)\r\n\tSemantics\\UnstructuredExceptionHandling.vb(13907,0): at Microsoft.CodeAnalysis.VisualBasic.UnitTests.Semantics.UnstructuredExceptionHandling.Resume_in_Lambda_1()\r\n```"},"comment":{"url":"https://api.github.com/repos/dotnet/roslyn/issues/comments/187358477","html_url":"https://github.com/dotnet/roslyn/issues/9015#issuecomment-187358477","issue_url":"https://api.github.com/repos/dotnet/roslyn/issues/9015","id":187358477,"user":{"login":"genlu","id":788783,"avatar_url":"https://avatars.githubusercontent.com/u/788783?v=3","gravatar_id":"","url":"https://api.github.com/users/genlu","html_url":"https://github.com/genlu","followers_url":"https://api.github.com/users/genlu/followers","following_url":"https://api.github.com/users/genlu/following{/other_user}","gists_url":"https://api.github.com/users/genlu/gists{/gist_id}","starred_url":"https://api.github.com/users/genlu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/genlu/subscriptions","organizations_url":"https://api.github.com/users/genlu/orgs","repos_url":"https://api.github.com/users/genlu/repos","events_url":"https://api.github.com/users/genlu/events{/privacy}","received_events_url":"https://api.github.com/users/genlu/received_events","type":"User","site_admin":false},"created_at":"2016-02-22T20:00:24Z","updated_at":"2016-02-22T20:00:24Z","body":"The syntax kind is `ResumeStatement`."}}