public static CompletionKind GetCompletionKindForHintValues(MetadataType type) => type.IsEnum ? CompletionKind.Enum : CompletionKind.StaticProperty;
public void AddType(string ns, MetadataType type) => Namespaces.GetOrCreate(ns)[type.Name] = type;
List <Completion> GetHintCompletions(MetadataType type, string entered) { var kind = GetCompletionKindForHintValues(type); return(FilterHintValues(type, entered).Select(val => new Completion(val, kind)).ToList()); }