Author: fejj
Date: 2007-05-23 16:44:42 -0400 (Wed, 23 May 2007)
New Revision: 77869
Modified:
trunk/monodevelop/Extras/CSharpBinding/ChangeLog
trunk/monodevelop/Extras/CSharpBinding/Parser/CodeGenerator.cs
Log:
2007-05-23 Jeffrey Stedfast <[EMAIL PROTECTED]>
* Parser/CodeGenerator.cs (GetOptions): Override our base
implementation.
Modified: trunk/monodevelop/Extras/CSharpBinding/ChangeLog
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/ChangeLog 2007-05-23 20:44:32 UTC
(rev 77868)
+++ trunk/monodevelop/Extras/CSharpBinding/ChangeLog 2007-05-23 20:44:42 UTC
(rev 77869)
@@ -1,5 +1,10 @@
2007-05-23 Jeffrey Stedfast <[EMAIL PROTECTED]>
+ * Parser/CodeGenerator.cs (GetOptions): Override our base
+ implementation.
+
+2007-05-23 Jeffrey Stedfast <[EMAIL PROTECTED]>
+
* Gui/CSharpTextEditorExtension.cs:
MonoDevelop.SourceEditor.Properties namespace no longer exists.
Modified: trunk/monodevelop/Extras/CSharpBinding/Parser/CodeGenerator.cs
===================================================================
--- trunk/monodevelop/Extras/CSharpBinding/Parser/CodeGenerator.cs
2007-05-23 20:44:32 UTC (rev 77868)
+++ trunk/monodevelop/Extras/CSharpBinding/Parser/CodeGenerator.cs
2007-05-23 20:44:42 UTC (rev 77869)
@@ -27,17 +27,22 @@
//
using System;
+using System.IO;
+using System.Drawing;
using System.CodeDom;
using System.CodeDom.Compiler;
+using System.Text.RegularExpressions;
using Microsoft.CSharp;
-using System.IO;
+
+using MonoDevelop.Ide.Gui.Content;
+
using MonoDevelop.Projects.Parser;
using MonoDevelop.Projects.Text;
using MonoDevelop.Projects.CodeGeneration;
+
using ICSharpCode.NRefactory.Parser;
using ICSharpCode.NRefactory.Parser.AST;
-using System.Drawing;
-using System.Text.RegularExpressions;
+
using CSharpBinding.Parser.SharpDevelopTree;
using ClassType = MonoDevelop.Projects.Parser.ClassType;
@@ -385,6 +390,20 @@
return refs;
}
+
+ protected override CodeGeneratorOptions GetOptions (bool
isMethod)
+ {
+ CodeGeneratorOptions ops = new CodeGeneratorOptions ();
+ if (TextEditorProperties.ConvertTabsToSpaces)
+ ops.IndentString = new String (' ',
TextEditorProperties.TabIndent);
+ else
+ ops.IndentString = "\t";
+
+ if (isMethod)
+ ops.BracingStyle = "C";
+
+ return ops;
+ }
}
class MemberRefactoryVisitor: AbstractAstVisitor
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches