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/Result.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/Result.cs')
-rw-r--r-- | main/src/addins/MonoDevelop.Refactoring/MonoDevelop.AnalysisCore/Result.cs | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.AnalysisCore/Result.cs b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.AnalysisCore/Result.cs index 0e89e12711..7ed4a24101 100644 --- a/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.AnalysisCore/Result.cs +++ b/main/src/addins/MonoDevelop.Refactoring/MonoDevelop.AnalysisCore/Result.cs @@ -25,25 +25,22 @@ // THE SOFTWARE. using System; -using ICSharpCode.NRefactory.Refactoring; using MonoDevelop.AnalysisCore.Extensions; -using MonoDevelop.SourceEditor; -using ICSharpCode.NRefactory.TypeSystem; -using MonoDevelop.SourceEditor.QuickTasks; -using ICSharpCode.NRefactory.CSharp; +using Microsoft.CodeAnalysis.Text; +using Microsoft.CodeAnalysis; namespace MonoDevelop.AnalysisCore { public class Result { - public Result (DomRegion region, string message, bool underLine = true) + public Result (TextSpan region, string message, bool underLine = true) { this.Region = region; this.Message = message; this.Underline = underLine; } - public Result (DomRegion region, string message, Severity level, IssueMarker inspectionMark, bool underline = true) + public Result (TextSpan region, string message, DiagnosticSeverity level, IssueMarker inspectionMark, bool underline = true) { this.Region = region; this.Message = message; @@ -52,7 +49,7 @@ namespace MonoDevelop.AnalysisCore this.Underline = underline; } - public void SetSeverity (Severity level, IssueMarker inspectionMark) + public void SetSeverity (DiagnosticSeverity level, IssueMarker inspectionMark) { this.Level = level; this.InspectionMark = inspectionMark; @@ -66,9 +63,9 @@ namespace MonoDevelop.AnalysisCore } public string Message { get; private set; } - public Severity Level { get; private set; } + public DiagnosticSeverity Level { get; private set; } public IssueMarker InspectionMark { get; private set; } - public DomRegion Region { get; private set; } + public TextSpan Region { get; private set; } public bool Underline { get; private set; } |