Beispiel #1
0
        public string GetSymbolDescription(DoxygenHelper.DescriptionType descriptionType, string overloadSpecification = null)
        {
            using (var reader = XmlReader.Create(new StreamReader(GetCompoundFilePath())))
            {
                var doc = new XmlDocument();
                doc.Load(reader);
                var nav = doc.CreateNavigator();


                if (descriptionType == DoxygenHelper.DescriptionType.Full)
                {
                    return
                        (GetTranslatedNode(nav, DoxygenHelper.GetDescriptionTypeString(DoxygenHelper.DescriptionType.Brief), overloadSpecification)
                         + " " +
                         GetTranslatedNode(nav, DoxygenHelper.GetDescriptionTypeString(DoxygenHelper.DescriptionType.Detailed), overloadSpecification));
                }

                return(GetTranslatedNode(nav, DoxygenHelper.GetDescriptionTypeString(descriptionType), overloadSpecification));
            }
        }
Beispiel #2
0
        public string GetSymbolDescription(string path, DoxygenHelper.DescriptionType descriptionType)
        {
            var symbol = GetSymbolFromPath(path);

            return(symbol.GetSymbolDescription(descriptionType));
        }