C# Class Sarcasm.Unparsing.Formatter

Inheritance: ICommentFormatter
Mostra file Open project: davidnemeti/Sarcasm Class Usage Examples

Public Methods

Method Description
AttachParser ( MultiParser multiParserToAttach ) : void
AttachParser ( Parser parserToAttach ) : void
Formatter ( Sarcasm.GrammarAst.Grammar grammar ) : System
Formatter ( MultiParser multiParserToAttach ) : System
Formatter ( Parser parserToAttach ) : System
GetBlockIndentation ( UnparsableAst leftTerminalLeaveIfAny, UnparsableAst target ) : BlockIndentation
GetCleanedUpCommentTextLines ( string commentTextLines, int columnIndex, CommentTerminal commentTerminal, bool &isDecorated ) : string[]
GetDecoratedCommentTextLines ( UnparsableAst owner, Comment comment ) : string[]
GetDecoration ( Utoken utoken, UnparsableAst target ) : IDecoration
GetUtokensAround ( UnparsableAst target, InsertedUtokens &leftInsertedUtokens, InsertedUtokens &rightInsertedUtokens ) : void
GetUtokensBetween ( UnparsableAst leftTerminalLeaveTarget, UnparsableAst rightTarget ) : InsertedUtokens
GetUtokensBetweenCommentAndOwner ( UnparsableAst owner, Comment comment, int commentIndex, int commentCount, IEnumerable commentsBetweenThisAndOwner ) : InsertedUtokens

Protected Methods

Method Description
Formatter ( IFormatProvider formatProvider ) : System

Private Methods

Method Description
Formatter ( ) : System
GetDecoration ( Utoken utoken ) : IDecoration

Method Details

AttachParser() public method

public AttachParser ( MultiParser multiParserToAttach ) : void
multiParserToAttach MultiParser
return void

AttachParser() public method

public AttachParser ( Parser parserToAttach ) : void
parserToAttach Irony.Parsing.Parser
return void

Formatter() public method

public Formatter ( Sarcasm.GrammarAst.Grammar grammar ) : System
grammar Sarcasm.GrammarAst.Grammar
return System

Formatter() protected method

protected Formatter ( IFormatProvider formatProvider ) : System
formatProvider IFormatProvider
return System

Formatter() public method

public Formatter ( MultiParser multiParserToAttach ) : System
multiParserToAttach MultiParser
return System

Formatter() public method

public Formatter ( Parser parserToAttach ) : System
parserToAttach Irony.Parsing.Parser
return System

GetBlockIndentation() public method

public GetBlockIndentation ( UnparsableAst leftTerminalLeaveIfAny, UnparsableAst target ) : BlockIndentation
leftTerminalLeaveIfAny UnparsableAst
target UnparsableAst
return BlockIndentation

GetCleanedUpCommentTextLines() public method

public GetCleanedUpCommentTextLines ( string commentTextLines, int columnIndex, CommentTerminal commentTerminal, bool &isDecorated ) : string[]
commentTextLines string
columnIndex int
commentTerminal Irony.Parsing.CommentTerminal
isDecorated bool
return string[]

GetDecoratedCommentTextLines() public method

public GetDecoratedCommentTextLines ( UnparsableAst owner, Comment comment ) : string[]
owner UnparsableAst
comment Comment
return string[]

GetDecoration() public method

public GetDecoration ( Utoken utoken, UnparsableAst target ) : IDecoration
utoken Utoken
target UnparsableAst
return IDecoration

GetUtokensAround() public method

public GetUtokensAround ( UnparsableAst target, InsertedUtokens &leftInsertedUtokens, InsertedUtokens &rightInsertedUtokens ) : void
target UnparsableAst
leftInsertedUtokens InsertedUtokens
rightInsertedUtokens InsertedUtokens
return void

GetUtokensBetween() public method

public GetUtokensBetween ( UnparsableAst leftTerminalLeaveTarget, UnparsableAst rightTarget ) : InsertedUtokens
leftTerminalLeaveTarget UnparsableAst
rightTarget UnparsableAst
return InsertedUtokens

GetUtokensBetweenCommentAndOwner() public method

public GetUtokensBetweenCommentAndOwner ( UnparsableAst owner, Comment comment, int commentIndex, int commentCount, IEnumerable commentsBetweenThisAndOwner ) : InsertedUtokens
owner UnparsableAst
comment Comment
commentIndex int
commentCount int
commentsBetweenThisAndOwner IEnumerable
return InsertedUtokens