18 instantiations of BraceMatchingResult
Microsoft.CodeAnalysis.CSharp.Features (6)
BraceMatching\BlockCommentBraceMatcher.cs (2)
50return new BraceMatchingResult(new TextSpan(trivia.SpanStart, "/*".Length), TextSpan.FromBounds(trivia.Span.End - "*/".Length, trivia.Span.End)); 57return new BraceMatchingResult(startBrace, endBrace);
BraceMatching\StringLiteralBraceMatcher.cs (4)
45return new BraceMatchingResult(token.Span, interpolatedString.StringEndToken.Span); 52return new BraceMatchingResult(interpolatedString.StringStartToken.Span, token.Span); 64return new BraceMatchingResult( 70return new BraceMatchingResult(
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (4)
BraceHighlighting\MultiCharacterBraceHighlightingTests.cs (4)
59return new BraceMatchingResult(new TextSpan(position, 2), new TextSpan(secondAt, 2)); 68return new BraceMatchingResult(new TextSpan(position - 1, 2), new TextSpan(secondAt, 2)); 74return new BraceMatchingResult(new TextSpan(lessThan, 2), new TextSpan(position, 2)); 83return new BraceMatchingResult(new TextSpan(lessThan, 2), new TextSpan(position - 1, 2));
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (1)
EmbeddedLanguages\BraceMatching\AspNetCoreBraceMatchingResult.cs (1)
16=> new(LeftSpan, RightSpan);
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Internal\Editor\FSharpBraceMatcher.cs (1)
32return result.HasValue ? new BraceMatchingResult(result.Value.LeftSpan, result.Value.RightSpan) : null;
Microsoft.CodeAnalysis.Features (6)
BraceMatching\AbstractBraceMatcher.cs (2)
75return new BraceMatchingResult(leftToken.Span, rightToken.Span); 83return new BraceMatchingResult(leftToken.Span, rightToken.Span);
BraceMatching\AbstractDirectiveTriviaBraceMatcher.cs (1)
64return new BraceMatchingResult(
EmbeddedLanguages\Json\LanguageServices\JsonBraceMatcher.cs (1)
110: new BraceMatchingResult(open.GetSpan(), close.GetSpan());
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexBraceMatcher.cs (2)
74: new BraceMatchingResult(open.VirtualChars[0].Span, close.VirtualChars[0].Span); 86: new BraceMatchingResult(firstChar.Span, lastChar.Span);
33 references to BraceMatchingResult
Microsoft.CodeAnalysis.CSharp.Features (4)
BraceMatching\BlockCommentBraceMatcher.cs (2)
21public async Task<BraceMatchingResult?> FindBracesAsync(Document document, int position, BraceMatchingOptions options, CancellationToken cancellationToken) 41BraceMatchingResult? FindBraces(SyntaxTriviaList triviaList)
BraceMatching\StringLiteralBraceMatcher.cs (2)
26public async Task<BraceMatchingResult?> FindBracesAsync(Document document, int position, BraceMatchingOptions options, CancellationToken cancellationToken) 60private static BraceMatchingResult GetSimpleStringBraceMatchingResult(SyntaxToken token, int endTokenLength)
Microsoft.CodeAnalysis.EditorFeatures (3)
BraceMatching\BraceHighlightingViewTaggerProvider.cs (3)
92private static async Task<(BraceMatchingResult? leftOfPosition, BraceMatchingResult? rightOfPosition)> GetAllMatchingBracesAsync( 153BraceMatchingResult? braces)
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (2)
BraceHighlighting\MultiCharacterBraceHighlightingTests.cs (2)
31public async Task<BraceMatchingResult?> GetMatchingBracesAsync( 45public static BraceMatchingResult? GetMatchingBraces(
Microsoft.CodeAnalysis.ExternalAccess.AspNetCore (3)
EmbeddedLanguages\BraceMatching\AspNetCoreBraceMatchingResult.cs (2)
10/// <inheritdoc cref="BraceMatchingResult"/> 15internal BraceMatchingResult ToBraceMatchingResult()
Internal\EmbeddedLanguages\AspNetCoreEmbeddedLanguageBraceMatcher.cs (1)
27public BraceMatchingResult? FindBraces(
Microsoft.CodeAnalysis.ExternalAccess.FSharp (1)
Internal\Editor\FSharpBraceMatcher.cs (1)
29public async Task<BraceMatchingResult?> FindBracesAsync(Document document, int position, BraceMatchingOptions options, CancellationToken cancellationToken)
Microsoft.CodeAnalysis.Features (20)
BraceMatching\AbstractBraceMatcher.cs (1)
58public async Task<BraceMatchingResult?> FindBracesAsync(
BraceMatching\AbstractDirectiveTriviaBraceMatcher.cs (1)
29public async Task<BraceMatchingResult?> FindBracesAsync(Document document, int position, BraceMatchingOptions options, CancellationToken cancellationToken)
BraceMatching\AbstractEmbeddedLanguageBraceMatcher.cs (1)
31public async Task<BraceMatchingResult?> FindBracesAsync(
BraceMatching\BraceMatchingService.cs (1)
24public async Task<BraceMatchingResult?> GetMatchingBracesAsync(Document document, int position, BraceMatchingOptions options, CancellationToken cancellationToken)
BraceMatching\IBraceMatcher.cs (2)
14/// cref="BraceMatchingResult"/> if the position is at the start or end character of a matching pair of braces. 29Task<BraceMatchingResult?> FindBracesAsync(Document document, int position, BraceMatchingOptions options, CancellationToken cancellationToken);
BraceMatching\IBraceMatchingService.cs (1)
14Task<BraceMatchingResult?> GetMatchingBracesAsync(Document document, int position, BraceMatchingOptions options, CancellationToken cancellationToken);
BraceMatching\IBraceMatchingServiceExtensions.cs (1)
24BraceMatchingResult? braces2 = null;
BraceMatching\IEmbeddedLanguageBraceMatcher.cs (1)
12BraceMatchingResult? FindBraces(
EmbeddedLanguages\Json\LanguageServices\JsonBraceMatcher.cs (5)
35public BraceMatchingResult? FindBraces( 58private static BraceMatchingResult? GetMatchingBraces(JsonTree tree, int position) 70private static BraceMatchingResult? FindBraceHighlights(JsonTree tree, VirtualChar ch) 73private static BraceMatchingResult? FindBraceMatchingResult(JsonNode node, VirtualChar ch) 107private static BraceMatchingResult? Create(JsonToken open, JsonToken close)
EmbeddedLanguages\RegularExpressions\LanguageServices\RegexBraceMatcher.cs (6)
38public BraceMatchingResult? FindBraces( 56private static BraceMatchingResult? GetMatchingBraces(RegexTree tree, int position) 71private static BraceMatchingResult? CreateResult(RegexToken open, RegexToken close) 76private static BraceMatchingResult? FindCommentBraces(RegexTree tree, VirtualChar ch) 89private static BraceMatchingResult? FindGroupingBraces(RegexTree tree, VirtualChar ch) 95private static BraceMatchingResult? FindCharacterClassBraces(RegexTree tree, VirtualChar ch)