C# Класс 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.
Наследование: IStateMachineIndentEngine
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
ICloneable ( ) : object
IDocumentIndentEngine ( ) : IDocumentIndentEngine

Описание методов

CSharpIndentEngine() публичный Метод

Creates a new CSharpIndentEngine instance from the given prototype.
public CSharpIndentEngine ( CSharpIndentEngine prototype ) : ICSharpCode.NRefactory.Editor
prototype CSharpIndentEngine /// An CSharpIndentEngine instance. ///
Результат ICSharpCode.NRefactory.Editor

CSharpIndentEngine() публичный Метод

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. ///
Результат ICSharpCode.NRefactory.Editor

Clone() публичный Метод

public Clone ( ) : IStateMachineIndentEngine
Результат IStateMachineIndentEngine

DefineSymbol() публичный Метод

Defines the conditional symbol.
public DefineSymbol ( string defineSymbol ) : void
defineSymbol string The symbol to define.
Результат void

Push() публичный Метод

public Push ( char ch ) : void
ch char
Результат void

RemoveSymbol() публичный Метод

Removes the symbol.
public RemoveSymbol ( string undefineSymbol ) : void
undefineSymbol string The symbol to undefine.
Результат void

Reset() публичный Метод

public Reset ( ) : void
Результат void

Update() публичный Метод

public Update ( int offset ) : void
offset int
Результат void