static Task <CompletionContext> GetCompletions(IAsyncCompletionSource source, Dictionary <string, HashSet <string> > map, XmlElementPath path) { if (path == null || path.Elements.Count == 0) { return(Task.FromResult(CompletionContext.Empty)); } return(GetCompletions(source, map, path.Elements[path.Elements.Count - 1].Name)); }
public Task <CompletionContext> GetChildElementCompletionDataAsync(IAsyncCompletionSource source, XmlElementPath path, CancellationToken token) { return(GetCompletions(source, elementCompletions, path)); }
public Task <CompletionContext> GetAttributeValueCompletionDataAsync(IAsyncCompletionSource source, XmlElementPath path, string name, CancellationToken token) { return(Task.FromResult(CompletionContext.Empty)); }