using System.Reflection;
using System.Reflection.Emit;
using System.Runtime.CompilerServices;
-using Mono.CSharp ;
+using Mono.MonoBASIC ;
namespace Mono.MonoBASIC
{
{
public static void AddSpecializedAttribute(ref Attributes attrs, string attributeName, ArrayList args, Location loc)
{
- Mono.CSharp.Attribute specialAttr = new Mono.CSharp.Attribute(attributeName, args, loc);
+ Mono.MonoBASIC.Attribute specialAttr = new Mono.MonoBASIC.Attribute(attributeName, args, loc);
ArrayList al = new ArrayList();
al.Add(specialAttr);
- AttributeSection asec = new AttributeSection(null, al);
if (attrs == null)
- attrs = new Attributes(asec, loc);
+ attrs = new Attributes(al);
else
- attrs.AddAttribute(asec);
+ attrs.Add(al);
}
}
/// <summary>
/// Summary description for module.
/// </summary>
- public class Module : Mono.CSharp.Class
+ public class Module : Mono.MonoBASIC.Class
{
// <summary>
// Modifiers allowed in a class declaration
;
public Module(TypeContainer parent, string name, int mod, Attributes attrs, Location l)
- : base (parent, name, 0, null, l)
+ : base (parent, name, 0, attrs, l)
{
if (parent.Parent != null)
Report.Error (30617, l,
// add specialized attribute
Utils.AddSpecializedAttribute(ref attrs, "Microsoft.VisualBasic.CompilerServices.StandardModuleAttribute", null, l);
- this.attributes = attrs;
}
//