Skip to content

Commit cc618bf

Browse files
deviousastibaronfel
authored andcommitted
Add ToString to FSharp.Compiler.Text.StringText
There exists no method to retrieve the original source string because the 'String' property on StringText is never exposed in ISourceText
1 parent be1dac4 commit cc618bf

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

src/utils/prim-lexing.fs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ type StringText(str: string) =
5353

5454
override __.GetHashCode() = str.GetHashCode()
5555
override __.Equals(obj: obj) = str.Equals(obj)
56+
override __.ToString() = str
5657

5758
interface ISourceText with
5859

0 commit comments

Comments
 (0)