Uh oh!
There was an error while loading. Please reload this page.
Add GetSubTextFromRange to ISourceText - #15979
Conversation
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
psfinaki
commented
Sep 20, 2023
I'd say this can go in - but just trying to understand, can this be redesigned to actually not have duplicate implementations? |
nojaf
commented
Sep 20, 2023
I guess, any suggestions on where to extract the code? |
nojaf
commented
Sep 27, 2023
The module SourceText is defined underneath the type. fsharp/src/Compiler/Facilities/prim-lexing.fs Line 147 in 11b1934 |
In Fantomas, we have an extension for
ISourceTextto grab the text based on arange.I find myself copying this over to other projects that consume FCS quite often, and I would like to have this in
FCS.