[Monodevelop-patches-list] r1503 - in trunk/MonoDevelop/src: AddIns/BackendBindings/CSharpBinding/Parser AddIns/BackendBindings/CSharpBinding/Parser/SharpDevelopTree AddIns/BackendBindings/JavaBinding/Parser/SharpDevelopTree Main/Base/Internal/Parser/Implementations Main/Base/Internal/Parser/ReflectionLayer
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Sun Apr 25 23:08:30 EDT 2004
Author: tberman
Date: 2004-04-25 23:08:30 -0400 (Sun, 25 Apr 2004)
New Revision: 1503
Modified:
trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Parser/CSharpVisitor.cs
trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Parser/Resolver.cs
trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Parser/SharpDevelopTree/Constructor.cs
trunk/MonoDevelop/src/AddIns/BackendBindings/JavaBinding/Parser/SharpDevelopTree/Constructor.cs
trunk/MonoDevelop/src/Main/Base/Internal/Parser/Implementations/AbstractMethod.cs
trunk/MonoDevelop/src/Main/Base/Internal/Parser/ReflectionLayer/ReflectionMethod.cs
Log:
randomness, fixes some stupid shit
Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Parser/CSharpVisitor.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Parser/CSharpVisitor.cs 2004-04-25 22:38:00 UTC (rev 1502)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Parser/CSharpVisitor.cs 2004-04-26 03:08:30 UTC (rev 1503)
@@ -122,6 +122,7 @@
c.BaseTypes.Add(type);
}
}
+ Console.WriteLine (c);
currentClass.Push(c);
object ret = typeDeclaration.AcceptChildren(this, data);
currentClass.Pop();
@@ -138,7 +139,7 @@
{
DefaultRegion region = GetRegion(methodDeclaration.StartLocation, methodDeclaration.EndLocation);
DefaultRegion bodyRegion = GetRegion(methodDeclaration.EndLocation, methodDeclaration.Body != null ? methodDeclaration.Body.EndLocation : new Point(-1, -1));
-// Console.WriteLine(region + " --- " + bodyRegion);
+ // Console.WriteLine(region + " --- " + bodyRegion);
ReturnType type = new ReturnType(methodDeclaration.TypeReference);
Class c = (Class)currentClass.Peek();
Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Parser/Resolver.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Parser/Resolver.cs 2004-04-25 22:38:00 UTC (rev 1502)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Parser/Resolver.cs 2004-04-26 03:08:30 UTC (rev 1503)
@@ -191,6 +191,8 @@
return new ResolveResult(namespaces, classes);
}
Console.WriteLine("Returning Result!");
+ if (returnClass.FullyQualifiedName == "System.Void")
+ return null;
return new ResolveResult(returnClass, ListMembers(new ArrayList(), returnClass));
}
Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Parser/SharpDevelopTree/Constructor.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Parser/SharpDevelopTree/Constructor.cs 2004-04-25 22:38:00 UTC (rev 1502)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/CSharpBinding/Parser/SharpDevelopTree/Constructor.cs 2004-04-26 03:08:30 UTC (rev 1503)
@@ -14,7 +14,7 @@
public Constructor(Modifier m, IRegion region, IRegion bodyRegion)
{
- FullyQualifiedName = "#ctor";
+ FullyQualifiedName = "ctor";
this.region = region;
this.bodyRegion = bodyRegion;
modifiers = (ModifierEnum)m;
Modified: trunk/MonoDevelop/src/AddIns/BackendBindings/JavaBinding/Parser/SharpDevelopTree/Constructor.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/BackendBindings/JavaBinding/Parser/SharpDevelopTree/Constructor.cs 2004-04-25 22:38:00 UTC (rev 1502)
+++ trunk/MonoDevelop/src/AddIns/BackendBindings/JavaBinding/Parser/SharpDevelopTree/Constructor.cs 2004-04-26 03:08:30 UTC (rev 1503)
@@ -14,7 +14,7 @@
public Constructor(Modifier m, IRegion region, IRegion bodyRegion)
{
- FullyQualifiedName = "#ctor";
+ FullyQualifiedName = "ctor";
this.region = region;
this.bodyRegion = bodyRegion;
modifiers = (ModifierEnum)m;
Modified: trunk/MonoDevelop/src/Main/Base/Internal/Parser/Implementations/AbstractMethod.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Internal/Parser/Implementations/AbstractMethod.cs 2004-04-25 22:38:00 UTC (rev 1502)
+++ trunk/MonoDevelop/src/Main/Base/Internal/Parser/Implementations/AbstractMethod.cs 2004-04-26 03:08:30 UTC (rev 1503)
@@ -34,7 +34,7 @@
public virtual bool IsConstructor {
get {
- return returnType == null || Name == "#ctor";
+ return returnType == null || Name == "ctor";
}
}
Modified: trunk/MonoDevelop/src/Main/Base/Internal/Parser/ReflectionLayer/ReflectionMethod.cs
===================================================================
--- trunk/MonoDevelop/src/Main/Base/Internal/Parser/ReflectionLayer/ReflectionMethod.cs 2004-04-25 22:38:00 UTC (rev 1502)
+++ trunk/MonoDevelop/src/Main/Base/Internal/Parser/ReflectionLayer/ReflectionMethod.cs 2004-04-26 03:08:30 UTC (rev 1503)
@@ -50,9 +50,6 @@
if (matched)
return node;
}
- Console.WriteLine ("Info:");
- Console.WriteLine (s);
- Console.WriteLine ("No match found - {2}.{0} {1}", methodBase.Name, GetParamList (methodBase), methodBase.DeclaringType.FullName);
return null;
}
More information about the Monodevelop-patches-list
mailing list