1 instantiation of AnchorData
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (1)
400var data = new AnchorData(operation, anchorToken, originalSpace);
16 references to AnchorData
Microsoft.CodeAnalysis.PerformanceSensitiveAnalyzers (16)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.AnchorData.cs (3)
30IIntervalIntrospector<AnchorData>, 34TextSpan IIntervalIntrospector<AnchorData>.GetSpan(AnchorData value)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (13)
37private readonly ContextMutableIntervalTree<AnchorData, FormattingContextIntervalIntrospector> _anchorTree; 42private readonly SegmentedDictionary<SyntaxToken, AnchorData> _anchorBaseTokenMap = []; 69_anchorTree = new ContextMutableIntervalTree<AnchorData, FormattingContextIntervalIntrospector>(new FormattingContextIntervalIntrospector()); 400var data = new AnchorData(operation, anchorToken, originalSpace); 467private AnchorData? GetAnchorData(SyntaxToken token) 471var anchorData = _anchorTree.GetSmallestContainingInterval(span.Start, 0); 484var anchorData = GetAnchorData(token); 496var anchorData = GetAnchorData(token); 531var baseAnchorData = FindAnchorSpanOnSameLineAfterToken(tokenData); 546foreach (var interval in anchorData) 565private AnchorData? FindAnchorSpanOnSameLineAfterToken(TokenData tokenData) 570AnchorData? lastBaseAnchorData = null; 573if (_anchorBaseTokenMap.TryGetValue(tokenData.Token, out var tempAnchorData))