diff options
author | Lluis Sanchez Gual <lluis@xamarin.com> | 2015-04-20 19:07:51 +0300 |
---|---|---|
committer | Lluis Sanchez Gual <lluis@xamarin.com> | 2015-04-20 19:07:51 +0300 |
commit | 95408b1a41b31b645f3a8c3323ab7d3ca4bff26b (patch) | |
tree | f8f137cddcb9a40499d303be95722fd2c6081bce /main/src/addins/MonoDevelop.Refactoring/MonoDevelop.AnalysisCore/FixableResult.cs | |
parent | b70e4e04b4e41b8ec28d7e4b220b401ecf467e7a (diff) | |
parent | de043d330a8bf5855d4d983c804cd36727cb2406 (diff) |
Merge remote-tracking branch 'origin/roslyn' into new-project-model
Diffstat (limited to 'main/src/addins/MonoDevelop.Refactoring/MonoDevelop.AnalysisCore/FixableResult.cs')
-rw-r--r-- | main/src/addins/MonoDevelop.Refactoring/MonoDevelop.AnalysisCore/FixableResult.cs | 35 |
1 files changed, 16 insertions, 19 deletions
diff --git a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.AnalysisCore/FixableResult.cs b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.AnalysisCore/FixableResult.cs index 7aaf76620f..ca3ca05b3e 100644 --- a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.AnalysisCore/FixableResult.cs +++ b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.AnalysisCore/FixableResult.cs @@ -26,26 +26,23 @@ using System; using System.Collections.Generic; -using MonoDevelop.SourceEditor; -using MonoDevelop.SourceEditor.QuickTasks; -using ICSharpCode.NRefactory.TypeSystem; -using ICSharpCode.NRefactory.CSharp; -using Mono.TextEditor; -using ICSharpCode.NRefactory.Refactoring; +using Microsoft.CodeAnalysis.Text; +using MonoDevelop.Ide.Editor; +using Microsoft.CodeAnalysis; namespace MonoDevelop.AnalysisCore { - public class FixableResult : Result - { - public FixableResult (DomRegion region, string message, Severity level, - IssueMarker mark, params IAnalysisFix[] fixes) - : base (region, message, level, mark) - { - this.Fixes = fixes; - } - - public IAnalysisFix[] Fixes { get; protected set; } - } +// public class FixableResult : Result +// { +// public FixableResult (TextSpan region, string message, DiagnosticSeverity level, +// IssueMarker mark, params IAnalysisFix[] fixes) +// : base (region, message, level, mark) +// { +// this.Fixes = fixes; +// } +// +// public IAnalysisFix[] Fixes { get; protected set; } +// } //FIXME: should this really use MonoDevelop.Ide.Gui.Document? Fixes could be more generic. public interface IAnalysisFix @@ -55,14 +52,14 @@ namespace MonoDevelop.AnalysisCore public interface IFixHandler { - IEnumerable<IAnalysisFixAction> GetFixes (MonoDevelop.Ide.Gui.Document doc, object fix); + IEnumerable<IAnalysisFixAction> GetFixes (TextEditor editor, DocumentContext doc, object fix); } public interface IAnalysisFixAction { string Label { get; } bool SupportsBatchFix { get; } - DocumentRegion DocumentRegion { get; } + TextSpan DocumentRegion { get; } string IdString { get; } void Fix (); void BatchFix (); |