Esempio n. 1
0
        private XmlNode GetDocs(MemberReference member, MemberFormatter formatter)
        {
            string slashdocsig = formatter?.GetDeclaration(member);

            if (slashdocsig != null && slashdocs != null)
            {
                return(slashdocs.SelectSingleNode("doc/members/member[@name='" + slashdocsig + "']"));
            }
            return(null);
        }
        private XmlNode GetDocs(MemberReference member, MemberFormatter formatter)
        {
            string  slashdocsig = formatter?.GetDeclaration(member);
            XmlNode mappedValue;

            if (slashdocsig != null && slashdocs != null && slashdocsMapping.TryGetValue(slashdocsig, out mappedValue))
            {
                return(mappedValue);
            }
            return(null);
        }
        /// <summary>Removes modreq and modopt from ReturnType, Parameters, and TypeParameters</summary>
        private void CleanTypes()
        {
            ReturnType = MemberFormatter.RemoveMod(ReturnType);
            MemberType = MemberFormatter.RemoveMod(MemberType);

            if (Parameters != null)
            {
                for (var i = 0; i < Parameters.Count; i++)
                {
                    Parameters[i] = MemberFormatter.RemoveMod(Parameters[i]);
                }
            }

            if (TypeParameters != null)
            {
                for (var i = 0; i < TypeParameters.Count; i++)
                {
                    TypeParameters[i] = MemberFormatter.RemoveMod(TypeParameters[i]);
                }
            }
        }
 public FSharpFullMemberFormatter(TypeMap map) : base(map)
 {
     usageFormatter = new FSharpUsageFormatter(map);
 }