[svn] r7579: vs-plugin/trunk: Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Heavy.Tests/Runner.n Nemerl...

VladD2 svnadmin at nemerle.org
Thu Apr 5 15:42:14 CEST 2007


Log:
Remove [Record] attribute from EngineCallbackStub class.
Some refactoring.

Author: VladD2
Date: Thu Apr  5 15:42:10 2007
New Revision: 7579

Modified:
   vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Heavy.Tests/Runner.n
   vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Refactoring/TestProjectTwo/   (props changed)
   vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Refactoring/TestProjectTwo/SmallTestsOne.n
   vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/TextManagement/EngineCallbackStub.n
   vs-plugin/trunk/Nemerle.VsIntegration/LanguageService/NemerleLanguageService.cs

Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Heavy.Tests/Runner.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Heavy.Tests/Runner.n	(original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Heavy.Tests/Runner.n	Thu Apr  5 15:42:10 2007
@@ -432,7 +432,7 @@
       WriteLine($"Initializing engine with $(sources.Length) sources");
       
       def manager = ProjectManager();
-      def callback = EngineCallbackStub(references);
+      def callback = EngineCallbackStub(references.ToArray());
       engine = Engine(callback, manager, TraceWriter());
       manager.Engine = engine;
       WriteLine($"Compiler is in completion mode: $(engine.IsIntelliSenseMode)");

Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Refactoring/TestProjectTwo/SmallTestsOne.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Refactoring/TestProjectTwo/SmallTestsOne.n	(original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Tests/Refactoring/TestProjectTwo/SmallTestsOne.n	Thu Apr  5 15:42:10 2007
@@ -70,7 +70,7 @@
     
     public LocalFunction(foo6667 : int): void // definition {46} foo
     {
-      def localFunction(foo6668 : int) // definition {47} foo
+      def localFunction(foo6668 : int) // definition {47} foo //possibly not found definition {47}
       {
         WriteLine(foo6668) // usage {47}
       }

Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/TextManagement/EngineCallbackStub.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/TextManagement/EngineCallbackStub.n	(original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/TextManagement/EngineCallbackStub.n	Thu Apr  5 15:42:10 2007
@@ -5,7 +5,6 @@
 
 namespace Nemerle.Completion2
 {
-  [Record]
   public class EngineCallbackStub : IEngineCallback
   {
     public static Default : EngineCallbackStub = EngineCallbackStub("mscorlib", "System");

Modified: vs-plugin/trunk/Nemerle.VsIntegration/LanguageService/NemerleLanguageService.cs
==============================================================================
--- vs-plugin/trunk/Nemerle.VsIntegration/LanguageService/NemerleLanguageService.cs	(original)
+++ vs-plugin/trunk/Nemerle.VsIntegration/LanguageService/NemerleLanguageService.cs	Thu Apr  5 15:42:10 2007
@@ -147,7 +147,7 @@
 
 				request.Sink.FoundMatchingBrace = true;
 
-				// Fif a bug in MPF: Correct location of left token.
+				// Fix a bug in MPF: Correct location of left token.
 				// It need for correct navigation (to left side of token).
 				Token mactTok = matchBraceInfo.Token;
 				Location mactLoc = request.Reason == ParseReason.MatchBraces 
@@ -177,11 +177,11 @@
 		{
 			#region Fields
 			
-			public IVsTextColorState ColorState;
-			public NemerleSource Source;
-			public int StartLine;
 			public ScanTokenInfo StartBraceInfo;
-			public ScanLexer Lex;
+			IVsTextColorState ColorState;
+			NemerleSource Source;
+			int StartLine;
+			ScanLexer Lex;
 			NemerleScanner Scanner;
 
 			#endregion



More information about the svn mailing list