From 1dddcce685bb04e0bfab433a4f9d4a3b9617e1ea Mon Sep 17 00:00:00 2001 From: sakno Date: Sat, 17 Feb 2024 11:30:37 +0200 Subject: [PATCH] Code cleanup --- .../Runtime/CompilerServices/VisitorContext.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/DotNext.Metaprogramming/Runtime/CompilerServices/VisitorContext.cs b/src/DotNext.Metaprogramming/Runtime/CompilerServices/VisitorContext.cs index 7b08b9620..005a4e685 100644 --- a/src/DotNext.Metaprogramming/Runtime/CompilerServices/VisitorContext.cs +++ b/src/DotNext.Metaprogramming/Runtime/CompilerServices/VisitorContext.cs @@ -90,7 +90,8 @@ private void ContainsAwait() foreach (var attr in attributes) { if (ReferenceEquals(ExpressionAttributes.Get(CurrentStatement), attr)) - return; + break; + attr.ContainsAwait = true; } }