// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
@REM Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.
{Diagnostic(RudeEditKind.UpdatingStateMachineMethodMissingAttribute,"Shared Iterator Function F()","System.Runtime.CompilerServices.IteratorStateMachineAttribute")})
EndSub
<Fact>
PublicSubMissingIteratorStateMachineAttribute2()
Dimsrc1="
Imports System.Collections.Generic
Class C
Shared Function F() As IEnumerable(Of Integer)
Return Nothing
End Function
End Class
"
Dimsrc2="
Imports System.Collections.Generic
Class C
Shared Iterator Function F() As IEnumerable(Of Integer)
{Diagnostic(RudeEditKind.UpdatingStateMachineMethodMissingAttribute,"Shared Async Function F()","System.Runtime.CompilerServices.AsyncStateMachineAttribute")})
// TODO: move message to resources https://github.com/dotnet/roslyn/issues/9196
{GetDescriptorPair(RudeEditKind.UpdatingStateMachineMethodMissingAttribute,"Attribute '{0}' is missing. Updating an async method or an iterator will prevent the debug session from continuing.")},