2 instantiations of SnippetPlaceholder
Microsoft.CodeAnalysis.Features (2)
Snippets\SnippetProviders\AbstractConditionalBlockSnippetProvider.cs (1)
29
return [new
SnippetPlaceholder
(condition.ToString(), condition.SpanStart)];
Snippets\SnippetProviders\AbstractTypeSnippetProvider.cs (1)
39
return [new
SnippetPlaceholder
(identifier.ValueText, identifier.SpanStart)];
15 references to SnippetPlaceholder
Microsoft.CodeAnalysis.Features (15)
Snippets\RoslynLSPSnippetConverter.cs (6)
23
public static async Task<string> GenerateLSPSnippetAsync(Document document, int caretPosition, ImmutableArray<
SnippetPlaceholder
> placeholders, TextChange textChange, int triggerLocation, CancellationToken cancellationToken)
33
private static string ConvertToLSPSnippetString(TextChange textChange, ImmutableArray<
SnippetPlaceholder
> placeholders, int caretPosition)
85
private static void PopulateMapOfSpanStartsToLSPStringItem(Dictionary<int, (string identifier, int priority)> dictionary, ImmutableArray<
SnippetPlaceholder
> placeholders, int textChangeStart)
89
var
placeholder = placeholders[i];
109
private static async Task<TextChange> ExtendSnippetTextChangeAsync(Document document, TextChange textChange, ImmutableArray<
SnippetPlaceholder
> placeholders, int caretPosition, int triggerLocation, CancellationToken cancellationToken)
124
private static TextSpan GetUpdatedTextSpan(TextChange textChange, ImmutableArray<
SnippetPlaceholder
> placeholders, int caretPosition, int triggerLocation)
Snippets\SnippetChange.cs (2)
25
public readonly ImmutableArray<
SnippetPlaceholder
> Placeholders;
34
ImmutableArray<
SnippetPlaceholder
> placeholders,
Snippets\SnippetProviders\AbstractConditionalBlockSnippetProvider.cs (1)
23
protected sealed override ImmutableArray<
SnippetPlaceholder
> GetPlaceHolderLocationsList(TStatementSyntax node, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Snippets\SnippetProviders\AbstractConsoleSnippetProvider.cs (1)
87
protected sealed override ImmutableArray<
SnippetPlaceholder
> GetPlaceHolderLocationsList(TExpressionSyntax node, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Snippets\SnippetProviders\AbstractConstructorSnippetProvider.cs (1)
20
protected sealed override ImmutableArray<
SnippetPlaceholder
> GetPlaceHolderLocationsList(TConstructorDeclarationSyntax node, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Snippets\SnippetProviders\AbstractElseSnippetProvider.cs (1)
14
protected sealed override ImmutableArray<
SnippetPlaceholder
> GetPlaceHolderLocationsList(TElseClauseSyntax node, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Snippets\SnippetProviders\AbstractMainMethodSnippetProvider.cs (1)
39
protected sealed override ImmutableArray<
SnippetPlaceholder
> GetPlaceHolderLocationsList(TMethodDeclarationSyntax node, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)
Snippets\SnippetProviders\AbstractSnippetProvider.cs (1)
51
protected abstract ImmutableArray<
SnippetPlaceholder
> GetPlaceHolderLocationsList(TSnippetSyntax node, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken);
Snippets\SnippetProviders\AbstractTypeSnippetProvider.cs (1)
36
protected sealed override ImmutableArray<
SnippetPlaceholder
> GetPlaceHolderLocationsList(TTypeDeclarationSyntax node, ISyntaxFacts syntaxFacts, CancellationToken cancellationToken)