Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions src/FSharpLint.Core/Framework/HintParser.fs
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,9 @@ open HintParserTypes

module HintParser =

let charListToString charList =
Seq.fold (fun concatenatedString charElement -> concatenatedString + charElement.ToString()) String.Empty charList
let charListToString (charList : char list) =
System.String.Create(charList.Length, charList, fun buffer characters ->
for i = 0 to buffer.Length - 1 do buffer[i] <- characters[i])

let pischar chars : Parser<char, 'CharParser> =
satisfy (fun character -> List.exists ((=) character) chars)
Expand Down
Loading