C# Class ICSharpCode.NRefactory.CSharp.CSharpIndentEngine

Indentation engine based on a state machine. Supports only pushing new chars to the end.
Represents the context for transitions between IndentState. Delegates the responsibility for pushing a new char to the current state and changes between states depending on the pushed chars.
Inheritance: IStateMachineIndentEngine
Afficher le fichier Open project: 0xd4d/NRefactory Class Usage Examples

Méthodes publiques

Méthode Description
CSharpIndentEngine ( CSharpIndentEngine prototype ) : ICSharpCode.NRefactory.Editor

Creates a new CSharpIndentEngine instance from the given prototype.

CSharpIndentEngine ( IDocument document, ICSharpCode.NRefactory.CSharp.TextEditorOptions textEditorOptions, CSharpFormattingOptions formattingOptions ) : ICSharpCode.NRefactory.Editor

Creates a new CSharpIndentEngine instance.

Clone ( ) : IStateMachineIndentEngine
DefineSymbol ( string defineSymbol ) : void

Defines the conditional symbol.

Push ( char ch ) : void
RemoveSymbol ( string undefineSymbol ) : void

Removes the symbol.

Reset ( ) : void
Update ( int offset ) : void

Private Methods

Méthode Description
ICloneable ( ) : object
IDocumentIndentEngine ( ) : IDocumentIndentEngine

Method Details

CSharpIndentEngine() public méthode

Creates a new CSharpIndentEngine instance from the given prototype.
public CSharpIndentEngine ( CSharpIndentEngine prototype ) : ICSharpCode.NRefactory.Editor
prototype CSharpIndentEngine /// An CSharpIndentEngine instance. ///
Résultat ICSharpCode.NRefactory.Editor

CSharpIndentEngine() public méthode

Creates a new CSharpIndentEngine instance.
public CSharpIndentEngine ( IDocument document, ICSharpCode.NRefactory.CSharp.TextEditorOptions textEditorOptions, CSharpFormattingOptions formattingOptions ) : ICSharpCode.NRefactory.Editor
document IDocument /// An instance of which is being parsed. ///
textEditorOptions ICSharpCode.NRefactory.CSharp.TextEditorOptions /// Text editor options for indentation. ///
formattingOptions CSharpFormattingOptions /// C# formatting options. ///
Résultat ICSharpCode.NRefactory.Editor

Clone() public méthode

public Clone ( ) : IStateMachineIndentEngine
Résultat IStateMachineIndentEngine

DefineSymbol() public méthode

Defines the conditional symbol.
public DefineSymbol ( string defineSymbol ) : void
defineSymbol string The symbol to define.
Résultat void

Push() public méthode

public Push ( char ch ) : void
ch char
Résultat void

RemoveSymbol() public méthode

Removes the symbol.
public RemoveSymbol ( string undefineSymbol ) : void
undefineSymbol string The symbol to undefine.
Résultat void

Reset() public méthode

public Reset ( ) : void
Résultat void

Update() public méthode

public Update ( int offset ) : void
offset int
Résultat void