Factor new AsyncIteratorStateMachineAttribute into TryResolveStateMachineMethod ...
authorStephen Toub <stoub@microsoft.com>
Fri, 7 Dec 2018 18:55:53 +0000 (13:55 -0500)
committerGitHub <noreply@github.com>
Fri, 7 Dec 2018 18:55:53 +0000 (13:55 -0500)
src/System.Private.CoreLib/src/System/Diagnostics/Stacktrace.cs

index 1679531..d173d58 100644 (file)
@@ -514,7 +514,7 @@ namespace System.Diagnostics
                     if (asma.StateMachineType == declaringType)
                     {
                         foundAttribute = true;
-                        foundIteratorAttribute |= asma is IteratorStateMachineAttribute;
+                        foundIteratorAttribute |= asma is IteratorStateMachineAttribute || asma is AsyncIteratorStateMachineAttribute;
                     }
                 }