[svn]
r6635: vs-plugin/trunk/Nemerle.VsIntegration/Parsing/NemerleAuthoringScope.cs
IT
svnadmin at nemerle.org
Sat Sep 9 20:17:29 CEST 2006
Log:
Formatting & refactoring.
Author: IT
Date: Sat Sep 9 20:17:27 2006
New Revision: 6635
Modified:
vs-plugin/trunk/Nemerle.VsIntegration/Parsing/NemerleAuthoringScope.cs
Modified: vs-plugin/trunk/Nemerle.VsIntegration/Parsing/NemerleAuthoringScope.cs
==============================================================================
--- vs-plugin/trunk/Nemerle.VsIntegration/Parsing/NemerleAuthoringScope.cs (original)
+++ vs-plugin/trunk/Nemerle.VsIntegration/Parsing/NemerleAuthoringScope.cs Sat Sep 9 20:17:27 2006
@@ -4,10 +4,8 @@
using Microsoft.VisualStudio.Package;
using Microsoft.VisualStudio.TextManager.Interop;
-using Nemerle.Compiler;
using Nemerle.Completion2;
using Nemerle.VsIntegration;
-using Microsoft.VisualStudio.Shell;
namespace Microsoft.Samples.VisualStudio.NemerleLanguageService
{
@@ -29,8 +27,7 @@
ProjectInfo project,
NemerleAuthoringSink sink,
string filePath,
- GetText getText
- )
+ GetText getText)
: this(project, sink)
{
_filePath = filePath;
@@ -62,8 +59,6 @@
QuickTipInfo info = _project.GetQuickTip(_filePath, line, col, _getText);
- ShowCompilerMessages();
-
if (info == null)
return null;
@@ -78,14 +73,14 @@
public override string Goto(
VSConstants.VSStd97CmdID cmd,
IVsTextView textView,
- int line, int col, out TextSpan span)
+ int line,
+ int col,
+ out TextSpan span)
{
span = new TextSpan();
GotoInfo info = _project.GetGoto(_filePath, line, col, _getText);
- ShowCompilerMessages();
-
if (info == null || !info.HasLocation)
return null;
@@ -97,11 +92,9 @@
return info.FilePath;
}
- public override Declarations GetDeclarations(IVsTextView view,
- int line, int col, TokenInfo info, ParseReason reason)
+ public override Declarations GetDeclarations(
+ IVsTextView view, int line, int col, TokenInfo info, ParseReason reason)
{
- ShowCompilerMessages();
- //throw new Exception("The method or operation is not implemented.");
return new NemerleDeclarations(_overloadPossibility);
}
@@ -109,38 +102,5 @@
{
throw new Exception("The method or operation is not implemented.");
}
-
- private void ShowCompilerMessages()
- {
- return;
-
- /*
- CompilerMessage[] errors = _project.Project.Engine.CompilerMessages;
-
- TaskProvider taskProvider = _sink.Source.GetTaskProvider();
-
- taskProvider.SuspendRefresh(); // batch updates.
-
- try
- {
- taskProvider.Tasks.Clear();
-
- foreach (CompilerMessage error in errors)
- {
- Task task = new Task();
- task.Line = error.Location.Line;
- task.Column = error.Location.Column;
- task.Document = _filePath;
- task.CanDelete = true;
- task.Text = error.Message;
- taskProvider.Tasks.Add(task);
- }
- }
- finally
- {
- taskProvider.ResumeRefresh(); // batch updates.
- }
- */
- }
}
}
More information about the svn
mailing list