+2007-08-31 Marek Safar <marek.safar@gmail.com>
+
+ * generic.cs (TypeParameter): Uses common Emit.
+ (.IsClsComplianceRequired): Is never required.
+
2007-08-31 Marek Safar <marek.safar@gmail.com>
* cs-parser.jay: Terminates query block correctly. Fixed orderby
/// <summary>
/// A type parameter from a generic type definition.
/// </summary>
- public class TypeParameter : MemberCore, IMemberContainer {
+ public class TypeParameter : MemberCore, IMemberContainer
+ {
string name;
DeclSpace decl;
GenericConstraints gc;
return true;
}
- public void EmitAttributes ()
+ public override void Emit ()
{
if (OptAttributes != null)
OptAttributes.Emit ();
+
+ base.Emit ();
}
public override string DocCommentHeader {
if (constraints != null)
gc = new InflatedConstraints (constraints, declaring);
}
+
+ public override bool IsClsComplianceRequired ()
+ {
+ return false;
+ }
protected class InflatedConstraints : GenericConstraints
{
public void EmitAttributes ()
{
for (int i = 0; i < TypeParameters.Length; i++)
- TypeParameters [i].EmitAttributes ();
+ TypeParameters [i].Emit ();
if (OptAttributes != null)
OptAttributes.Emit ();