1 instantiation of ParsedXmlSnippet
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (1)
278
return new
ParsedXmlSnippet
(snippetParts.ToImmutable());
13 references to ParsedXmlSnippet
Microsoft.CodeAnalysis.LanguageServer.Protocol (11)
Handler\InlineCompletions\InlineCompletionsHandler.cs (3)
146
var
parsedSnippet = xmlSnippetParser.GetParsedXmlSnippet(matchingSnippetInfo, logger);
173
ParsedXmlSnippet
parsedSnippet,
256
ParsedXmlSnippet
parsedSnippet,
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (1)
172
internal
ParsedXmlSnippet
Parse()
Handler\InlineCompletions\XmlSnippetParser.cs (7)
27
private readonly ConcurrentDictionary<string,
ParsedXmlSnippet
?> _parsedSnippetsCache = [];
35
internal
ParsedXmlSnippet
? GetParsedXmlSnippet(SnippetInfo matchingSnippetInfo, ILspLogger logger)
37
if (_parsedSnippetsCache.TryGetValue(matchingSnippetInfo.Title, out
var
cachedSnippet))
47
ParsedXmlSnippet
? parsedSnippet = null;
65
private static
ParsedXmlSnippet
GetAndParseSnippetFromFile(SnippetInfo snippetInfo)
80
var
parsedSnippet = expansion.Parse();
115
public
ParsedXmlSnippet
GetCachedSnippet(string snippet) => _snippetParser._parsedSnippetsCache[snippet]!;
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
InlineCompletions\InlineCompletionsTests.cs (2)
228
var
firstSnippet = snippetParser.GetTestAccessor().GetCachedSnippet("if");
234
var
secondSnippet = snippetParser.GetTestAccessor().GetCachedSnippet("if");