Skip to content
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

Update fantomas to 6.1.0-alpha-003 #38

Merged
merged 2 commits into from
Jun 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Directory.Packages.props
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</PropertyGroup>

<ItemGroup>
<PackageVersion Include="Fantomas.Core" Version="[6.0.0]" />
<PackageVersion Include="Fantomas.Core" Version="[6.1.0-alpha-003]" />
<PackageVersion Include="FSharp.Core" Version="7.0.200" />
<PackageVersion Include="Microsoft.NET.Test.Sdk" Version="17.3.2" />
<PackageVersion Include="Microsoft.SourceLink.GitHub" Version="1.1.1" />
Expand All @@ -15,4 +15,4 @@
<PackageVersion Include="coverlet.collector" Version="3.1.2" />
</ItemGroup>

</Project>
</Project>
2 changes: 1 addition & 1 deletion docs/index.fsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Let's take a look at an AST example in Fantomas:
#r "../src/Fabulous.AST/bin/Release/netstandard2.1/publish/Fantomas.FCS.dll"
#r "../src/Fabulous.AST/bin/Release/netstandard2.1/publish/Fantomas.Core.dll"

open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fantomas.Core
open Fantomas.Core.SyntaxOak

Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST.Tests/ControlFlow/ControlFlow.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST.Tests.ControlFlow

open NUnit.Framework
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST
open Fabulous.AST.Tests

Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST.Tests/ControlFlow/IfThen.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Fabulous.AST.Tests.ControlFlow

open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST
open Fabulous.AST.Tests

Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST.Tests/ControlFlow/IfThenElif.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Fabulous.AST.Tests.ControlFlow

open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST
open Fabulous.AST.Tests

Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST.Tests/ControlFlow/IfThenElse.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Fabulous.AST.Tests.ControlFlow

open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST
open Fabulous.AST.Tests

Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST.Tests/LetBindings/Function.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Fabulous.AST.Tests.LetBindings

open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST
open Fabulous.AST.Tests

Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST.Tests/LetBindings/Literal.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Fabulous.AST.Tests.LetBindings

open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fantomas.Core
open Fantomas.Core.SyntaxOak
open NUnit.Framework
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST.Tests/LetBindings/Value.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Fabulous.AST.Tests.LetBindings

open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fantomas.Core
open Fantomas.Core.SyntaxOak
open NUnit.Framework
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST.Tests/Namespaces/Module.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST.Tests.Namespaces

open Fabulous.AST.Tests
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fantomas.Core
open Fantomas.Core.SyntaxOak
open NUnit.Framework
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST.Tests/Namespaces/Namespace.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST.Tests.Namespaces

open Fabulous.AST.Tests
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fantomas.Core
open Fantomas.Core.SyntaxOak
open NUnit.Framework
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST.Tests/Namespaces/NestedModule.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST.Tests.Namespaces

open Fabulous.AST.Tests
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fantomas.Core
open Fantomas.Core.SyntaxOak
open NUnit.Framework
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST.Tests/OpenDirectives/Open.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST.Tests.OpenDirectives

open Fabulous.AST.Tests
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fantomas.Core.SyntaxOak
open NUnit.Framework

Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST.Tests/OpenDirectives/OpenType.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST.Tests.OpenDirectives

open Fabulous.AST.Tests
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fantomas.Core.SyntaxOak
open NUnit.Framework

Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST.Tests/TypeDefinitions/Abbrev.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST.Tests.TypeDefinitions

open Fabulous.AST.Tests
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fantomas.Core.SyntaxOak
open NUnit.Framework

Expand Down
4 changes: 2 additions & 2 deletions src/Fabulous.AST.Tests/TypeDefinitions/Class.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Fabulous.AST.Tests.TypeDefinitions
namespace Fabulous.AST.Tests.TypeDefinitions

open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.Tests
open Fantomas.Core.SyntaxOak
open NUnit.Framework
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST.Tests/TypeDefinitions/Enum.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST.Tests.TypeDefinitions

open Fabulous.AST.Tests
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fantomas.Core.SyntaxOak
open NUnit.Framework

Expand Down
4 changes: 2 additions & 2 deletions src/Fabulous.AST.Tests/TypeDefinitions/Record.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Fabulous.AST.Tests.TypeDefinitions
namespace Fabulous.AST.Tests.TypeDefinitions

