public Error ( int code, Mono.CSharp.Location loc, string error ) : void | ||
code | int | |
loc | Mono.CSharp.Location | |
error | string | |
return | void |
public void Error (int code, Location loc, string error)
{
if (reporting_disabled > 0)
return;
ErrorMessage msg = new ErrorMessage (code, loc, error, extra_information);
extra_information.Clear ();
printer.Print (msg);
}
Report::Error ( int code, Mono.CSharp.Location loc, string format, string arg ) : void | |
Report::Error ( int code, Mono.CSharp.Location loc, string format, string arg1, string arg2 ) : void | |
Report::Error ( int code, string error ) : void | |
Report::Error ( int code, string format, string arg ) : void | |
Report::Error ( int code, string format, string arg1, string arg2 ) : void |
public static void Error_InvalidConstantType(TypeSpec t, Location loc, Report Report) { if (t.IsGenericParameter) { Report.Error (1959, loc, "Type parameter `{0}' cannot be declared const", TypeManager.CSharpName (t)); } else { Report.Error (283, loc, "The type `{0}' cannot be declared const", TypeManager.CSharpName (t)); } }