17 references to BraceCompletionContext
Microsoft.CodeAnalysis.Features (17)
BraceCompletion\AbstractBraceCompletionService.cs (10)
39public abstract bool AllowOverType(BraceCompletionContext braceCompletionContext, CancellationToken cancellationToken); 41public ValueTask<bool> HasBraceCompletionAsync(BraceCompletionContext context, Document document, CancellationToken cancellationToken) 55public BraceCompletionResult GetBraceCompletion(BraceCompletionContext context) 68public virtual BraceCompletionResult? GetTextChangesAfterCompletion(BraceCompletionContext braceCompletionContext, IndentationOptions options, CancellationToken cancellationToken) 71public virtual BraceCompletionResult? GetTextChangeAfterReturn(BraceCompletionContext braceCompletionContext, IndentationOptions options, CancellationToken cancellationToken) 87public BraceCompletionContext? GetCompletedBraceContext(ParsedDocument document, StructuredAnalyzerConfigOptions fallbackOptions, int caretLocation) 119/// Helper method used by <see cref="AllowOverType(BraceCompletionContext, CancellationToken)"/> implementations. 121protected bool AllowOverTypeInUserCodeWithValidClosingToken(BraceCompletionContext context, CancellationToken cancellationToken) 132/// Used by <see cref="AllowOverType(BraceCompletionContext, CancellationToken)"/> implementations 135protected bool AllowOverTypeWithValidClosingToken(BraceCompletionContext context)
BraceCompletion\IBraceCompletionService.cs (7)
38ValueTask<bool> HasBraceCompletionAsync(BraceCompletionContext context, Document document, CancellationToken cancellationToken); 43BraceCompletionResult GetBraceCompletion(BraceCompletionContext braceCompletionContext); 49/// This cannot be merged with <see cref="GetBraceCompletion(BraceCompletionContext)"/> 54BraceCompletionResult? GetTextChangesAfterCompletion(BraceCompletionContext braceCompletionContext, IndentationOptions options, CancellationToken cancellationToken); 59BraceCompletionResult? GetTextChangeAfterReturn(BraceCompletionContext braceCompletionContext, IndentationOptions options, CancellationToken cancellationToken); 65BraceCompletionContext? GetCompletedBraceContext(ParsedDocument document, StructuredAnalyzerConfigOptions fallbackOptions, int caretLocation); 71bool AllowOverType(BraceCompletionContext braceCompletionContext, CancellationToken cancellationToken);