Skip to content

Commit 21bda5b

Browse files
authored
Update FCS to 'Correct range of SynInterfaceImpl' (#2919)
* Update FCS to 'Correct range of SynInterfaceImpl' * Remove unused files * Restore FSStrings.resx * Update test input * Add changelog entry
1 parent f912c0b commit 21bda5b

File tree

13 files changed

+60
-94
lines changed

13 files changed

+60
-94
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 6.1.1 - 2023-06-29
4+
5+
### Changed
6+
* Update FCS to 'Remove unused open in SyntaxTree.fs', commit 9c8b4192966e6554adc5dcc8973f2a23c8fa2722
7+
38
## 6.1.0 - 2023-06-28
49

510
### Fixed

Directory.Build.props

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Some common use cases include:
3939

4040
<!-- Versions -->
4141
<PropertyGroup>
42-
<FCSCommitHash>5b74995780a0e9d24a5db025e68b31e6d910f71f</FCSCommitHash>
42+
<FCSCommitHash>9c8b4192966e6554adc5dcc8973f2a23c8fa2722</FCSCommitHash>
4343
<StreamJsonRpcVersion>2.8.28</StreamJsonRpcVersion>
4444
<FSharpCoreVersion>6.0.1</FSharpCoreVersion>
4545
</PropertyGroup>

build.fsx

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,6 @@ pipeline "Init" {
233233
stage "Download FCS files" {
234234
run (fun _ ->
235235
[| "src/Compiler/FSComp.txt"
236-
"src/Compiler/Interactive/FSIstrings.txt"
237236
"src/Compiler/FSStrings.resx"
238237
"src/Compiler/Utilities/Activity.fsi"
239238
"src/Compiler/Utilities/Activity.fs"
@@ -261,24 +260,16 @@ pipeline "Init" {
261260
"src/Compiler/Utilities/XmlAdapters.fs"
262261
"src/Compiler/Utilities/InternalCollections.fsi"
263262
"src/Compiler/Utilities/InternalCollections.fs"
264-
"src/Compiler/Utilities/QueueList.fsi"
265-
"src/Compiler/Utilities/QueueList.fs"
266263
"src/Compiler/Utilities/lib.fsi"
267264
"src/Compiler/Utilities/lib.fs"
268-
"src/Compiler/Utilities/rational.fsi"
269-
"src/Compiler/Utilities/rational.fs"
270265
"src/Compiler/Utilities/PathMap.fsi"
271266
"src/Compiler/Utilities/PathMap.fs"
272-
"src/Compiler/Utilities/RidHelpers.fs"
273267
"src/Compiler/Utilities/range.fsi"
274268
"src/Compiler/Utilities/range.fs"
275-
"src/Compiler/Facilities/UtilsStrings.txt"
276269
"src/Compiler/Facilities/LanguageFeatures.fsi"
277270
"src/Compiler/Facilities/LanguageFeatures.fs"
278271
"src/Compiler/Facilities/DiagnosticOptions.fsi"
279272
"src/Compiler/Facilities/DiagnosticOptions.fs"
280-
"src/Compiler/Facilities/TextLayoutRender.fsi"
281-
"src/Compiler/Facilities/TextLayoutRender.fs"
282273
"src/Compiler/Facilities/DiagnosticsLogger.fsi"
283274
"src/Compiler/Facilities/DiagnosticsLogger.fs"
284275
"src/Compiler/Facilities/prim-lexing.fsi"
@@ -289,8 +280,6 @@ pipeline "Init" {
289280
"src/Compiler/AbstractIL/ilpars.fsy"
290281
"src/Compiler/AbstractIL/il.fsi"
291282
"src/Compiler/AbstractIL/il.fs"
292-
"src/Compiler/AbstractIL/ilx.fsi"
293-
"src/Compiler/AbstractIL/ilx.fs"
294283
"src/Compiler/AbstractIL/ilascii.fsi"
295284
"src/Compiler/AbstractIL/ilascii.fs"
296285
"src/Compiler/SyntaxTree/PrettyNaming.fsi"

src/Fantomas.Core.Tests/AlignedMultilineBracketStyleTests.fs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1445,9 +1445,9 @@ let z = {|
14451445
14461446
let a = {| // test1
14471447
foo with
1448-
Level = 7
1449-
Square = 9
1450-
// test2
1448+
Level = 7
1449+
Square = 9
1450+
// test2
14511451
|}
14521452
"""
14531453
config

src/Fantomas.Core.Tests/CastTests.fs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -143,9 +143,9 @@ module Foo =
143143
let foo =
144144
{ new IDisposable with
145145
member __.Dispose () =
146-
do ()
146+
do ()
147147
148-
upcast ()
148+
upcast ()
149149
}
150150
"""
151151
{ config with
@@ -179,9 +179,9 @@ module Foo =
179179
let foo =
180180
{ new IDisposable with
181181
member __.Dispose () =
182-
do ()
182+
do ()
183183
184-
downcast ()
184+
downcast ()
185185
}
186186
"""
187187
{ config with

src/Fantomas.Core.Tests/CommentTests.fs

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -589,17 +589,18 @@ printfn "hello world"
589589
let ``preserve block comment after record, 516`` () =
590590
formatSourceString
591591
false
592-
"""module TriviaModule =
592+
"""
593+
module TriviaModule =
593594

594-
let env = "DEBUG"
595+
let env = "DEBUG"
595596

596-
type Config = {
597-
Name: string
598-
Level: int
599-
}
597+
type Config = {
598+
Name: string
599+
Level: int
600+
}
600601

601-
let meh = { // this comment right
602-
Name = "FOO"; Level = 78 }
602+
let meh = { // this comment right
603+
Name = "FOO"; Level = 78 }
603604

604605
(* ending with block comment *)
605606
"""

src/Fantomas.Core.Tests/CrampedMultilineBracketStyleTests.fs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2247,9 +2247,9 @@ let z = {|
22472247

22482248
let a = {| // test1
22492249
foo with
2250-
Level = 7
2251-
Square = 9
2252-
// test2
2250+
Level = 7
2251+
Square = 9
2252+
// test2
22532253
|}
22542254
"""
22552255
config
@@ -2355,12 +2355,12 @@ let ``multiline field body expression where indent_size = 2, update record`` ()
23552355
let handlerFormattedRangeDoc (lines: NamedText, formatted: string, range: FormatSelectionRange) =
23562356
let range =
23572357
{ x with
2358-
Start =
2359-
{ Line = range.StartLine - 1
2360-
Character = range.StartColumn }
2361-
End =
2362-
{ Line = range.EndLine - 1
2363-
Character = range.EndColumn } }
2358+
Start =
2359+
{ Line = range.StartLine - 1
2360+
Character = range.StartColumn }
2361+
End =
2362+
{ Line = range.EndLine - 1
2363+
Character = range.EndColumn } }
23642364

23652365
[| { Range = range; NewText = formatted } |]
23662366
"""

src/Fantomas.Core.Tests/OperatorTests.fs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1355,7 +1355,7 @@ let ``add space around binary operators in units of measure, 2207`` () =
13551355
type Test =
13561356
{ WorkHoursPerWeek: uint<hr*(staff weeks)> }
13571357
static member create =
1358-
{ WorkHoursPerWeek = 40u<hr*(staff weeks)> }
1358+
{ WorkHoursPerWeek = 40u<hr*(staff weeks)> }
13591359
"""
13601360
{ config with
13611361
NewlineBetweenTypeDefinitionAndMembers = false }

src/Fantomas.Core.Tests/Stroustrup/ExperimentalElmishTests.fs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -163,11 +163,12 @@ let view =
163163
let ``div with multiple attributes and children`` () =
164164
formatSourceString
165165
false
166-
"""let d =
167-
div [ ClassName "container"; OnClick (fun _ -> printfn "meh") ] [
168-
span [] [str "foo"]
169-
code [] [str "bar"]
170-
]
166+
"""
167+
let d =
168+
div [ ClassName "container"; OnClick (fun _ -> printfn "meh") ] [
169+
span [] [str "foo"]
170+
code [] [str "bar"]
171+
]
171172
"""
172173
{ config with MaxArrayOrListWidth = 40 }
173174
|> prepend newline

src/Fantomas.Core.Tests/TypeDeclarationTests.fs

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1605,10 +1605,11 @@ type SomeType() =
16051605
let ``split multiple parameters over multiple lines`` () =
16061606
formatSourceString
16071607
false
1608-
"""type SomeType =
1608+
"""
1609+
type SomeType =
16091610
static member SomeMember (looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong1: string) (looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong2: string) : string =
1610-
printfn "a"
1611-
"b"
1611+
printfn "a"
1612+
"b"
16121613
"""
16131614
config
16141615
|> prepend newline
@@ -1628,10 +1629,11 @@ type SomeType =
16281629
let ``split multiple parameters over multiple lines and have correct indentation afterwards`` () =
16291630
formatSourceString
16301631
false
1631-
"""type SomeType =
1632+
"""
1633+
type SomeType =
16321634
static member SomeMember (looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong1: string) (looooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong2: string) : string =
1633-
printfn "a"
1634-
"b"
1635+
printfn "a"
1636+
"b"
16351637
16361638
static member SomeOtherMember () = printfn "c"
16371639
"""
@@ -1656,10 +1658,11 @@ type SomeType =
16561658
let ``member with one long parameter and return type, 850`` () =
16571659
formatSourceString
16581660
false
1659-
"""type SomeType =
1661+
"""
1662+
type SomeType =
16601663
static member SomeMember loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong1 : string =
1661-
printfn "a"
1662-
"b"
1664+
printfn "a"
1665+
"b"
16631666
"""
16641667
config
16651668
|> prepend newline
@@ -1678,10 +1681,11 @@ type SomeType =
16781681
let ``member with one long parameter and no return type, 850`` () =
16791682
formatSourceString
16801683
false
1681-
"""type SomeType =
1684+
"""
1685+
type SomeType =
16821686
static member SomeMember loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong1 =
1683-
printfn "a"
1684-
"b"
1687+
printfn "a"
1688+
"b"
16851689
"""
16861690
config
16871691
|> prepend newline
@@ -1700,10 +1704,11 @@ type SomeType =
17001704
let ``multiple members with one long parameter`` () =
17011705
formatSourceString
17021706
false
1703-
"""type SomeType =
1707+
"""
1708+
type SomeType =
17041709
static member SomeMember loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong1 =
1705-
printfn "a"
1706-
"b"
1710+
printfn "a"
1711+
"b"
17071712
17081713
static member Serialize (loooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooooong2: SomeType) = Encode.string v.Meh
17091714
static member Deserialize (loooooooooooooooooooooooooooooooooooooooooooooooooooooonnnnnnnnnnnnnnnnnnnnngggggggggggJsonVaaaaalueeeeeeeeeeeeeeee) : SomeType = Decode.SomeType loooooooooooooooooooooooooooooooooooooooooooooooooooooonnnnnnnnnnnnnnnnnnnnngggggggggggJsonVaaaaalueeeeeeeeeeeeeeee

0 commit comments

Comments
 (0)