11 references to ParsedXmlSnippet
Microsoft.CodeAnalysis.LanguageServer.Protocol (11)
Handler\InlineCompletions\InlineCompletionsHandler.cs (3)
133var parsedSnippet = _xmlSnippetParser.GetParsedXmlSnippet(matchingSnippetInfo, context); 166ParsedXmlSnippet parsedSnippet, 249ParsedXmlSnippet parsedSnippet,
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (1)
172internal ParsedXmlSnippet Parse()
Handler\InlineCompletions\XmlSnippetParser.cs (7)
27private readonly ConcurrentDictionary<string, ParsedXmlSnippet?> _parsedSnippetsCache = []; 35internal ParsedXmlSnippet? GetParsedXmlSnippet(SnippetInfo matchingSnippetInfo, RequestContext context) 37if (_parsedSnippetsCache.TryGetValue(matchingSnippetInfo.Title, out var cachedSnippet)) 47ParsedXmlSnippet? parsedSnippet = null; 65private static ParsedXmlSnippet GetAndParseSnippetFromFile(SnippetInfo snippetInfo) 80var parsedSnippet = expansion.Parse(); 115public ParsedXmlSnippet GetCachedSnippet(string snippet) => _snippetParser._parsedSnippetsCache[snippet]!;