예제 #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;
 }