4 instantiations of DocumentationCommentSnippet
Microsoft.CodeAnalysis.Features (4)
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (4)
77
return new
DocumentationCommentSnippet
(replaceSpan, comments, caretOffset);
246
return new
DocumentationCommentSnippet
(replaceSpan, newText, offset);
283
return new
DocumentationCommentSnippet
(replaceSpan, comments, offset);
352
return new
DocumentationCommentSnippet
(replaceSpan, insertionText, insertionText.Length);
20 references to DocumentationCommentSnippet
Microsoft.CodeAnalysis.EditorFeatures (7)
DocumentationComments\AbstractDocumentationCommentCommandHandler.cs (7)
60
private static
DocumentationCommentSnippet
? InsertOnCharacterTyped(IDocumentationCommentSnippetService service, SyntaxTree syntaxTree, SourceText text, int position, DocumentationCommentOptions options, CancellationToken cancellationToken)
63
private static
DocumentationCommentSnippet
? InsertOnEnterTyped(IDocumentationCommentSnippetService service, SyntaxTree syntaxTree, SourceText text, int position, DocumentationCommentOptions options, CancellationToken cancellationToken)
66
private static
DocumentationCommentSnippet
? InsertOnCommandInvoke(IDocumentationCommentSnippetService service, SyntaxTree syntaxTree, SourceText text, int position, DocumentationCommentOptions options, CancellationToken cancellationToken)
69
private static void ApplySnippet(
DocumentationCommentSnippet
snippet, ITextBuffer subjectBuffer, ITextView textView)
79
Func<IDocumentationCommentSnippetService, SyntaxTree, SourceText, int, DocumentationCommentOptions, CancellationToken,
DocumentationCommentSnippet
?> getSnippetAction,
103
var
snippet = getSnippetAction(service, parsedDocument.SyntaxTree, parsedDocument.Text, snapshot.Span.Start, options, cancellationToken);
338
var
snippet = service.GetDocumentationCommentSnippetFromPreviousLine(options, currentLine, previousLine);
Microsoft.CodeAnalysis.ExternalAccess.OmniSharp (1)
DocumentationComments\OmniSharpDocumentationCommentsSnippetService.cs (1)
39
private static OmniSharpDocumentationCommentSnippet? Translate(
DocumentationCommentSnippet
? result)
Microsoft.CodeAnalysis.Features (11)
DocumentationComments\AbstractDocumentationCommentSnippetService.cs (7)
41
public
DocumentationCommentSnippet
? GetDocumentationCommentSnippetOnCharacterTyped(
189
public
DocumentationCommentSnippet
? GetDocumentationCommentSnippetOnEnterTyped(SyntaxTree syntaxTree, SourceText text, int position, in DocumentationCommentOptions options, CancellationToken cancellationToken)
197
var
result = GenerateDocumentationCommentAfterEnter(syntaxTree, text, position, options, cancellationToken);
207
private
DocumentationCommentSnippet
? GenerateDocumentationCommentAfterEnter(SyntaxTree syntaxTree, SourceText text, int position, in DocumentationCommentOptions options, CancellationToken cancellationToken)
249
public
DocumentationCommentSnippet
? GetDocumentationCommentSnippetOnCommandInvoke(SyntaxTree syntaxTree, SourceText text, int position, in DocumentationCommentOptions options, CancellationToken cancellationToken)
286
private
DocumentationCommentSnippet
? GenerateExteriorTriviaAfterEnter(SyntaxTree syntaxTree, SourceText text, int position, in DocumentationCommentOptions options, CancellationToken cancellationToken)
343
public
DocumentationCommentSnippet
GetDocumentationCommentSnippetFromPreviousLine(in DocumentationCommentOptions options, TextLine currentLine, TextLine previousLine)
DocumentationComments\IDocumentationCommentSnippetService.cs (4)
18
DocumentationCommentSnippet
? GetDocumentationCommentSnippetOnCharacterTyped(
25
DocumentationCommentSnippet
? GetDocumentationCommentSnippetOnCommandInvoke(
32
DocumentationCommentSnippet
? GetDocumentationCommentSnippetOnEnterTyped(
39
DocumentationCommentSnippet
? GetDocumentationCommentSnippetFromPreviousLine(
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\OnAutoInsert\OnAutoInsertHandler.cs (1)
113
var
result = autoInsertParams.Character == "\n"