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