1 instantiation of CodeSnippet
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (1)
112return ReadCodeSnippetElements(document)?.Select(element => new CodeSnippet(element)).ToImmutableArray();
14 references to CodeSnippet
Microsoft.CodeAnalysis.LanguageServer.Protocol (14)
Handler\InlineCompletions\XmlSnippetParser.CodeSnippet.cs (10)
63public static CodeSnippet ReadSnippetFromFile(string filePath, string snippetTitle) 69var matchingSnippet = snippets.Value.Single(s => string.Equals(s.Title, snippetTitle, StringComparison.OrdinalIgnoreCase)); 110internal static ImmutableArray<CodeSnippet>? ReadSnippets(XDocument document) 132public ExpansionTemplate(CodeSnippet snippet) 134var snippetElement = CodeSnippet.GetElementWithoutNamespace(snippet.CodeSnippetElement, "Snippet"); 135var declarationsElement = CodeSnippet.GetElementWithoutNamespace(snippetElement, "Declarations"); 137var code = CodeSnippet.GetElementWithoutNamespace(snippetElement, "Code"); 161var functionElement = CodeSnippet.GetElementWithoutNamespace(declarationElement, "Function"); 164CodeSnippet.GetElementInnerText(declarationElement, "ID"), 165CodeSnippet.GetElementInnerText(declarationElement, "Default") ?? " ",
Handler\InlineCompletions\XmlSnippetParser.cs (4)
68var matchingSnippet = RetrieveSnippetXmlFromFile(snippetInfo); 84private static CodeSnippet RetrieveSnippetXmlFromFile(SnippetInfo snippetInfo) 99var snippet = CodeSnippet.ReadSnippetFromFile(snippetInfo.Path, snippetInfo.Title);