C# Class ICSharpCode.NRefactory.CSharp.TextWriterTokenWriter

Writes C# code into a TextWriter.
Inheritance: TokenWriter, ILocatable
Afficher le fichier Open project: 0xd4d/NRefactory Class Usage Examples

Méthodes publiques

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

Méthodes protégées

Méthode Description
WriteIndentation ( ) : void

Private Methods

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

Method Details

ConvertCharLiteral() public static méthode

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

ConvertString() public static méthode

Converts special characters to escape sequences within the given string.
public static ConvertString ( string str ) : string
str string
Résultat string

EndNode() public méthode

public EndNode ( AstNode node ) : void
node AstNode
Résultat void

Indent() public méthode

public Indent ( ) : void
Résultat void

NewLine() public méthode

public NewLine ( ) : void
Résultat void

PrintPrimitiveValue() public static méthode

public static PrintPrimitiveValue ( object value ) : string
value object
Résultat string

Space() public méthode

public Space ( ) : void
Résultat void

StartNode() public méthode

public StartNode ( AstNode node ) : void
node AstNode
Résultat void

TextWriterTokenWriter() public méthode

public TextWriterTokenWriter ( TextWriter textWriter ) : System
textWriter System.IO.TextWriter
Résultat System

Unindent() public méthode

public Unindent ( ) : void
Résultat void

WriteComment() public méthode

public WriteComment ( CommentType commentType, string content, CommentReference refs ) : void
commentType CommentType
content string
refs CommentReference
Résultat void

WriteIdentifier() public méthode

public WriteIdentifier ( Identifier identifier, object data ) : void
identifier Identifier
data object
Résultat void

WriteIndentation() protected méthode

protected WriteIndentation ( ) : void
Résultat void

WriteKeyword() public méthode

public WriteKeyword ( ICSharpCode.NRefactory.CSharp.Role role, string keyword ) : void
role ICSharpCode.NRefactory.CSharp.Role
keyword string
Résultat void

WritePreProcessorDirective() public méthode

public WritePreProcessorDirective ( PreProcessorDirectiveType type, string argument ) : void
type PreProcessorDirectiveType
argument string
Résultat void

WritePrimitiveType() public méthode

public WritePrimitiveType ( string type ) : void
type string
Résultat void

WritePrimitiveValue() public méthode

public WritePrimitiveValue ( object value, object data = null, string literalValue = null ) : void
value object
data object
literalValue string
Résultat void

WritePrimitiveValue() public static méthode

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

WriteToken() public méthode

public WriteToken ( ICSharpCode.NRefactory.CSharp.Role role, string token, object data ) : void
role ICSharpCode.NRefactory.CSharp.Role
token string
data object
Résultat void