Closed nojaf closed 1 year ago
CodeFormatter.ParseOakAsync does not do any trivia processing. This explains why the online tool is no longer showing any trivia.
CodeFormatter.ParseOakAsync
#r "nuget: Fantomas.Core,6.0.0-beta-001" open Fantomas.Core open Fantomas.Core.SyntaxOak CodeFormatter.ParseOakAsync(false, "let a = 0 // foo") |> Async.RunSynchronously |> fun result -> let rec hasContentAfter (node: Node) = node.HasContentAfter || Seq.exists hasContentAfter node.Children result |> Array.head |> fst |> hasContentAfter
CodeFormatter.ParseOakAsync
does not do any trivia processing. This explains why the online tool is no longer showing any trivia.