Exemplo n.º 1
0
 public static void WriteObsoleteAttribute(CodeWriter code, ServiceElementWithAttributesInfo element)
 {
     if (element.IsObsolete)
     {
         code.WriteLine("[Obsolete]");
     }
 }
Exemplo n.º 2
0
 public static void WriteObsoleteAttribute(CodeWriter code, ServiceElementWithAttributesInfo element)
 {
     if (element.IsObsolete)
     {
         var message = element.ObsoleteMessage;
         code.WriteLine(message != null ? $"[Obsolete({CreateString(message)})]" : "[Obsolete]");
     }
 }
Exemplo n.º 3
0
 private static void WriteJsDoc(CodeWriter code, ServiceElementWithAttributesInfo element)
 {
     WriteJsDoc(code, (element as IServiceHasSummary)?.Summary, isObsolete: element.IsObsolete, obsoleteMessage: element.ObsoleteMessage);
 }
Exemplo n.º 4
0
 public static ServiceAttributeInfo TryGetHttpAttribute(this ServiceElementWithAttributesInfo element) => element.TryGetAttribute("http");
Exemplo n.º 5
0
 private protected IReadOnlyList <ServiceAttributeParameterInfo> GetHttpParameters(ServiceElementWithAttributesInfo element) =>
 element.TryGetHttpAttribute()?.Parameters ?? Array.Empty <ServiceAttributeParameterInfo>();