Skip to content

Commit 4b70865

Browse files
committed
Feedback
1 parent 3a1fdb7 commit 4b70865

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

src/Compilers/VisualBasic/Portable/Lowering/StateMachineRewriter/StateMachineRewriter.StateMachineMethodToClassRewriter.vb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -156,11 +156,7 @@ Namespace Microsoft.CodeAnalysis.VisualBasic
156156
End Structure
157157

158158
Protected Sub AddResumableState(awaitOrYieldReturnSyntax As SyntaxNode, <Out> ByRef stateNumber As Integer, <Out> ByRef resumeLabel As GeneratedLabelSymbol)
159-
AddResumableState(_resumableStateAllocator, awaitOrYieldReturnSyntax, stateNumber, resumeLabel)
160-
End Sub
161-
162-
Protected Sub AddResumableState(allocator As ResumableStateMachineStateAllocator, awaitOrYieldReturnSyntax As SyntaxNode, <Out> ByRef stateNumber As Integer, <Out> ByRef resumeLabel As GeneratedLabelSymbol)
163-
stateNumber = allocator.AllocateState(awaitOrYieldReturnSyntax)
159+
stateNumber = _resumableStateAllocator.AllocateState(awaitOrYieldReturnSyntax)
164160

165161
If _tryBlockSyntaxForNextFinalizerState IsNot Nothing Then
166162
If SlotAllocatorOpt Is Nothing OrElse

0 commit comments

Comments
 (0)