C# Class ICSharpCode.NRefactory.CSharp.TokenWriter

Datei anzeigen Open project: 0xd4d/NRefactory Class Usage Examples

Public Methods

Method Description
AddBracePair ( int leftStart, int leftEnd, int rightStart, int rightEnd, CodeBracesRangeFlags flags ) : void
AddHighlightedKeywordReference ( object reference, int start, int end ) : void
AddLineSeparator ( int position ) : void
Create ( TextWriter writer, string indentation = "\t" ) : TokenWriter
CreateWriterThatSetsLocationsInAST ( TextWriter writer, string indentation = "\t" ) : TokenWriter
DebugEnd ( AstNode node, int end ) : void
DebugExpression ( AstNode node ) : void
DebugHidden ( AstNode hiddenNode ) : void
DebugStart ( AstNode node, int start ) : void
EndNode ( AstNode node ) : void
GetLocation ( ) : int?
Indent ( ) : void
NewLine ( ) : void
Space ( ) : void
StartNode ( AstNode node ) : void
Unindent ( ) : void
WrapInWriterThatSetsLocationsInAST ( TokenWriter writer ) : TokenWriter
WriteComment ( CommentType commentType, string content, CommentReference refs ) : void
WriteIdentifier ( Identifier identifier, object data ) : void

Writes an identifier.

WriteKeyword ( Role role, string keyword ) : void

Writes a keyword to the output.

WritePreProcessorDirective ( PreProcessorDirectiveType type, string argument ) : void
WritePrimitiveType ( string type ) : void
WritePrimitiveValue ( object value, object data = null, string literalValue = null ) : void

Writes a primitive/literal value

WriteToken ( Role role, string token, object data ) : void

Writes a token to the output.

WriteTokenBrace ( Role tokenRole, string token ) : void
WriteTokenNumber ( Role tokenRole, string token ) : void
WriteTokenOperator ( Role tokenRole, string token ) : void
WriteTokenPunctuation ( Role tokenRole, string token ) : void

Method Details

AddBracePair() public method

public AddBracePair ( int leftStart, int leftEnd, int rightStart, int rightEnd, CodeBracesRangeFlags flags ) : void
leftStart int
leftEnd int
rightStart int
rightEnd int
flags CodeBracesRangeFlags
return void

AddHighlightedKeywordReference() public method

public AddHighlightedKeywordReference ( object reference, int start, int end ) : void
reference object
start int
end int
return void

AddLineSeparator() public method

public AddLineSeparator ( int position ) : void
position int
return void

Create() public static method

public static Create ( TextWriter writer, string indentation = "\t" ) : TokenWriter
writer System.IO.TextWriter
indentation string
return TokenWriter

CreateWriterThatSetsLocationsInAST() public static method

public static CreateWriterThatSetsLocationsInAST ( TextWriter writer, string indentation = "\t" ) : TokenWriter
writer System.IO.TextWriter
indentation string
return TokenWriter

DebugEnd() public method

public DebugEnd ( AstNode node, int end ) : void
node AstNode
end int
return void

DebugExpression() public method

public DebugExpression ( AstNode node ) : void
node AstNode
return void

DebugHidden() public method

public DebugHidden ( AstNode hiddenNode ) : void
hiddenNode AstNode
return void

DebugStart() public method

public DebugStart ( AstNode node, int start ) : void
node AstNode
start int
return void

EndNode() public abstract method

public abstract EndNode ( AstNode node ) : void
node AstNode
return void

GetLocation() public method

public GetLocation ( ) : int?
return int?

Indent() public abstract method

public abstract Indent ( ) : void
return void

NewLine() public abstract method

public abstract NewLine ( ) : void
return void

Space() public abstract method

public abstract Space ( ) : void
return void

StartNode() public abstract method

public abstract StartNode ( AstNode node ) : void
node AstNode
return void

Unindent() public abstract method

public abstract Unindent ( ) : void
return void

WrapInWriterThatSetsLocationsInAST() public static method

public static WrapInWriterThatSetsLocationsInAST ( TokenWriter writer ) : TokenWriter
writer TokenWriter
return TokenWriter

WriteComment() public abstract method

public abstract WriteComment ( CommentType commentType, string content, CommentReference refs ) : void
commentType CommentType
content string
refs CommentReference
return void

WriteIdentifier() public abstract method

Writes an identifier.
public abstract WriteIdentifier ( Identifier identifier, object data ) : void
identifier Identifier
data object
return void

WriteKeyword() public abstract method

Writes a keyword to the output.
public abstract WriteKeyword ( Role role, string keyword ) : void
role Role
keyword string
return void

WritePreProcessorDirective() public abstract method

public abstract WritePreProcessorDirective ( PreProcessorDirectiveType type, string argument ) : void
type PreProcessorDirectiveType
argument string
return void

WritePrimitiveType() public abstract method

public abstract WritePrimitiveType ( string type ) : void
type string
return void

WritePrimitiveValue() public abstract method

Writes a primitive/literal value
public abstract WritePrimitiveValue ( object value, object data = null, string literalValue = null ) : void
value object
data object
literalValue string
return void

WriteToken() public abstract method

Writes a token to the output.
public abstract WriteToken ( Role role, string token, object data ) : void
role Role
token string
data object
return void

WriteTokenBrace() public method

public WriteTokenBrace ( Role tokenRole, string token ) : void
tokenRole Role
token string
return void

WriteTokenNumber() public method

public WriteTokenNumber ( Role tokenRole, string token ) : void
tokenRole Role
token string
return void

WriteTokenOperator() public method

public WriteTokenOperator ( Role tokenRole, string token ) : void
tokenRole Role
token string
return void

WriteTokenPunctuation() public method

public WriteTokenPunctuation ( Role tokenRole, string token ) : void
tokenRole Role
token string
return void