示例#1
0
 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));
 }
示例#2
0
 public Task <CompletionContext> GetChildElementCompletionDataAsync(IAsyncCompletionSource source, XmlElementPath path, CancellationToken token)
 {
     return(GetCompletions(source, elementCompletions, path));
 }
示例#3
0
 public Task <CompletionContext> GetAttributeValueCompletionDataAsync(IAsyncCompletionSource source, XmlElementPath path, string name, CancellationToken token)
 {
     return(Task.FromResult(CompletionContext.Empty));
 }