示例#1
0
        public override string GenerateMemberFullName(NameGeneratorContext context, XElement node)
        {
            string memberDefName           = YamlUtility.RegularizeName(YamlUtility.ParseMemberName(node.NullableElement("definition").NullableValue(), node.NullableElement("argsstring").NullableValue()), Constants.Dot);
            string regularizedCompoundName = YamlUtility.RegularizeName(context.CurrentChange.Name, Constants.Dot);
            int    indexOfMemberFullName   = memberDefName.IndexOf(regularizedCompoundName);

            return(String.IsNullOrEmpty(regularizedCompoundName) || String.IsNullOrEmpty(memberDefName) || indexOfMemberFullName == -1 ? memberDefName : memberDefName.Substring(indexOfMemberFullName));
        }
示例#2
0
 public override string GenerateMemberName(NameGeneratorContext context, XElement node)
 {
     return(YamlUtility.ParseMemberName(node.NullableElement("name").NullableValue(), node.NullableElement("argsstring").NullableValue()));
 }
示例#3
0
 public override string GenerateMemberFullName(NameGeneratorContext context, XElement node)
 {
     return(YamlUtility.RegularizeName(YamlUtility.ParseMemberName(node.NullableElement("definition").NullableValue(), node.NullableElement("argsstring").NullableValue()), Constants.Dot));
 }