You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 7b724e4
Browse filesBrowse the repository at this point in the historyBrowse files
Convert FSharpLineTokenizer.ScanToken to allocation-free voption struct return
Change ScanToken's signature from 'FSharpTokenInfo option * FSharpTokenizerLexState' to 'struct (FSharpTokenInfo voption * FSharpTokenizerLexState)', eliminating a per-token option allocation on the hot tokenization path. Update all in-tree callers: FSharpChecker.TokenizeLine, the editor Tokenizer, and the deprecated FSharp.LanguageService colorizer/scanner (Colorize.fs, Intellisense.fs). Also clean up incidental trailing whitespace in Intellisense.fs picked up by formatting.
Copy file name to clipboardExpand all lines: docs/release-notes/.FSharp.Compiler.Service/11.0.100.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,7 @@
169
169
* IL: use empty tables for members when possible ([PR #20249](https://github.com/dotnet/fsharp/pull/20249))
170
170
171
171
### Improved
172
+
*`FSharpLineTokenizer.ScanToken` no longer allocates an `option` box per token; it returns a `struct (FSharpTokenInfo voption * FSharpTokenizerLexState)` instead, removing per-token heap allocations on the hot tokenization path used by classification, brace matching, and the deprecated `FSharp.LanguageService` colorizer. ([PR #20113](https://github.com/dotnet/fsharp/pull/20113))
172
173
173
174
* Nullness warning FS3261 on dotted method or property access (e.g. `x.Member`) now underlines the receiver expression and includes the member name and (when known) the binding name in the message. ([Issue #19658](https://github.com/dotnet/fsharp/issues/19658), [PR #19814](https://github.com/dotnet/fsharp/pull/19814))
174
175
* Direct delegate construction ([PR ##19993](https://github.com/dotnet/fsharp/pull/19993))
@@ -188,5 +189,6 @@
188
189
### Breaking Changes
189
190
190
191
*`FSharp.Compiler.Syntax.SynInterpolatedStringPart.FillExpr` now carries a `SynInterpolationFormatting` value (separating .NET alignment/format from printf specifiers) instead of an `Ident option`. ([PR #19971](https://github.com/dotnet/fsharp/pull/19971))
192
+
*`FSharpLineTokenizer.ScanToken: lexState -> FSharpTokenInfo option * FSharpTokenizerLexState` now returns `struct (FSharpTokenInfo voption * FSharpTokenizerLexState)`. All in-tree callers (`FSharpChecker.TokenizeLine`, the editor `Tokenizer`, and the deprecated `FSharp.LanguageService` colorizer) have been updated accordingly. ([PR #20113](https://github.com/dotnet/fsharp/pull/20113))
191
193
* Optimizer: don't inline named functions in debug builds ([PR #19548](https://github.com/dotnet/fsharp/pull/19548)
192
194
* LexFilter: drop non-strict mode ([PR #20106](https://github.com/dotnet/fsharp/pull/20106))
0 commit comments