Skip to content

Commit f9bc3a6

Browse files
committed
Add tracing point for async generator
1 parent 9e14f07 commit f9bc3a6

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/core/IronPython/Compiler/Ast/FunctionDefinition.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,7 @@ private LightLambdaExpression CreateFunctionLambda() {
740740
var throwSlot = AsyncThrowSlot;
741741
body = MSAst.Expression.Block(
742742
[cts, excBox, sendSlot, throwSlot],
743+
MakeFunctionEntrySequencePoint(StartIndex),
743744
MSAst.Expression.Assign(cts, MSAst.Expression.New(typeof(CancellationTokenSource))),
744745
MSAst.Expression.Assign(excBox, MSAst.Expression.New(typeof(StrongBox<Exception>))),
745746
MSAst.Expression.Assign(sendSlot, MSAst.Expression.New(typeof(StrongBox<object>))),

0 commit comments

Comments
 (0)