In ilasm/tests:
commit49c0cba4f051a2d0233264c27e2e2c74720aee34
authorankit <ankit@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Sun, 19 Feb 2006 13:59:36 +0000 (19 13:59 +0000)
committerankit <ankit@e3ebcda4-bce8-0310-ba0a-eca2169e7518>
Sun, 19 Feb 2006 13:59:36 +0000 (19 13:59 +0000)
treeb9b63615e3920aa4163f4016d0781a7ed0eb22f1
parent0f1778665b7c2e042bda6effe1deb63f37a426ce
In ilasm/tests:
* invalid-method.il: New. Reference to undefined method.
* invalid-field.il: New. Reference to undefined field.

In ilasm/codegen:
* CodeGen.cs (CodeGen.Write): Use only filename as the name of the
module.
* TypeDef.cs (TypeDef.ResolveAsMethodRef): New.
(TypeDef.ResolveMethod): Change signature to take ret_type, params
etc instead of a signature string. Also, if the method does not exist,
then use ResolveAsMethodRef to return a MethodRef for it.
(TypeDef.ResolveVarargMethod): Likewise.
(TypeDef.ResolveField): Likewise.
* MethodRef.cs (MethodRef.Resolve): Update use of TypeDef.Resolve*
methods.
* FieldRef.cs (FieldRef.Resolve): Update use of TypeDef.ResolveField.
* PropertyDef.cs (PropertyDef.AsMethodDef): Throws an exception is the
method is not a MethodDef.
(PropertyDef.Define): Use AsMethodDef to ensure that get/set/other are
MethodDefs.
* EventDef.cs (EventDef.AsMethodDef): Same as PropertyDef.
(EventDef.Define): Likewise.

git-svn-id: svn+ssh://mono-cvs.ximian.com/source/trunk/mcs@57045 e3ebcda4-bce8-0310-ba0a-eca2169e7518
ilasm/codegen/ChangeLog
ilasm/codegen/CodeGen.cs
ilasm/codegen/EventDef.cs
ilasm/codegen/FieldRef.cs
ilasm/codegen/MethodRef.cs
ilasm/codegen/PropertyDef.cs
ilasm/codegen/TypeDef.cs
ilasm/tests/ChangeLog
ilasm/tests/invalid-field.il [new file with mode: 0644]
ilasm/tests/invalid-method.il [new file with mode: 0644]