public static void WriteObsoleteAttribute(CodeWriter code, IServiceElementInfo element)
 {
     if (element.IsObsolete())
     {
         code.WriteLine("[Obsolete]");
     }
 }
Exemplo n.º 2
0
 public static void WriteObsoleteAttribute(CodeWriter code, IServiceElementInfo element)
 {
     if (element.IsObsolete())
     {
         string message = element.TryGetObsoleteMessage();
         code.WriteLine(message != null ? $"[Obsolete({CreateString(message)})]" : "[Obsolete]");
     }
 }
Exemplo n.º 3
0
 private static void WriteJSDoc(CodeWriter code, IServiceElementInfo element)
 {
     WriteJSDoc(code, element.Summary, isObsolete: element.IsObsolete(), obsoleteMessage: element.TryGetObsoleteMessage());
 }
Exemplo n.º 4
0
 private static bool?GetObsoleteOrNull(IServiceElementInfo info)
 {
     return(info.IsObsolete() ? true : default(bool?));
 }