Skip to content

Commit

Permalink
Update FCS (#2385)
Browse files Browse the repository at this point in the history
* Update FCS to 'Use SynLongIdent in SynOpenDeclTarget.ModuleOrNamespace', c18989124a92cc26a736d89137254f1ca84d4880

* Process changes of FCS update.

* Print trivia above type keyword in signature types.
  • Loading branch information
nojaf authored Jul 26, 2022
1 parent f668062 commit f9eaadc
Show file tree
Hide file tree
Showing 11 changed files with 297 additions and 214 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
# Changelog

## [Unreleased]
## [5.0.0-beta-003] - 2022-07-26

### Changed
* Show a better error message when the folder does not exist. [#2341](https://github.com/fsprojects/fantomas/issues/2341)
* Update FCS to 'Use SynLongIdent in SynOpenDeclTarget.ModuleOrNamespace', commit c18989124a92cc26a736d89137254f1ca84d4880

### Fixed
* global keyword is escaped with single-backticks when used as part of a namespace/module open. [#2274](https://github.com/fsprojects/fantomas/issues/2274)
* global namespace should not be escaped. [#2366](https://github.com/fsprojects/fantomas/issues/2366)
* Trivia between xml doc and type not restored. [#2143](https://github.com/fsprojects/fantomas/issues/2143)

## [5.0.0-beta-002] - 2022-07-19

Expand Down
180 changes: 90 additions & 90 deletions paket.dependencies

Large diffs are not rendered by default.

180 changes: 90 additions & 90 deletions paket.lock
Original file line number Diff line number Diff line change
Expand Up @@ -172,96 +172,96 @@ GITHUB
remote: fsprojects/fantomas
src/Fantomas/CodePrinter.fs (829faa6ba834f99afed9b4434b3a1680536474b2)
remote: dotnet/fsharp
src/Compiler/AbstractIL/il.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/AbstractIL/il.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/AbstractIL/ilascii.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/AbstractIL/ilascii.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/AbstractIL/illex.fsl (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/AbstractIL/illex.fsl (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/AbstractIL/ilpars.fsy (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/AbstractIL/ilpars.fsy (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/AbstractIL/ilx.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/AbstractIL/ilx.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Checking/CheckDeclarations.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Facilities/DiagnosticOptions.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Facilities/DiagnosticOptions.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Facilities/DiagnosticsLogger.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Facilities/DiagnosticsLogger.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Facilities/LanguageFeatures.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Facilities/LanguageFeatures.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Facilities/Logger.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Facilities/Logger.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Facilities/prim-lexing.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Facilities/prim-lexing.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Facilities/prim-parsing.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Facilities/prim-parsing.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Facilities/TextLayoutRender.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Facilities/TextLayoutRender.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Facilities/UtilsStrings.txt (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/FSComp.txt (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/FSStrings.resx (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Interactive/FSIstrings.txt (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/lex.fsl (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/lex.fsl (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/pars.fsy (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/pars.fsy (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/pplex.fsl (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/pplex.fsl (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/pppars.fsy (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/pppars.fsy (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/LexFilter.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/LexFilter.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/LexHelpers.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/LexHelpers.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/ParseHelpers.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/ParseHelpers.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/PrettyNaming.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/PrettyNaming.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/SyntaxTree.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/SyntaxTree.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/SyntaxTreeOps.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/SyntaxTreeOps.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/SyntaxTrivia.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/SyntaxTrivia.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/UnicodeLexing.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/UnicodeLexing.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/XmlDoc.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/SyntaxTree/XmlDoc.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/FileSystem.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/FileSystem.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/HashMultiMap.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/HashMultiMap.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/ildiag.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/ildiag.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/illib.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/illib.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/InternalCollections.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/InternalCollections.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/lib.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/lib.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/PathMap.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/PathMap.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/QueueList.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/QueueList.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/range.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/range.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/rational.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/rational.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/ResizeArray.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/ResizeArray.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/RidHelpers.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/sformat.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/sformat.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/sr.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/sr.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/TaggedCollections.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/TaggedCollections.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/XmlAdapters.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/XmlAdapters.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/zmap.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/zmap.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/zset.fs (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/Utilities/zset.fsi (267d0a57f217df756d9ac33c6aa4ffbfe3b53097)
src/Compiler/AbstractIL/il.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/AbstractIL/il.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/AbstractIL/ilascii.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/AbstractIL/ilascii.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/AbstractIL/illex.fsl (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/AbstractIL/illex.fsl (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/AbstractIL/ilpars.fsy (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/AbstractIL/ilpars.fsy (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/AbstractIL/ilx.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/AbstractIL/ilx.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Checking/CheckDeclarations.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Facilities/DiagnosticOptions.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Facilities/DiagnosticOptions.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Facilities/DiagnosticsLogger.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Facilities/DiagnosticsLogger.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Facilities/LanguageFeatures.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Facilities/LanguageFeatures.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Facilities/Logger.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Facilities/Logger.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Facilities/prim-lexing.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Facilities/prim-lexing.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Facilities/prim-parsing.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Facilities/prim-parsing.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Facilities/TextLayoutRender.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Facilities/TextLayoutRender.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Facilities/UtilsStrings.txt (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/FSComp.txt (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/FSStrings.resx (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Interactive/FSIstrings.txt (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/lex.fsl (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/lex.fsl (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/pars.fsy (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/pars.fsy (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/pplex.fsl (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/pplex.fsl (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/pppars.fsy (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/pppars.fsy (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/LexFilter.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/LexFilter.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/LexHelpers.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/LexHelpers.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/ParseHelpers.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/ParseHelpers.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/PrettyNaming.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/PrettyNaming.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/SyntaxTree.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/SyntaxTree.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/SyntaxTreeOps.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/SyntaxTreeOps.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/SyntaxTrivia.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/SyntaxTrivia.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/UnicodeLexing.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/UnicodeLexing.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/XmlDoc.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/SyntaxTree/XmlDoc.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/FileSystem.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/FileSystem.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/HashMultiMap.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/HashMultiMap.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/ildiag.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/ildiag.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/illib.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/illib.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/InternalCollections.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/InternalCollections.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/lib.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/lib.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/PathMap.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/PathMap.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/QueueList.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/QueueList.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/range.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/range.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/rational.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/rational.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/ResizeArray.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/ResizeArray.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/RidHelpers.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/sformat.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/sformat.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/sr.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/sr.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/TaggedCollections.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/TaggedCollections.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/XmlAdapters.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/XmlAdapters.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/zmap.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/zmap.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/zset.fs (c18989124a92cc26a736d89137254f1ca84d4880)
src/Compiler/Utilities/zset.fsi (c18989124a92cc26a736d89137254f1ca84d4880)
GROUP build
STORAGE: NONE
NUGET
Expand Down
40 changes: 40 additions & 0 deletions src/Fantomas.Core.Tests/ModuleTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -1009,3 +1009,43 @@ open FSharp.Compiler.CodeAnalysis
module internal SynExprAppLocationsImpl =
let a = 42
"""

[<Test>]
let ``global keyword in open statement, 2366`` () =
formatSourceString
false
"""
namespace Ionide.VSCode.FSharp
open global.Node
"""
config
|> prepend newline
|> should
equal
"""
namespace Ionide.VSCode.FSharp
open global.Node
"""

[<Test>]
let ``global keyword in open statement, signature file`` () =
formatSourceString
true
"""
[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]
module Ionide.VSCode.FSharp
open global.Node.ChildProcess
"""
config
|> prepend newline
|> should
equal
"""
[<CompilationRepresentation(CompilationRepresentationFlags.ModuleSuffix)>]
module Ionide.VSCode.FSharp
open global.Node.ChildProcess
"""
25 changes: 25 additions & 0 deletions src/Fantomas.Core.Tests/SignatureTests.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2112,3 +2112,28 @@ type DiagnosticsLogger with
member ErrorRecoveryNoRange: exn: exn -> unit
"""

[<Test>]
let ``trivia between xml comment and type keyword, 2143`` () =
formatSourceString
true
"""
/// Represents a line number when using zero-based line counting (used by Visual Studio)
// #if CHECK_LINE0_TYPES
// #else
type Line0 = int
// #endif
"""
config
|> prepend newline
|> should
equal
"""
/// Represents a line number when using zero-based line counting (used by Visual Studio)
// #if CHECK_LINE0_TYPES
// #else
type Line0 = int
// #endif
"""
4 changes: 4 additions & 0 deletions src/Fantomas.Core/AstExtensions.fsi
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ type SynModuleOrNamespace with

member FullRange: range

type SynModuleOrNamespaceSig with

member FullRange: range

type SynIdent with

member FullRange: range
Expand Down
Loading

0 comments on commit f9eaadc

Please sign in to comment.