Skip to content

Commit

Permalink
Reuse lineEnding
Browse files Browse the repository at this point in the history
  • Loading branch information
nojaf committed May 8, 2023
1 parent c7dc409 commit d47b272
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ type FSharpGenerateSignatureBuilder() =

if Array.isEmpty supportedTypeDeclarations then null else

let sourceText = supportedTypeDeclarations |> Array.map (fun info -> info.SourceText) |> String.concat "\n"
let sourceText = supportedTypeDeclarations |> Array.map (fun info -> info.SourceText) |> String.concat lineEnding
let sigTypeDeclarationGroup = factory.CreateModuleMember(sourceText) :?> ITypeDeclarationGroup

if isNull sigTypeDeclarationGroup then null else
Expand Down Expand Up @@ -187,7 +187,7 @@ type FSharpGenerateSignatureBuilder() =

let sigStrings =
Seq.map sourceString letBindingsDeclaration.Bindings
|> String.concat "\n"
|> String.concat lineEnding

factory.CreateTypeMemberSignature(sigStrings)
| :? IExceptionDeclaration as exceptionDeclaration ->
Expand Down

0 comments on commit d47b272

Please sign in to comment.