* class.cs : As, per vbc, there is a rootnamespace now, --main wasn't working anymore,
because it was expecting a fully qualified class name.
We now also test the name passed prepended by the rootnamespace.
* class.cs : Corrected warning "The keyword new is required on `Mono.CSharp.Property.Emit'
because it hides inherited member `PropertyBase.Emit'", by making it virtual
in PropertyBase and override in Property.
* makefile.gnu : test and test-gtk targets now depend on mbas.exe
svn path=/trunk/mcs/; revision=11845
+2003/02/22 Rafael Teixeira <rafaelteixeirabr@hotmail.com>\r
+ * class.cs : As, per vbc, there is a rootnamespace now, --main wasn't working anymore, \r
+ because it was expecting a fully qualified class name. \r
+ We now also test the name passed prepended by the rootnamespace.\r
+ * class.cs : Corrected warning "The keyword new is required on `Mono.CSharp.Property.Emit'\r
+ because it hides inherited member `PropertyBase.Emit'", by making it virtual\r
+ in PropertyBase and override in Property.\r
+ * makefile.gnu : test and test-gtk targets now depend on mbas.exe\r
+ \r
+\r
2003/02/19 Rafael Teixeira <rafaelteixeirabr@hotmail.com>\r
* mb-parser.jay : eliminated reduce/reduce conflict on duplicated rank_specifier rule
by renaming the one using brackets to bracketed_rank_specifier\r
if (Name == "Main" &&
((ModFlags & Modifiers.STATIC) != 0) &&
(RootContext.MainClass == null ||
- RootContext.MainClass == parent.TypeBuilder.FullName)){
+ RootContext.MainClass == parent.TypeBuilder.FullName ||
+ (RootContext.RootNamespace != null &&
+ RootContext.RootNamespace.Length > 0 &&
+ (RootContext.RootNamespace + "." + RootContext.MainClass) == parent.TypeBuilder.FullName))) {
if (IsEntryPoint (MethodBuilder, ParameterInfo)) {
if (RootContext.EntryPoint == null) {
RootContext.EntryPoint = MethodBuilder;
return true;
}
- public void Emit (TypeContainer tc)
+ public virtual void Emit (TypeContainer tc)
{
//
// The PropertyBuilder can be null for explicit implementations, in that
return true;
}
- public void Emit (TypeContainer tc)
+ public override void Emit (TypeContainer tc)
{
base.Emit (tc);
return WhatToDoNext.GoAhead;\r
}\r
\r
- [Option("Specifies the Class or Module that contains Sub Main.It can also be a Class that inherits from System.Windows.Forms.Form.", 'm', "main")]\r
+ [Option(@"Specifies the Class or Module that contains Sub Main.
+ It can also be a Class that inherits from System.Windows.Forms.Form.",
+ 'm', "main")]\r
public string main { set { RootContext.MainClass = value; } }\r
\r
// TODO: handle VB.NET [+|-] boolean syntax\r
RootContext.RootNamespace =\r
System.IO.Path.GetFileNameWithoutExtension(outputFileName);\r
}\r
- \r
+\r
if (!ParseAll()) // Phase 1\r
return;\r
\r
mkdir -p $(prefix)/bin/
$(INSTALL) -m 755 mbas.exe $(prefix)/bin/
-test:
+test: mbas.exe
mono mbas.exe --main WriteOK testmbas/WriteOK.vb
-test-gtk:
+test-gtk: mbas.exe
mono mbas.exe testmbas/gtk.vb -r gtk-sharp