18 using Newtonsoft.Json;
19 using System.Reflection;
26 [AttributeUsage(AttributeTargets.All, AllowMultiple =
true)]
27 [DocumentationAttribute(
"Reference")]
32 private static readonly
string BasePath =
33 Attribute.FileName.Substring(0, Attribute.FileName.LastIndexOf(
"Common", StringComparison.Ordinal));
38 [JsonProperty(PropertyName =
"tag")]
39 public string Tag {
get; }
44 [JsonProperty(PropertyName =
"weight")]
50 [JsonProperty(PropertyName =
"line")]
56 [JsonProperty(PropertyName =
"fileName")]
63 public override object TypeId => base.TypeId;
69 [System.Runtime.CompilerServices.CallerLineNumber]
int line = 0,
70 [System.Runtime.CompilerServices.CallerFilePath]
string fileName =
"")
78 FileName = fileName.Replace(BasePath,
string.Empty, StringComparison.InvariantCultureIgnoreCase);