[svn] r6949: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Formatter.n

kliss svnadmin at nemerle.org
Sun Nov 19 01:47:13 CET 2006


Log:
Removed warnings.

Author: kliss
Date: Sun Nov 19 01:47:06 2006
New Revision: 6949

Modified:
   vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Formatter.n

Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Formatter.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Formatter.n	(original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/CodeModel/Formatter.n	Sun Nov 19 01:47:06 2006
@@ -61,7 +61,7 @@
       
       def declNS = this.Engine.Project.CompileUnits[filePath];
       
-      def source = ProjectManager.SimpleSourceTextManager(this.Engine.Sources[filePath]);
+      //def source = ProjectManager.SimpleSourceTextManager(this.Engine.Sources[filePath]);
            
       def usings = SCG.List.[Decl.Using]();
       mutable usingsLocation = Location.Default;
@@ -86,8 +86,9 @@
         def replacement = System.Text.StringBuilder();
         foreach(usingDecl in usings)
         {
-          def namespaceName = usingDecl.Name.ToString(".");
-          replacement.Append($"using $namespaceName;$(Environment.NewLine)");
+          _ = replacement.AppendFormat("using {0};{1}", 
+                      usingDecl.Name.ToString("."), 
+                      Environment.NewLine);
         }
           
         def fr = FormatterResult(usingsLocation.Column - 1, usingsLocation.Line - 1, 



More information about the svn mailing list