|
| 1 | +// Licensed to the .NET Foundation under one or more agreements. |
| 2 | +// The .NET Foundation licenses this file to you under the MIT license. |
| 3 | + |
| 4 | +using System; |
| 5 | + |
| 6 | +namespace Microsoft.AspNetCore.OpenApi.SourceGenerators.Xml; |
| 7 | + |
| 8 | +internal static class DocumentationCommentXmlNames |
| 9 | +{ |
| 10 | + public const string CElementName = "c"; |
| 11 | + public const string CodeElementName = "code"; |
| 12 | + public const string CompletionListElementName = "completionlist"; |
| 13 | + public const string DescriptionElementName = "description"; |
| 14 | + public const string ExampleElementName = "example"; |
| 15 | + public const string ExceptionElementName = "exception"; |
| 16 | + public const string IncludeElementName = "include"; |
| 17 | + public const string InheritdocElementName = "inheritdoc"; |
| 18 | + public const string ItemElementName = "item"; |
| 19 | + public const string ListElementName = "list"; |
| 20 | + public const string ListHeaderElementName = "listheader"; |
| 21 | + public const string ParaElementName = "para"; |
| 22 | + public const string ParameterElementName = "param"; |
| 23 | + public const string ParameterReferenceElementName = "paramref"; |
| 24 | + public const string PermissionElementName = "permission"; |
| 25 | + public const string PlaceholderElementName = "placeholder"; |
| 26 | + public const string PreliminaryElementName = "preliminary"; |
| 27 | + public const string RemarksElementName = "remarks"; |
| 28 | + public const string ReturnsElementName = "returns"; |
| 29 | + public const string SeeElementName = "see"; |
| 30 | + public const string SeeAlsoElementName = "seealso"; |
| 31 | + public const string SummaryElementName = "summary"; |
| 32 | + public const string TermElementName = "term"; |
| 33 | + public const string ThreadSafetyElementName = "threadsafety"; |
| 34 | + public const string TypeParameterElementName = "typeparam"; |
| 35 | + public const string TypeParameterReferenceElementName = "typeparamref"; |
| 36 | + public const string ValueElementName = "value"; |
| 37 | + public const string CrefAttributeName = "cref"; |
| 38 | + public const string HrefAttributeName = "href"; |
| 39 | + public const string FileAttributeName = "file"; |
| 40 | + public const string InstanceAttributeName = "instance"; |
| 41 | + public const string LangwordAttributeName = "langword"; |
| 42 | + public const string NameAttributeName = "name"; |
| 43 | + public const string PathAttributeName = "path"; |
| 44 | + public const string StaticAttributeName = "static"; |
| 45 | + public const string TypeAttributeName = "type"; |
| 46 | + |
| 47 | + public static bool ElementEquals(string name1, string name2, bool fromVb = false) |
| 48 | + { |
| 49 | + return string.Equals(name1, name2, fromVb ? StringComparison.Ordinal : StringComparison.OrdinalIgnoreCase); |
| 50 | + } |
| 51 | + |
| 52 | + public static bool AttributeEquals(string name1, string name2) |
| 53 | + { |
| 54 | + return string.Equals(name1, name2, StringComparison.Ordinal); |
| 55 | + } |
| 56 | + |
| 57 | + public static new bool Equals(object left, object right) |
| 58 | + { |
| 59 | + return object.Equals(left, right); |
| 60 | + } |
| 61 | +} |
0 commit comments