예제 #1
0
        public static TooltipInformation Generate(AbstractType t, int currentParameter = -1, bool isInTemplateArgInsight = false)
        {
            var ms = t as MemberSymbol;

            if (ms != null)
            {
                if (ms.Definition is DVariable)
                {
                    var bt = DResolver.StripAliasSymbol(ms.Base);
                    if (bt is DelegateType)
                    {
                        return(TooltipInfoGenerator.Generate(bt as DelegateType, currentParameter));
                    }
                }
                else if (ms.Definition is DMethod)
                {
                    return(TooltipInfoGenerator.Generate(ms.Definition as DMethod, isInTemplateArgInsight, currentParameter));
                }
            }
            else if (t is TemplateIntermediateType)
            {
                return(Generate(t as TemplateIntermediateType, currentParameter));
            }

            return(new TooltipInformation());
        }
예제 #2
0
 public override TooltipInformation CreateTooltipInformation(int overload, int currentParameter, bool smartWrap)
 {
     selIndex = overload;
     return(TooltipInfoGenerator.Generate(CurrentResult, currentParameter, args.IsTemplateInstanceArguments));
 }