diff options
author | Ankit Jain <radical@corewars.org> | 2006-06-07 14:10:39 +0400 |
---|---|---|
committer | Ankit Jain <radical@corewars.org> | 2006-06-07 14:10:39 +0400 |
commit | 2df0023352dacdd8f578b5a54e7f2ad1fd80d04a (patch) | |
tree | 960d34bd1e6b4db31821de7d504e97547b491811 /mcs/ilasm/parser | |
parent | eb91d44a17050ea1bed448a6ce655e3c03a09e66 (diff) |
In ilasm/codegen:
* TypeDef.cs (TypeDef.AddFieldDef):
(TypeDef.Define): Use Report.Warning instead of Console.Error.WriteLine
(TypeDef.AddMethodDef): Likewise. Also, use methoddef.Location .
* ExternTable.cs (ExternTable.GetTypeRef): Likewise.
* MethodDef.cs (MethodDef.StartLocation): New.
In ilasm:
* Report.cs (Report.FilePath): New, static property.
(Report.Error): Remove overload with file_path param.
(Report.Warning): New.
* Driver.cs (DriverMain.Run): Set Report.FilePath .
(DriverMain.ProcessFile): Update use of Report.Error .
In ilasm/parser:
* ILParser.jay : Update to use Report.Warning instead of
Console.Error.WriteLine
svn path=/trunk/mcs/; revision=61521
Diffstat (limited to 'mcs/ilasm/parser')
-rw-r--r-- | mcs/ilasm/parser/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/ilasm/parser/ILParser.jay | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/mcs/ilasm/parser/ChangeLog b/mcs/ilasm/parser/ChangeLog index 3987b9d7d09..470b98ef8b2 100644 --- a/mcs/ilasm/parser/ChangeLog +++ b/mcs/ilasm/parser/ChangeLog @@ -1,3 +1,8 @@ +2006-06-07 Ankit Jain <jankit@novell.com> + + * ILParser.jay : Update to use Report.Warning instead of + Console.Error.WriteLine + 2006-06-01 Ankit Jain <jankit@novell.com> * ILParser.jay (instr | INSTR_PARAM ..): Report error if the param is not diff --git a/mcs/ilasm/parser/ILParser.jay b/mcs/ilasm/parser/ILParser.jay index 27768ff51b3..c7dc4318018 100644 --- a/mcs/ilasm/parser/ILParser.jay +++ b/mcs/ilasm/parser/ILParser.jay @@ -60,7 +60,7 @@ namespace Mono.ILASM { if ((action == System.Security.Permissions.SecurityAction.RequestMinimum ||
action == System.Security.Permissions.SecurityAction.RequestOptional ||
action == System.Security.Permissions.SecurityAction.RequestRefuse) && !for_assembly) {
- Console.Error.WriteLine (String.Format ("System.Security.Permissions.SecurityAction '{0}' is not valid for this declaration", action));
+ Report.Warning (String.Format ("System.Security.Permissions.SecurityAction '{0}' is not valid for this declaration", action));
return false;
}
@@ -2142,7 +2142,7 @@ method_decl : D_EMITBYTE int32 codegen.CurrentCustomAttrTarget = param;
if (param == null) {
- Console.Error.WriteLine ("{0} Warning -- invalid param index ({1}) with .param", tokenizer.Location, index);
+ Report.Warning (tokenizer.Location, String.Format ("invalid param index ({0}) with .param", index));
break;
}
if ($5 != null)
|