Author: spouliot
Date: 2005-11-01 15:06:17 -0500 (Tue, 01 Nov 2005)
New Revision: 52457
Modified:
trunk/mcs/class/System/System.CodeDom.Compiler/ChangeLog
trunk/mcs/class/System/System.CodeDom.Compiler/CodeGenerator.cs
Log:
2005-11-01 Sebastien Pouliot <[EMAIL PROTECTED]>
* CodeGenerator.cs: Added/stubbed missing 2.0 stuff.
Modified: trunk/mcs/class/System/System.CodeDom.Compiler/ChangeLog
===================================================================
--- trunk/mcs/class/System/System.CodeDom.Compiler/ChangeLog 2005-11-01
20:05:52 UTC (rev 52456)
+++ trunk/mcs/class/System/System.CodeDom.Compiler/ChangeLog 2005-11-01
20:06:17 UTC (rev 52457)
@@ -1,3 +1,7 @@
+2005-11-01 Sebastien Pouliot <[EMAIL PROTECTED]>
+
+ * CodeGenerator.cs: Added/stubbed missing 2.0 stuff.
+
2005-11-01 Sebastien Pouliot <[EMAIL PROTECTED]>
CodeDomProvider.cs: Added missing 2.0 methods. Added CAS permissions.
Modified: trunk/mcs/class/System/System.CodeDom.Compiler/CodeGenerator.cs
===================================================================
--- trunk/mcs/class/System/System.CodeDom.Compiler/CodeGenerator.cs
2005-11-01 20:05:52 UTC (rev 52456)
+++ trunk/mcs/class/System/System.CodeDom.Compiler/CodeGenerator.cs
2005-11-01 20:06:17 UTC (rev 52457)
@@ -57,6 +57,14 @@
//
// Properties
//
+#if NET_2_0
+ protected CodeTypeDeclaration CurrentClass {
+ get {
+ return currentType;
+ }
+ }
+#endif
+
protected CodeTypeMember CurrentMember {
get {
return currentMember;
@@ -65,8 +73,8 @@
protected string CurrentMemberName {
get {
- if (currentType == null)
- return null;
+ if (currentMember == null)
+ return "<% unknown %>";
return currentMember.Name;
}
}
@@ -74,7 +82,7 @@
protected string CurrentTypeName {
get {
if (currentType == null)
- return null;
+ return "<% unknown %>";
return currentType.Name;
}
}
@@ -175,6 +183,13 @@
}
protected abstract void GenerateCastExpression
(CodeCastExpression e);
+#if NET_2_0
+ [MonoTODO]
+ public virtual void GenerateCodeFromMember (CodeTypeMember
member, TextWriter writer, CodeGeneratorOptions options)
+ {
+ throw new NotImplementedException ();
+ }
+#endif
protected abstract void GenerateComment (CodeComment comment);
protected virtual void GenerateCommentStatement
(CodeCommentStatement statement)
@@ -234,7 +249,13 @@
{
Output.Write (d.ToString
(CultureInfo.InvariantCulture));
}
-
+#if NET_2_0
+ [MonoTODO]
+ protected virtual void GenerateDefaultValueExpression
(CodeDefaultValueExpression e)
+ {
+ throw new NotImplementedException ();
+ }
+#endif
protected abstract void GenerateDelegateCreateExpression
(CodeDelegateCreateExpression e);
protected abstract void GenerateDelegateInvokeExpression
(CodeDelegateInvokeExpression e);
@@ -1252,12 +1273,10 @@
typeof (CodeEntryPointMethod)
};
-
#if NET_2_0
protected virtual void GenerateDirectives
(CodeDirectiveCollection directives)
{
}
#endif
-
}
}
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches