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