예제 #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 GenerateTypeName(NameGeneratorContext context, XElement node, bool withTypeParameters)
        {
            string name = YamlUtility.RegularizeName(YamlUtility.ParseNameFromFullName(context.CurrentChange.Type, context.ParentChange?.Name, context.CurrentChange.Name), Constants.Dot);

            if (node != null && withTypeParameters)
            {
                name += GetTypeParameterString(node);
            }
            return(name);
        }
예제 #3
0
 public abstract string GenerateMemberFullName(NameGeneratorContext context, XElement node);
예제 #4
0
 public abstract string GenerateTypeFullName(NameGeneratorContext context, XElement node, bool withTypeParameters);
예제 #5
0
 public abstract string GenerateLabel(NameGeneratorContext context, XElement node);
예제 #6
0
 public override string GenerateLabel(NameGeneratorContext context, XElement node)
 {
     return(node.NullableElement("label").NullableValue());
 }
예제 #7
0
 public override string GenerateId(NameGeneratorContext context, XElement node)
 {
     return(YamlUtility.ParseIdFromUid(node.NullableAttribute("id").NullableValue(), Constants.NameSpliter));
 }
예제 #8
0
 public override string GenerateMemberName(NameGeneratorContext context, XElement node)
 {
     return(YamlUtility.ParseMemberName(node.NullableElement("name").NullableValue(), node.NullableElement("argsstring").NullableValue()));
 }
예제 #9
0
 public override string GenerateTypeName(NameGeneratorContext context, XElement node, bool withTypeParameters)
 {
     return(YamlUtility.ParseNameFromFullName(context.CurrentChange.Type, context.ParentChange?.Name, context.CurrentChange.Name));
 }
예제 #10
0
 public override string GenerateTypeFullName(NameGeneratorContext context, XElement node, bool withTypeParameters)
 {
     return(context.CurrentChange.Name);
 }
예제 #11
0
 public override string GenerateLabel(NameGeneratorContext context, XElement node)
 {
     return(YamlUtility.RegularizeName(node.NullableElement("label").NullableValue(), Constants.Dot));
 }
예제 #12
0
 public override string GenerateMemberFullName(NameGeneratorContext context, XElement node)
 {
     return(YamlUtility.RegularizeName(YamlUtility.ParseMemberName(node.NullableElement("definition").NullableValue(), node.NullableElement("argsstring").NullableValue()), Constants.Dot));
 }