ICodeGenVisitor

Ecng.ComponentModel

Code generation visitor.

Eigenschaften

CurrIndent
public int CurrIndent { get; }
value = iCodeGenVisitor.CurrIndent

Gets the current indentation level in characters.

Methoden

Add
public ICodeGenVisitor Add(string text)
result = iCodeGenVisitor.Add(text)

Adds the specified text without a newline.

text
The text to add.

Rückgabe: The current instance of ICodeGenVisitor.

AddLine
public ICodeGenVisitor AddLine(string line)
result = iCodeGenVisitor.AddLine(line)

Adds a line of code with the current indentation.

line
The code line to add.

Rückgabe: The current instance of ICodeGenVisitor.

AddWithIndent
public ICodeGenVisitor AddWithIndent(string text)
result = iCodeGenVisitor.AddWithIndent(text)

Adds the specified text with the current indentation and without a newline.

text
The text to add.

Rückgabe: The current instance of ICodeGenVisitor.

ChangeIndent
public ICodeGenVisitor ChangeIndent(bool increase)
result = iCodeGenVisitor.ChangeIndent(increase)

Changes the current indentation level.

increase
If set to true, increases the indentation; otherwise, decreases it.

Rückgabe: The current instance of ICodeGenVisitor.