C# Класс ICSharpCode.NRefactory.CSharp.TextWriterTokenWriter

Writes C# code into a TextWriter.
Наследование: TokenWriter, ILocatable
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
ConvertCharLiteral ( char ch ) : string

Gets the escape sequence for the specified character within a char literal. Does not include the single quotes surrounding the char literal.

ConvertString ( string str ) : string

Converts special characters to escape sequences within the given string.

EndNode ( AstNode node ) : void
Indent ( ) : void
NewLine ( ) : void
PrintPrimitiveValue ( object value ) : string
Space ( ) : void
StartNode ( AstNode node ) : void
TextWriterTokenWriter ( TextWriter textWriter ) : System
Unindent ( ) : void
WriteComment ( CommentType commentType, string content, CommentReference refs ) : void
WriteIdentifier ( Identifier identifier, object data ) : void
WriteKeyword ( ICSharpCode.NRefactory.CSharp.Role role, string keyword ) : void
WritePreProcessorDirective ( PreProcessorDirectiveType type, string argument ) : void
WritePrimitiveType ( string type ) : void
WritePrimitiveValue ( object value, object data = null, string literalValue = null ) : void
WritePrimitiveValue ( object value, object data, string literalValue, int &column, object>.Action writer, Action writeToken ) : void
WriteToken ( ICSharpCode.NRefactory.CSharp.Role role, string token, object data ) : void

Защищенные методы

Метод Описание
WriteIndentation ( ) : void

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

Метод Описание
AppendChar ( StringBuilder sb, char ch ) : void
ConvertChar ( char ch ) : string

Gets the escape sequence for the specified character.

This method does not convert ' or ".

UpdateEndLocation ( string content, int &line, int &column ) : void

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

ConvertCharLiteral() публичный статический Метод

Gets the escape sequence for the specified character within a char literal. Does not include the single quotes surrounding the char literal.
public static ConvertCharLiteral ( char ch ) : string
ch char
Результат string

ConvertString() публичный статический Метод

Converts special characters to escape sequences within the given string.
public static ConvertString ( string str ) : string
str string
Результат string

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

public EndNode ( AstNode node ) : void
node AstNode
Результат void

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

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

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

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

PrintPrimitiveValue() публичный статический Метод

public static PrintPrimitiveValue ( object value ) : string
value object
Результат string

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

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

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

public StartNode ( AstNode node ) : void
node AstNode
Результат void

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

public TextWriterTokenWriter ( TextWriter textWriter ) : System
textWriter System.IO.TextWriter
Результат System

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

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

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

public WriteComment ( CommentType commentType, string content, CommentReference refs ) : void
commentType CommentType
content string
refs CommentReference
Результат void

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

public WriteIdentifier ( Identifier identifier, object data ) : void
identifier Identifier
data object
Результат void

WriteIndentation() защищенный Метод

protected WriteIndentation ( ) : void
Результат void

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

public WriteKeyword ( ICSharpCode.NRefactory.CSharp.Role role, string keyword ) : void
role ICSharpCode.NRefactory.CSharp.Role
keyword string
Результат void

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

public WritePreProcessorDirective ( PreProcessorDirectiveType type, string argument ) : void
type PreProcessorDirectiveType
argument string
Результат void

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

public WritePrimitiveType ( string type ) : void
type string
Результат void

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

public WritePrimitiveValue ( object value, object data = null, string literalValue = null ) : void
value object
data object
literalValue string
Результат void

WritePrimitiveValue() публичный статический Метод

public static WritePrimitiveValue ( object value, object data, string literalValue, int &column, object>.Action writer, Action writeToken ) : void
value object
data object
literalValue string
column int
writer object>.Action
writeToken Action
Результат void

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

public WriteToken ( ICSharpCode.NRefactory.CSharp.Role role, string token, object data ) : void
role ICSharpCode.NRefactory.CSharp.Role
token string
data object
Результат void