[svn] r7589: vs-plugin/trunk:
Nemerle.Compiler.Utils/Nemerle.Completion2/Engine/Engine-overrides.n
Nemerle...
VladD2
svnadmin at nemerle.org
Wed Apr 11 03:24:14 CEST 2007
Log:
1. Implement the ToString() in the Engine class. At now it display name of project.
2. Remove unused methods.
Author: VladD2
Date: Wed Apr 11 03:24:09 2007
New Revision: 7589
Modified:
vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Engine/Engine-overrides.n
vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/TextManagement/EngineCallbackStub.n
vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/TextManagement/IEngineCallback.n
vs-plugin/trunk/Nemerle.VsIntegration/LanguageService/NemerleLanguageService.cs
vs-plugin/trunk/Nemerle.VsIntegration/Project/ProjectInfo.cs
Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Engine/Engine-overrides.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Engine/Engine-overrides.n (original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/Engine/Engine-overrides.n Wed Apr 11 03:24:09 2007
@@ -43,5 +43,7 @@
| _ => false
}
}
+
+ public override ToString() : string { "Engine: prj=" + _callback.ProjectName }
}
}
\ No newline at end of file
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 Wed Apr 11 03:24:09 2007
@@ -34,6 +34,8 @@
}
}
+ public ProjectName : string { get { "UnitTestFakeProject" } }
+
public GetAssemblyReferences() : IEnumerable[string]
{
_assemblyReferences
Modified: vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/TextManagement/IEngineCallback.n
==============================================================================
--- vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/TextManagement/IEngineCallback.n (original)
+++ vs-plugin/trunk/Nemerle.Compiler.Utils/Nemerle.Completion2/TextManagement/IEngineCallback.n Wed Apr 11 03:24:09 2007
@@ -8,5 +8,6 @@
{
GetAssemblyReferences() : IEnumerable[string];
ShowMessage(message : string, messageType : MessageType) : void;
+ ProjectName : string { get; }
}
}
\ No newline at end of file
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 Wed Apr 11 03:24:09 2007
@@ -471,22 +471,6 @@
return lst[nextIndex];
}
- private static List<T> Reverce<T>(IEnumerable<T> seq)
- {
- List<T> lst = new List<T>(seq);
- lst.Reverse();
- return lst;
- }
-
- static T Find<T>(IEnumerable<T> seq, Predicate<T> predicate) where T : class
- {
- foreach (T item in seq)
- if (predicate(item))
- return item;
-
- return null;
- }
-
static int FindIndex<T>(IList<T> lst, Predicate<T> predicate) where T : class
{
for (int i = 0; i < lst.Count; i++)
Modified: vs-plugin/trunk/Nemerle.VsIntegration/Project/ProjectInfo.cs
==============================================================================
--- vs-plugin/trunk/Nemerle.VsIntegration/Project/ProjectInfo.cs (original)
+++ vs-plugin/trunk/Nemerle.VsIntegration/Project/ProjectInfo.cs Wed Apr 11 03:24:09 2007
@@ -74,6 +74,8 @@
_projectLocation += "\\";
}
+ public string ProjectName { get { return _projectNode.VSProject.Project.Name; } }
+
int _buildTypedtreeCount;
private Engine _engine;
More information about the svn
mailing list