forked from dotnet/fsharp
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Indent internal records type definitions. (dotnet#13798)
- Loading branch information
Showing
9 changed files
with
90 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 1 addition & 11 deletions
12
tests/FSharp.Compiler.ComponentTests/Signatures/ModuleOrNamespaceTests.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
tests/FSharp.Compiler.ComponentTests/Signatures/RecordTests.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
module FSharp.Compiler.ComponentTests.Signatures.RecordTests | ||
|
||
open Xunit | ||
open FsUnit | ||
open FSharp.Test.Compiler | ||
open FSharp.Compiler.ComponentTests.Signatures.TestHelpers | ||
|
||
[<Fact>] | ||
let ``Internal record with xml comment`` () = | ||
FSharp | ||
""" | ||
module SignatureFileGeneration.MyModule | ||
type PullActions = | ||
internal | ||
{ | ||
/// Any repo which doesn't have a master branch will have one created for it. | ||
Log : int | ||
} | ||
""" | ||
|> printSignaturesWith 80 | ||
|> should | ||
equal | ||
""" | ||
module SignatureFileGeneration.MyModule | ||
type PullActions = | ||
internal | ||
{ | ||
/// Any repo which doesn't have a master branch will have one created for it. | ||
Log: int | ||
}""" |
14 changes: 14 additions & 0 deletions
14
tests/FSharp.Compiler.ComponentTests/Signatures/TestHelpers.fs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module FSharp.Compiler.ComponentTests.Signatures.TestHelpers | ||
|
||
open System | ||
open FsUnit | ||
|
||
let prependNewline v = String.Concat("\n", v) | ||
|
||
let equal x = | ||
let x = | ||
match box x with | ||
| :? String as s -> s.Replace("\r\n", "\n") |> box | ||
| x -> x | ||
|
||
equal x |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters