17 references to BraceCompletionContext
Microsoft.CodeAnalysis.Features (17)
BraceCompletion\AbstractBraceCompletionService.cs (10)
39public abstract bool AllowOverType(BraceCompletionContext braceCompletionContext, CancellationToken cancellationToken); 41public Task<bool> HasBraceCompletionAsync(BraceCompletionContext context, Document document, CancellationToken cancellationToken) 59public BraceCompletionResult GetBraceCompletion(BraceCompletionContext context) 72public virtual BraceCompletionResult? GetTextChangesAfterCompletion(BraceCompletionContext braceCompletionContext, IndentationOptions options, CancellationToken cancellationToken) 75public virtual BraceCompletionResult? GetTextChangeAfterReturn(BraceCompletionContext braceCompletionContext, IndentationOptions options, CancellationToken cancellationToken) 91public BraceCompletionContext? GetCompletedBraceContext(ParsedDocument document, StructuredAnalyzerConfigOptions fallbackOptions, int caretLocation) 123/// Helper method used by <see cref="AllowOverType(BraceCompletionContext, CancellationToken)"/> implementations. 125protected bool AllowOverTypeInUserCodeWithValidClosingToken(BraceCompletionContext context, CancellationToken cancellationToken) 136/// Used by <see cref="AllowOverType(BraceCompletionContext, CancellationToken)"/> implementations 139protected bool AllowOverTypeWithValidClosingToken(BraceCompletionContext context)
BraceCompletion\IBraceCompletionService.cs (7)
38Task<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);