Пример #1
0
        public AutoCompleteItem(string name, AutoCompleteItemType type)
        {
            Name = name;
            Type = type;

            SurroundParamsWithParenthesis = true;
        }
Пример #2
0
        private string GetSuggestionKindByItemType(AutoCompleteItemType itemType)
        {
            switch (itemType)
            {
            case AutoCompleteItemType.Variable:
                return(CompletionItemKind.Variable);

            case AutoCompleteItemType.Property:
                return(CompletionItemKind.Property);

            case AutoCompleteItemType.Method:
                return(CompletionItemKind.Method);

            case AutoCompleteItemType.Class:
                return(CompletionItemKind.Class);

            case AutoCompleteItemType.Namespace:
                return(CompletionItemKind.Keyword);

            default:
                throw new NotImplementedException(itemType.ToString() + " is not implemented");
            }
        }
Пример #3
0
 public AutoCompleteItem(string name, string[] parameters, AutoCompleteItemType type)
     : this(name, type)
 {
     Parameters = parameters;
 }
Пример #4
0
 public AutoCompleteItem(string name, string info, AutoCompleteItemType type)
     : this(name, type)
 {
     Info = info;
 }