open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.Tests
open Fantomas.Core.SyntaxOak
open NUnit.Framework
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST.Tests/TypeDefinitions/Union.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST.Tests.TypeDefinitions

open Fabulous.AST.Tests
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fantomas.Core.SyntaxOak
open NUnit.Framework

Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Fabulous.AST uses [Fantomas](https://fsprojects.github.io/fantomas/docs/end-user
Let's take a look at an AST example in Fantomas:

```fsharp
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fantomas.Core.SyntaxOak

let implementationSyntaxTree =
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/Call.fs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ namespace Fabulous.AST

open System
open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fantomas.Core.SyntaxOak

Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/Common.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST

open System
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fantomas.Core.SyntaxOak

type AccessControl =
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/Condition.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Fabulous.AST

open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections.StackList
open Fantomas.Core.SyntaxOak

Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/ControlFlow/IfThen.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fabulous.AST.StackAllocatedCollections.StackList
open Fantomas.Core.SyntaxOak
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/ControlFlow/IfThenElif.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fabulous.AST.StackAllocatedCollections.StackList
open Fantomas.Core.SyntaxOak
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/ControlFlow/IfThenElse.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fabulous.AST.StackAllocatedCollections.StackList
open Fantomas.Core.SyntaxOak
Expand Down
5 changes: 3 additions & 2 deletions src/Fabulous.AST/Widgets/LetBindings/Function.fs
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fabulous.AST.StackAllocatedCollections
open Fabulous.AST.StackAllocatedCollections.StackList
open Fantomas.Core.SyntaxOak

open Fantomas.FCS
open Fantomas.FCS.Text
open Fantomas.FCS.Syntax
open type Fabulous.AST.Ast


Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/LetBindings/Literal.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fantomas.Core.SyntaxOak

Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/LetBindings/Value.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fantomas.Core.SyntaxOak

Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/Match.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fabulous.AST.StackAllocatedCollections.StackList
open Fantomas.Core.SyntaxOak
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/MatchClause.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Fabulous.AST

open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections.StackList
open Fantomas.Core.SyntaxOak

Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/Namespaces/AnonymousModule.fs
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace Fabulous.AST

open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fantomas.Core.SyntaxOak

type AnonymousModuleNode(decls) =
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/Namespaces/Module.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fabulous.AST.StackAllocatedCollections.StackList
open Fantomas.Core.SyntaxOak
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/Namespaces/Namespace.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fabulous.AST.StackAllocatedCollections.StackList
open Fantomas.Core.SyntaxOak
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/Namespaces/NestedModule.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fabulous.AST.StackAllocatedCollections.StackList
open Fantomas.Core.SyntaxOak
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/OpenDirectives/Open.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fabulous.AST.StackAllocatedCollections.StackList
open Fantomas.Core.SyntaxOak
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/OpenDirectives/OpenType.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fabulous.AST.StackAllocatedCollections.StackList
open Fantomas.Core.SyntaxOak
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/TypeDefinitions/Abbrev.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fantomas.Core.SyntaxOak
open Fabulous.AST.StackAllocatedCollections.StackList
Expand Down
6 changes: 3 additions & 3 deletions src/Fabulous.AST/Widgets/TypeDefinitions/Class.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fantomas.Core.SyntaxOak
open Fabulous.AST.StackAllocatedCollections.StackList
Expand Down Expand Up @@ -54,7 +54,7 @@ module Class =
None,
None,
SingleTextNode("(", Range.Zero),
simplePatNodes,
List.map Choice1Of2 simplePatNodes,
SingleTextNode(")", Range.Zero),
edgarfgp marked this conversation as resolved.
Show resolved Hide resolved
None,
Range.Zero
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/TypeDefinitions/Enum.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fantomas.Core.SyntaxOak
open Fabulous.AST.StackAllocatedCollections.StackList
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/TypeDefinitions/EnumCase.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fantomas.Core.SyntaxOak
open Fabulous.AST.StackAllocatedCollections.StackList
Expand Down
2 changes: 1 addition & 1 deletion src/Fabulous.AST/Widgets/TypeDefinitions/Field.fs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
namespace Fabulous.AST

open System.Runtime.CompilerServices
open FSharp.Compiler.Text
open Fantomas.FCS.Text
open Fabulous.AST.StackAllocatedCollections
open Fantomas.Core.SyntaxOak
open Fabulous.AST.StackAllocatedCollections.StackList
Expand Down