In class/PEAPI:
authorAnkit Jain <radical@corewars.org>
Tue, 12 Apr 2005 14:56:28 +0000 (14:56 -0000)
committerAnkit Jain <radical@corewars.org>
Tue, 12 Apr 2005 14:56:28 +0000 (14:56 -0000)
commit509a0e4811aec54fcf83fce1f2206afef83307b3
tree1503dc55b1aeb8ce49752162082e4d25a2c317ce
parent28d85aaf9d7d76a6e7346202f0f9d467b5929872
In class/PEAPI:
2005-04-12  Ankit Jain  <ankit@corewars.org>

* PEAPI.cs (CustomAttribute.ctor): Dont throw
NotYetImplementedException.
(MethodSemantics.SortKey): Should be sorted by
'Association' column.

In ilasm/codegen:
2005-04-12  Ankit Jain  <ankit@corewars.org>

* CustomAttr.cs (ICustomAttrTarget): New interface.
* TypeDef.cs: Implement ICustomAttrTarget.
* FieldDef.cs, PropertyDef.cs, ParamDef.cs, EventDef.cs
(AddCustomAttribute): Implement ICustomAttrTarget
(.Resolve): Add custom attributes.
* CodeGen.cs (CurrentCustomAttrTarget): New. Property for
current CustomAttr target.
(BeginTypeDef, BeginMethodDef, BeginAssemblyRef): Set
current_customattrtarget accordingly.
* ExternTable.cs (ExternRef): Implement ICustomAttrTarget.
(ExternModule.Resolve): Add custom attributes to ModuleRef.
(ExternAssembly.Resolve): Add custom attributes to AssemblyRef.
* MethodDef.cs: Implement ICustomAttrTarget and add custom
attributes.
(GetParam): New. Get ParamDef by index.

In ilasm/parser:
2005-04-12  Ankit Jain  <ankit@corewars.org>

* ILParser.jay (class_decl, method_decl, prop_decl,
assemblyref_decl | customattr_decl): Use
codegen.CurrentCustomAttrTarget for adding custom
attributes.
(field_decl, method_decl, event_head, prop_head):
Set codegen.CurrentCustomAttrTarget

svn path=/trunk/mcs/; revision=42836
14 files changed:
mcs/class/PEAPI/ChangeLog
mcs/class/PEAPI/PEAPI.cs
mcs/ilasm/codegen/ChangeLog
mcs/ilasm/codegen/CodeGen.cs
mcs/ilasm/codegen/CustomAttr.cs
mcs/ilasm/codegen/EventDef.cs
mcs/ilasm/codegen/ExternTable.cs
mcs/ilasm/codegen/FieldDef.cs
mcs/ilasm/codegen/MethodDef.cs
mcs/ilasm/codegen/ParamDef.cs
mcs/ilasm/codegen/PropertyDef.cs
mcs/ilasm/codegen/TypeDef.cs
mcs/ilasm/parser/ChangeLog
mcs/ilasm/parser/ILParser.jay