diff --git a/src/Microsoft.Content.Build.Code2Yaml.Steps/PreprocessXml.cs b/src/Microsoft.Content.Build.Code2Yaml.Steps/PreprocessXml.cs index 9932884..c3dd8cd 100644 --- a/src/Microsoft.Content.Build.Code2Yaml.Steps/PreprocessXml.cs +++ b/src/Microsoft.Content.Build.Code2Yaml.Steps/PreprocessXml.cs @@ -225,17 +225,20 @@ private static string PreprocessMemberUid(XElement memberDef) builder.Append(parentId); builder.Append(Constants.IdSpliter); builder.Append(memberDef.Element("name").Value); - builder.Append("("); - var parameters = memberDef.XPathSelectElements("param/type").ToList(); - if (parameters.Count > 0) + if (memberDef.Attribute("kind")?.Value == "function") { - builder.Append(parameters[0].Value); - } - foreach (var param in parameters.Skip(1)) - { - builder.Append("," + param.Value); + builder.Append("("); + var parameters = memberDef.XPathSelectElements("param/type").ToList(); + if (parameters.Count > 0) + { + builder.Append(parameters[0].Value); + } + foreach (var param in parameters.Skip(1)) + { + builder.Append("," + param.Value); + } + builder.Append(")"); } - builder.Append(")"); return builder.ToString(); }