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

Inheritance: QuickFixBase
Afficher le fichier Open project: MrJul/ForTea

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
ExecutePsiTransaction ( ISolution solution, IProgressIndicator progress ) : Action

Executes QuickFix or ContextAction. Returns post-execute method.

Private Methods

Méthode 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 méthode

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

ExecutePsiTransaction() protected méthode

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

IsAvailable() public méthode

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
Résultat bool