You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module internal Fantomas.TokenMatcher
open System
open System.Collections.Generic
open System.Diagnostics
open Fantomas
open Microsoft.FSharp.Compiler.Range
open Microsoft.FSharp.Compiler.PrettyNaming
open Microsoft.FSharp.Compiler.SourceCodeServices
open System.Text.RegularExpressions
#if INTERACTIVE
type Debug = Console
#endif
type Token =
| EOL
| Tok of FSharpTokenInfo * int
override x.ToString() =
match x with
| EOL -> "<EOL>"
| Tok(tokInfo, l) -> sprintf "Tok(%O, %O)" tokInfo.TokenName l
so only remaining problem is added/removed newlines. Probably bug in TokenMatcher.
As an example from this code base
TokenMatcher.fs
:This will get formatted to:
type Debug = Console
is erased,type Token =
is moved into the #if block.The text was updated successfully, but these errors were encountered: