Skip to content

Commit 426f8c8

Browse files
xperiandriclaude
andcommitted
Point ScanToken's doc to ScanTokenValue
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
1 parent d777135 commit 426f8c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/Compiler/Service/ServiceLexing.fsi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ type FSharpTokenInfo =
309309
/// values for each line of the edited code.
310310
[<Sealed>]
311311
type FSharpLineTokenizer =
312-
/// Scan one token from the line
312+
/// Scan one token from the line. Prefer ScanTokenValue on hot paths: it does not allocate an option.
313313
member ScanToken: lexState: FSharpTokenizerLexState -> FSharpTokenInfo option * FSharpTokenizerLexState
314314

315315
/// Scan one token from the line, without allocating an option for the result. Prefer this over

0 commit comments

Comments
 (0)