-
Notifications
You must be signed in to change notification settings - Fork 73
FSharp.Compiler.Service 43.10.100 #770
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
90354c9
ed3936c
3fb73dc
83a8f32
aaba91d
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,7 +45,7 @@ module ContextBuilder = | |
| | (SynExpr.Record (_, _, fields, _)) -> | ||
| let newAcc = fields :: acc | ||
| fields | ||
| |> List.fold (fun currentAcc (SynExprRecordField(_, _, exprOpt, _)) -> | ||
| |> List.fold (fun currentAcc (SynExprRecordField(_, _, exprOpt, _, _)) -> | ||
| match exprOpt with | ||
| | Some expr -> collectRecordFieldsInner currentAcc expr | ||
| | None -> currentAcc | ||
|
|
@@ -84,7 +84,7 @@ module ContextBuilder = | |
| collectRecordFields record | ||
| |> List.collect (fun recordFields -> | ||
| recordFields | ||
| |> List.map (fun (SynExprRecordField((fieldName, _), _, _, _)) -> fieldName.Range) | ||
| |> List.map (fun (SynExprRecordField((fieldName, _), _, _, _, _)) -> fieldName.Range) | ||
| |> firstRangePerLine | ||
| |> createAbsoluteAndOffsetOverridesBasedOnFirst) | ||
| | Expression (SynExpr.ArrayOrListComputed(expr=(SynExpr.ComputationExpr(expr=expr)))) -> | ||
|
|
@@ -131,7 +131,14 @@ module ContextBuilder = | |
| |> createAbsoluteAndOffsetOverridesBasedOnFirst | ||
| | Pattern (SynPat.Record (fieldPats=fieldPats)) -> | ||
| fieldPats | ||
| |> List.map (fun ((_, fieldIdent), _, _) -> fieldIdent.idRange) | ||
| |> List.map (fun patPairField -> patPairField.Range) | ||
| // @@TODO@@ Do we need to look at the ranges inside FieldName here? | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Any comments on this one?
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure TBH, but if unit tests pass without looking at the ranges, then I wouldn't oppose merging this PR before we investigate this. That said, if you can come up with a unit test that can exercise this code, then I'd sleep better. BTW, I'm aiming to merge this PR when FCS 43.10.103 gets released (because that version will contain a fix which now is only in their master branch).
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ok. |
||
| //let fieldIdent = | ||
| // match patPairField.FieldName.LongIdent with | ||
| // | [id] -> id | ||
| // | lid -> List.last lid | ||
| // | ||
| //fieldIdent.idRange) | ||
| |> firstRangePerLine | ||
| |> createAbsoluteAndOffsetOverridesBasedOnFirst | ||
| | _ -> List.Empty | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Change based on the FCS release notes at https://github.com/dotnet/fsharp/blob/c1b13e3d4542d1de7439b34de00384934365aeb9/docs/release-notes/.FSharp.Compiler.Service/10.0.100.md?plain=1#L63