@@ -81,7 +81,7 @@ let inline arbKeySelectors m =
8181// Flag that a debug point should get emitted prior to both the evaluation of 'rhsExpr' and the call to Using
8282let inline addBindDebugPoint spBind e =
8383 match spBind with
84- | DebugPointAtBinding.Yes m -> SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes m , false , e)
84+ | DebugPointAtBinding.Yes m -> SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes( false , m ) , false , e)
8585 | _ -> e
8686
8787let inline mkSynDelay2 ( e : SynExpr ) = mkSynDelay ( e.Range.MakeSynthetic()) e
@@ -1345,7 +1345,7 @@ let rec TryTranslateComputationExpression
13451345
13461346 let forCall =
13471347 match spFor with
1348- | DebugPointAtFor.Yes _ -> SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes mFor, false , forCall)
1348+ | DebugPointAtFor.Yes _ -> SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes( false , mFor) , false , forCall)
13491349 | DebugPointAtFor.No -> forCall
13501350
13511351 translatedCtxt forCall)
@@ -1389,7 +1389,7 @@ let rec TryTranslateComputationExpression
13891389 // 'while' is hit just before each time the guard is called
13901390 let guardExpr =
13911391 match spWhile with
1392- | DebugPointAtWhile.Yes _ -> SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes mWhile, false , guardExpr)
1392+ | DebugPointAtWhile.Yes _ -> SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes( false , mWhile) , false , guardExpr)
13931393 | DebugPointAtWhile.No -> guardExpr
13941394
13951395 Some(
@@ -1419,7 +1419,7 @@ let rec TryTranslateComputationExpression
14191419 // 'while!' is hit just before each time the guard is called
14201420 let guardExpr =
14211421 match spWhile with
1422- | DebugPointAtWhile.Yes _ -> SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes mWhile, false , guardExpr)
1422+ | DebugPointAtWhile.Yes _ -> SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes( false , mWhile) , false , guardExpr)
14231423 | DebugPointAtWhile.No -> guardExpr
14241424
14251425 let rewrittenWhileExpr =
@@ -1557,7 +1557,7 @@ let rec TryTranslateComputationExpression
15571557 // Put down a debug point for the 'finally'
15581558 let unwindExpr2 =
15591559 match spFinally with
1560- | DebugPointAtFinally.Yes _ -> SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes mFinally, true , unwindExpr)
1560+ | DebugPointAtFinally.Yes _ -> SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes( false , mFinally) , true , unwindExpr)
15611561 | DebugPointAtFinally.No -> unwindExpr
15621562
15631563 if ceenv.isQuery then
@@ -1571,7 +1571,7 @@ let rec TryTranslateComputationExpression
15711571
15721572 let innerExpr =
15731573 match spTry with
1574- | DebugPointAtTry.Yes _ -> SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes mTry, true , innerExpr)
1574+ | DebugPointAtTry.Yes _ -> SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes( false , mTry) , true , innerExpr)
15751575 | _ -> innerExpr
15761576
15771577 Some(
@@ -2308,7 +2308,7 @@ let rec TryTranslateComputationExpression
23082308
23092309 let innerExpr =
23102310 match spTry with
2311- | DebugPointAtTry.Yes _ -> SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes mTry, true , innerExpr)
2311+ | DebugPointAtTry.Yes _ -> SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes( false , mTry) , true , innerExpr)
23122312 | _ -> innerExpr
23132313
23142314 let callExpr =
@@ -2345,7 +2345,7 @@ let rec TryTranslateComputationExpression
23452345 if IsControlFlowExpression synYieldExpr then
23462346 yieldFromCall
23472347 else
2348- SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes mFull, false , yieldFromCall)
2348+ SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes( false , mFull) , false , yieldFromCall)
23492349
23502350 Some( translatedCtxt yieldFromCall)
23512351
@@ -2374,7 +2374,7 @@ let rec TryTranslateComputationExpression
23742374 if IsControlFlowExpression synReturnExpr then
23752375 returnFromCall
23762376 else
2377- SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes mFull, false , returnFromCall)
2377+ SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes( false , mFull) , false , returnFromCall)
23782378
23792379 Some( translatedCtxt returnFromCall)
23802380
@@ -2393,7 +2393,7 @@ let rec TryTranslateComputationExpression
23932393 if IsControlFlowExpression synYieldOrReturnExpr then
23942394 yieldOrReturnCall
23952395 else
2396- SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes mFull, false , yieldOrReturnCall)
2396+ SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes( false , mFull) , false , yieldOrReturnCall)
23972397
23982398 Some( translatedCtxt yieldOrReturnCall)
23992399
@@ -2704,7 +2704,9 @@ and TranslateComputationExpressionBind
27042704and convertSimpleReturnToExpr ( ceenv : ComputationExpressionContext < 'a >) comp varSpace innerComp =
27052705 match innerComp with
27062706 | SynExpr.YieldOrReturn(( false , _), returnExpr, m, _) ->
2707- let returnExpr = SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes m, false , returnExpr)
2707+ let returnExpr =
2708+ SynExpr.DebugPoint( DebugPointAtLeafExpr.Yes( false , m), false , returnExpr)
2709+
27082710 Some( returnExpr, None)
27092711
27102712 | SynExpr.Match( spMatch, expr, clauses, m, trivia) ->
0 commit comments