Skip to content

Commit 596202b

Browse files
committed
document isFromSource
1 parent 121a373 commit 596202b

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

src/Compiler/Checking/CheckRecordSyntaxHelpers.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ let BindOriginalRecdExpr (withExpr: SynExpr * BlockSeparator) mkRecdExpr =
183183
SynExpr.LetOrUse(
184184
isRecursive = false,
185185
isUse = false,
186-
isFromSource = false,
186+
isFromSource = false, // compiler generated during desugaring
187187
isComputed = false,
188188
bindings = [ binding ],
189189
body = mkRecdExpr (Some withExpr),

src/Compiler/Checking/Expressions/CheckComputationExpressions.fs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ let rec TryTranslateComputationExpression
14181418
SynExpr.LetOrUse(
14191419
isRecursive = false,
14201420
isUse = false,
1421-
isFromSource = true,
1421+
isFromSource = false, // compiler generated during desugaring
14221422
isComputed = true,
14231423
bindings = [ binding ],
14241424
body = setCondExpr,
@@ -1444,7 +1444,7 @@ let rec TryTranslateComputationExpression
14441444
SynExpr.LetOrUse(
14451445
isRecursive = false,
14461446
isUse = false,
1447-
isFromSource = false,
1447+
isFromSource = false, // compiler generated during desugaring
14481448
isComputed = false,
14491449
bindings = [ condBinding ],
14501450
body = whileExpr,
@@ -1472,7 +1472,7 @@ let rec TryTranslateComputationExpression
14721472
SynExpr.LetOrUse(
14731473
isRecursive = false,
14741474
isUse = false,
1475-
isFromSource = true,
1475+
isFromSource = false, // compiler generated during desugaring
14761476
isComputed = true,
14771477
bindings = [ binding ],
14781478
body = body,
@@ -1692,7 +1692,7 @@ let rec TryTranslateComputationExpression
16921692
(SynExpr.LetOrUse(
16931693
isRecursive = false,
16941694
isUse = false,
1695-
isFromSource = true,
1695+
isFromSource = false, // compiler generated during desugaring
16961696
isComputed = true,
16971697
bindings = [ binding ],
16981698
body = innerComp2,
@@ -2467,7 +2467,7 @@ and ConsumeCustomOpClauses
24672467
SynExpr.LetOrUse(
24682468
isRecursive = false,
24692469
isUse = false,
2470-
isFromSource = false,
2470+
isFromSource = false, // compiler generated during desugaring
24712471
isComputed = true,
24722472
bindings = [ binding ],
24732473
body = contExpr,
@@ -2524,7 +2524,7 @@ and ConsumeCustomOpClauses
25242524
SynExpr.LetOrUse(
25252525
isRecursive = false,
25262526
isUse = false,
2527-
isFromSource = false,
2527+
isFromSource = false, // compiler generated during desugaring
25282528
isComputed = true,
25292529
bindings = [ binding ],
25302530
body = compClausesExpr,
@@ -2804,7 +2804,7 @@ and TranslateComputationExpression (ceenv: ComputationExpressionContext<'a>) fir
28042804
SynExpr.LetOrUse(
28052805
isRecursive = false,
28062806
isUse = false,
2807-
isFromSource = false,
2807+
isFromSource = false, // compiler generated during desugaring
28082808
isComputed = true,
28092809
bindings = [ binding ],
28102810
body = bodyExpr,

0 commit comments

Comments
 (0)