C# Class GammaJul.ReSharper.ForTea.Intentions.QuickFixes.AddMissingTokenQuickFix

Inheritance: QuickFixBase
显示文件 Open project: MrJul/ForTea

Public Methods

Method Description
AddMissingTokenQuickFix ( MissingTokenHighlighting highlighting ) : System

Initializes a new instance of the AddMissingTokenQuickFix class.

IsAvailable ( IUserDataHolder cache ) : bool

Check if this action is available at the constructed context. Actions could store precalculated info in cache to share it between different actions

Protected Methods

Method Description
ExecutePsiTransaction ( ISolution solution, IProgressIndicator progress ) : Action

Executes QuickFix or ContextAction. Returns post-execute method.

Private Methods

Method Description
GetFixText ( MissingTokenType missingTokenType ) : string
GetMissingTextInfo ( MissingTokenType missingTokenType ) : TextInfo

Gets the text of the token to add.

GetMissingTextWithHotspotRange ( [ errorElement ) : TextRange>.Pair

Gets the text of the token to add, with additional spaces if needed.

IsWhitespaceAfter ( [ node ) : bool
IsWhitespaceBefore ( [ node ) : bool

Method Details

AddMissingTokenQuickFix() public method

Initializes a new instance of the AddMissingTokenQuickFix class.
public AddMissingTokenQuickFix ( MissingTokenHighlighting highlighting ) : System
highlighting MissingTokenHighlighting The associated missing token highlighting.
return System

ExecutePsiTransaction() protected method

Executes QuickFix or ContextAction. Returns post-execute method.
protected ExecutePsiTransaction ( ISolution solution, IProgressIndicator progress ) : Action
solution ISolution
progress IProgressIndicator
return Action

IsAvailable() public method

Check if this action is available at the constructed context. Actions could store precalculated info in cache to share it between different actions
public IsAvailable ( IUserDataHolder cache ) : bool
cache IUserDataHolder
return bool