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