append_exceptions (documentation.find_taglets (null, typeof(Taglets.Throws)));
append_see (documentation.find_taglets (null, typeof(Taglets.See)));
append_since (documentation.find_taglets (null, typeof(Taglets.Since)));
- append_deprecated (documentation.find_taglets (null, typeof(Taglets.Deprecated)));
}
public override void render_children (ContentElement element) {
}
}
- public void append_deprecated (Gee.List<Content.Taglet> taglets) {
- foreach (Content.Taglet _taglet in taglets) {
- Taglets.Deprecated taglet = _taglet as Taglets.Deprecated;
- if (taglet == null) {
- // ignore unexpected taglets
- continue ;
- }
-
- if (separated == false) {
- writer.text ("\n");
- }
-
- writer.set_wrap (false);
- writer.text ("\nDeprecated: ");
- taglet.accept_children (this);
- writer.text (": ");
- separated = true;
- writer.set_wrap (true);
-
- // ignore multiple occurrences
- return ;
- }
- }
-
public void append_see (Gee.List<Content.Taglet> taglets) {
bool first = true;
foreach (Content.Taglet _taglet in taglets) {
public override void check (Api.Tree api_root, Api.Node container, string file_path, ErrorReporter reporter, Settings settings) {
base.check (api_root, container, file_path, reporter, settings);
+ reporter.simple_warning ("warning: @deprecated is deprecated. Use [Deprecated]");
}
public override void accept (ContentVisitor visitor) {