Skip to content

Commit 21e95d8

Browse files
authored
ColumndsOfCurrentToken to struct tuple (#9219)
1 parent 79cdd6b commit 21e95d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/fsharp/service/ServiceLexing.fs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -616,15 +616,15 @@ type FSharpLineTokenizer(lexbuf: UnicodeLexing.Lexbuf,
616616
| Some mx when rightp.Line > leftp.Line -> mx
617617
| _ -> rightp.Column
618618
let rightc = rightc - 1
619-
leftc, rightc
619+
struct (leftc, rightc)
620620

621621
// Get the token & position - either from a stack or from the lexer
622622
try
623623
if (tokenStack.Count > 0) then true, tokenStack.Pop()
624624
else
625625
// Choose which lexer entry point to call and call it
626626
let token = LexerStateEncoding.callLexCont lexcontInitial lexargs skip lexbuf
627-
let leftc, rightc = ColumnsOfCurrentToken()
627+
let struct (leftc, rightc) = ColumnsOfCurrentToken()
628628

629629
// Splits tokens like ">." into multiple tokens - this duplicates behavior from the 'lexfilter'
630630
// which cannot be (easily) used from the language service. The rules here are not always valid,

0 commit comments

Comments
 (0)