本文整理汇总了C#中Declaration.GetQualifiedName方法的典型用法代码示例。如果您正苦于以下问题:C# Declaration.GetQualifiedName方法的具体用法?C# Declaration.GetQualifiedName怎么用?C# Declaration.GetQualifiedName使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Declaration
的用法示例。
在下文中一共展示了Declaration.GetQualifiedName方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: DocumentQtProperty
private void DocumentQtProperty(Declaration property)
{
if (!this.propertyNodes.ContainsKey(property.Name))
{
return;
}
var qualifiedName = property.GetQualifiedName(decl => decl.OriginalName, decl => decl.Namespace);
var node = this.propertyNodes[property.Name].Find(
c => c.Attribute("fullname").Value == qualifiedName);
if (node != null && node.Attribute("href") != null)
{
var link = node.Attribute("href").Value.Split('#');
var file = link[0];
if (this.membersDocumentation.ContainsKey(file))
{
var typeDocs = this.membersDocumentation[file];
var key = string.Format("{0}-prop", property.Name);
var containsKey = typeDocs.ContainsKey(key);
if (!containsKey)
{
key = property.Name;
containsKey = typeDocs.ContainsKey(key);
}
if (containsKey)
{
var docs = typeDocs[key];
var start = docs.FindIndex(n => n.InnerText == "Access functions:");
start = start >= 0 ? start : docs.FindIndex(n => n.InnerText == "Notifier signal:");
var end = docs.FindLastIndex(n => n.Name == "div");
if (start >= 0 && end >= 0)
{
for (var i = end; i >= start; i--)
{
docs.RemoveAt(i);
}
if (string.IsNullOrWhiteSpace(docs[start - 1].OuterHtml))
{
docs.RemoveAt(start - 1);
}
}
var text = ConstructDocumentText(docs.Skip(1));
property.Comment = new RawComment { BriefText = StripTags(text) };
}
}
}
}