-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
23b34a3
commit bb86d9d
Showing
4 changed files
with
37 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
Abc.MoqComplete/Abc.MoqComplete/CodeAnalysis/BaseCallbackWarning.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
using JetBrains.DocumentModel; | ||
using JetBrains.ReSharper.Feature.Services.Daemon; | ||
|
||
namespace Abc.MoqComplete.CodeAnalysis | ||
{ | ||
public abstract class BaseCallbackWarning : IHighlighting | ||
{ | ||
private readonly DocumentRange _documentRange; | ||
|
||
protected BaseCallbackWarning(string toolTip, DocumentRange documentRange) | ||
{ | ||
_documentRange = documentRange; | ||
ToolTip = toolTip; | ||
} | ||
|
||
public bool IsValid() => true; | ||
|
||
public DocumentRange CalculateRange() => _documentRange; | ||
|
||
/// <inheritdoc /> | ||
public string ToolTip { get; } | ||
|
||
public string ErrorStripeToolTip { get; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters