C# 클래스 ICSharpCode.NRefactory.CSharp.TokenWriter

파일 보기 프로젝트 열기: 0xd4d/NRefactory 1 사용 예제들

공개 메소드들

메소드 설명
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

메소드 상세

AddBracePair() 공개 메소드

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

AddHighlightedKeywordReference() 공개 메소드

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

AddLineSeparator() 공개 메소드

public AddLineSeparator ( int position ) : void
position int
리턴 void

Create() 공개 정적인 메소드

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

CreateWriterThatSetsLocationsInAST() 공개 정적인 메소드

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

DebugEnd() 공개 메소드

public DebugEnd ( AstNode node, int end ) : void
node AstNode
end int
리턴 void

DebugExpression() 공개 메소드

public DebugExpression ( AstNode node ) : void
node AstNode
리턴 void

DebugHidden() 공개 메소드

public DebugHidden ( AstNode hiddenNode ) : void
hiddenNode AstNode
리턴 void

DebugStart() 공개 메소드

public DebugStart ( AstNode node, int start ) : void
node AstNode
start int
리턴 void

EndNode() 공개 추상적인 메소드

public abstract EndNode ( AstNode node ) : void
node AstNode
리턴 void

GetLocation() 공개 메소드

public GetLocation ( ) : int?
리턴 int?

Indent() 공개 추상적인 메소드

public abstract Indent ( ) : void
리턴 void

NewLine() 공개 추상적인 메소드

public abstract NewLine ( ) : void
리턴 void

Space() 공개 추상적인 메소드

public abstract Space ( ) : void
리턴 void

StartNode() 공개 추상적인 메소드

public abstract StartNode ( AstNode node ) : void
node AstNode
리턴 void

Unindent() 공개 추상적인 메소드

public abstract Unindent ( ) : void
리턴 void

WrapInWriterThatSetsLocationsInAST() 공개 정적인 메소드

public static WrapInWriterThatSetsLocationsInAST ( TokenWriter writer ) : TokenWriter
writer TokenWriter
리턴 TokenWriter

WriteComment() 공개 추상적인 메소드

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

WriteIdentifier() 공개 추상적인 메소드

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

WriteKeyword() 공개 추상적인 메소드

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

WritePreProcessorDirective() 공개 추상적인 메소드

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

WritePrimitiveType() 공개 추상적인 메소드

public abstract WritePrimitiveType ( string type ) : void
type string
리턴 void

WritePrimitiveValue() 공개 추상적인 메소드

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

WriteToken() 공개 추상적인 메소드

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

WriteTokenBrace() 공개 메소드

public WriteTokenBrace ( Role tokenRole, string token ) : void
tokenRole Role
token string
리턴 void

WriteTokenNumber() 공개 메소드

public WriteTokenNumber ( Role tokenRole, string token ) : void
tokenRole Role
token string
리턴 void

WriteTokenOperator() 공개 메소드

public WriteTokenOperator ( Role tokenRole, string token ) : void
tokenRole Role
token string
리턴 void

WriteTokenPunctuation() 공개 메소드

public WriteTokenPunctuation ( Role tokenRole, string token ) : void
tokenRole Role
token string
리턴 void