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]");
+ reporter.simple_warning ("%s: %s: @deprecated: warning: @deprecated is deprecated. Use [Deprecated]", file_path, container.get_full_name ());
}
public override void accept (ContentVisitor visitor) {
if (_symbol == null && symbol_name != "main") {
// TODO use ContentElement's source reference
- reporter.simple_warning ("%s: %s does not exist", container.get_full_name (), symbol_name);
+ string node_segment = (container == null)? "" : container.get_full_name () + ": ";
+ reporter.simple_warning ("%s: %s@link: warning: %s does not exist", file_path, node_segment, symbol_name);
}
base.check (api_root, container, file_path, reporter, settings);
}
if (this.parameter == null) {
- reporter.simple_warning ("%s: Unknown parameter `%s'", container.get_full_name (), parameter_name);
+ reporter.simple_warning ("%s: %s: @param: warning: Unknown parameter `%s'", file_path, container.get_full_name (), parameter_name);
}
base.check (api_root, container, file_path, reporter, settings);
} else if (container is Api.Signal) {
type_ref = ((Api.Signal) container).return_type;
} else {
- reporter.simple_warning ("@return used outside method/delegate/signal context");
+ reporter.simple_warning ("%s: %s: @return: warning: @return used outside method/delegate/signal context", file_path, container.get_full_name ());
}
if (type_ref != null && type_ref.data_type == null) {
- reporter.simple_warning ("Return description declared for void function");
+ reporter.simple_warning ("%s: %s: @return: warning: Return description declared for void function", file_path, container.get_full_name ());
}
base.check (api_root, container, file_path, reporter, settings);
if (symbol == null) {
// TODO use ContentElement's source reference
- reporter.simple_warning ("%s does not exist", symbol_name);
+ reporter.simple_warning ("%s: %s: @see: warning: %s does not exist", file_path, container.get_full_name (), symbol_name);
}
}
public override void check (Api.Tree api_root, Api.Node container, string file_path, ErrorReporter reporter, Settings settings) {
// context check:
if (container is Api.Method == false && container is Api.Delegate == false) {
- reporter.simple_warning ("@throws used outside method/delegate context");
+ reporter.simple_warning ("%s: %s: @throws: warning: @throws used outside method/delegate context", file_path, container.get_full_name ());
base.check (api_root, container, file_path, reporter, settings);
return ;
}
error_domain = api_root.search_symbol_str (container, error_domain_name);
if (error_domain == null) {
// TODO use ContentElement's source reference
- reporter.simple_error ("%s: %s does not exist", container.get_full_name (), error_domain_name);
+ reporter.simple_error ("%s: %s: @throws: warning: %s does not exist", file_path, container.get_full_name (), error_domain_name);
base.check (api_root, container, file_path, reporter, settings);
return ;
}
}
}
if (report_warning) {
- reporter.simple_warning ("%s: @throws: %s does not exist in exception list", container.get_full_name (), error_domain_name);
+ reporter.simple_warning ("%s: %s: @throws: warning: %s does not exist in exception list", file_path, container.get_full_name (), error_domain_name);
}
base.check (api_root, container, file_path, reporter, settings);