11 references to ParsedXmlSnippet
Microsoft.CodeAnalysis.LanguageServer.Protocol (11)
Handler\InlineCompletions\InlineCompletionsHandler.cs (3)
133
var
parsedSnippet = _xmlSnippetParser.GetParsedXmlSnippet(matchingSnippetInfo, context);
166
ParsedXmlSnippet
parsedSnippet,
249
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, RequestContext context)
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]!;