GetOverloadIdBody() public static method

public static GetOverloadIdBody ( ISymbol symbol ) : string
symbol ISymbol
return string
Example #1
0
        internal string AddOverloadReference(ISymbol symbol, Dictionary <string, ReferenceItem> references, SymbolVisitorAdapter adapter)
        {
            string uidBody = VisitorHelper.GetOverloadIdBody(symbol);

            ReferenceItem reference = new ReferenceItem()
            {
                Parts        = new SortedList <SyntaxLanguage, List <LinkItem> >(),
                IsDefinition = true,
                CommentId    = "Overload:" + uidBody
            };

            GenerateReferenceInternal(symbol, reference, adapter, true);

            var uid = uidBody + "*";

            if (!references.ContainsKey(uid))
            {
                references[uid] = reference;
            }
            else
            {
                references[uid].Merge(reference);
            }

            return(uid);
        }