示例#1
0
        private static void AddItem(string abbreviation, string name, IDeclaredElement declaredElement, HtmlCodeCompletionContext context, GroupedItemsCollector collector)
        {
            var item = new WrappedDynamicLookupItem(context.CreateDeclaredElementLookupItem(name, declaredElement));

            item.PutData(IdentityKey, IdentityObject);
            item.PutData(BaseDynamicRule.PrefixKey, abbreviation);
            collector.AddAtDefaultPlace(item);
        }
示例#2
0
        private static void AddItem(string abbreviation, string name, IDeclaredElement declaredElement, HtmlCodeCompletionContext context, GroupedItemsCollector collector)
        {
            // Add the element as an item, but we need it to be dynamic, so we need to decorate it
            var item = new WrappedDynamicLookupItem(context.CreateDeclaredElementLookupItem(name, declaredElement));

            item.PutData(ExplicitlyAddedKey, ExplicitlyAddedKeyValue);
            item.PutData(BaseDynamicRule.PrefixKey, abbreviation);
            SortItem(item, abbreviation, name);
            collector.Add(item);
        }