ICompletionData ICompletionDataFactory.CreateTypeCompletionData(IType type, bool showFullName, bool isInAttributeContext, bool addForTypeCreation) { var data = new TypeCompletionData(type); if (showFullName) { string text = builder.ConvertType(type).ToString(); data.CompletionText = text; data.DisplayText = text; } if (isInAttributeContext) { data.CompletionText = StripAttributeSuffix(data.CompletionText); data.DisplayText = StripAttributeSuffix(data.DisplayText); } return data; }
ICompletionData ICompletionDataFactory.CreateTypeCompletionData(IType type, bool showFullName, bool isInAttributeContext, bool addForTypeCreation) { var data = new TypeCompletionData(type); if (showFullName) { string text = builder.ConvertType(type).ToString(); data.CompletionText = text; data.DisplayText = text; } if (isInAttributeContext) { data.CompletionText = StripAttributeSuffix(data.CompletionText); data.DisplayText = StripAttributeSuffix(data.DisplayText); } return(data); }