@@ -2702,7 +2702,7 @@ localBinding:
27022702 let mRhs = expr.Range
27032703 let optReturnType = $4
27042704 let bindingBuilder, mBindLhs = $3
2705- let localBindingRange = unionRanges (rhs2 parseState 3 5) mRhs
2705+ let localBindingRange = unionRanges (rhs2 parseState 1 5) mRhs
27062706 let localBindingBuilder =
27072707 (fun attrs vis mLetKwd ->
27082708 let mWhole = unionRanges mLetKwd mRhs
@@ -2711,7 +2711,7 @@ localBinding:
27112711 localBindingRange, localBindingBuilder }
27122712
27132713 | opt_inline opt_mutable bindingPattern opt_topReturnTypeWithTypeConstraints EQUALS error
2714- { let mWhole = rhs2 parseState 3 5
2714+ { let mWhole = rhs2 parseState 1 5
27152715 let mRhs = rhs parseState 5
27162716 let optReturnType = $4
27172717 let bindingBuilder, mBindLhs = $3
@@ -2726,7 +2726,7 @@ localBinding:
27262726 | opt_inline opt_mutable bindingPattern opt_topReturnTypeWithTypeConstraints recover
27272727 { if not $5 then reportParseErrorAt (rhs parseState 5) (FSComp.SR.parsUnexpectedEndOfFileDefinition())
27282728 let optReturnType = $4
2729- let mWhole = match optReturnType with None -> rhs parseState 3 | Some _ -> rhs2 parseState 3 4
2729+ let mWhole = rhs2 parseState 1 ( match optReturnType with None -> 3 | _ -> 4)
27302730 let mRhs = mWhole.EndRange // zero-width range at end of last good token
27312731 let bindingBuilder, mBindLhs = $3
27322732 let localBindingBuilder =
0 commit comments