C# Класс Sarcasm.Unparsing.Formatter

Наследование: ICommentFormatter
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
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

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

Метод Описание
Formatter ( IFormatProvider formatProvider ) : System

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

Метод Описание
Formatter ( ) : System
GetDecoration ( Utoken utoken ) : IDecoration

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

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

public AttachParser ( MultiParser multiParserToAttach ) : void
multiParserToAttach MultiParser
Результат void

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

public AttachParser ( Parser parserToAttach ) : void
parserToAttach Irony.Parsing.Parser
Результат void

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

public Formatter ( Sarcasm.GrammarAst.Grammar grammar ) : System
grammar Sarcasm.GrammarAst.Grammar
Результат System

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

protected Formatter ( IFormatProvider formatProvider ) : System
formatProvider IFormatProvider
Результат System

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

public Formatter ( MultiParser multiParserToAttach ) : System
multiParserToAttach MultiParser
Результат System

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

public Formatter ( Parser parserToAttach ) : System
parserToAttach Irony.Parsing.Parser
Результат System

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

public GetBlockIndentation ( UnparsableAst leftTerminalLeaveIfAny, UnparsableAst target ) : BlockIndentation
leftTerminalLeaveIfAny UnparsableAst
target UnparsableAst
Результат BlockIndentation

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

public GetCleanedUpCommentTextLines ( string commentTextLines, int columnIndex, CommentTerminal commentTerminal, bool &isDecorated ) : string[]
commentTextLines string
columnIndex int
commentTerminal Irony.Parsing.CommentTerminal
isDecorated bool
Результат string[]

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

public GetDecoratedCommentTextLines ( UnparsableAst owner, Comment comment ) : string[]
owner UnparsableAst
comment Comment
Результат string[]

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

public GetDecoration ( Utoken utoken, UnparsableAst target ) : IDecoration
utoken Utoken
target UnparsableAst
Результат IDecoration

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

public GetUtokensAround ( UnparsableAst target, InsertedUtokens &leftInsertedUtokens, InsertedUtokens &rightInsertedUtokens ) : void
target UnparsableAst
leftInsertedUtokens InsertedUtokens
rightInsertedUtokens InsertedUtokens
Результат void

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

public GetUtokensBetween ( UnparsableAst leftTerminalLeaveTarget, UnparsableAst rightTarget ) : InsertedUtokens
leftTerminalLeaveTarget UnparsableAst
rightTarget UnparsableAst
Результат InsertedUtokens

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

public GetUtokensBetweenCommentAndOwner ( UnparsableAst owner, Comment comment, int commentIndex, int commentCount, IEnumerable commentsBetweenThisAndOwner ) : InsertedUtokens
owner UnparsableAst
comment Comment
commentIndex int
commentCount int
commentsBetweenThisAndOwner IEnumerable
Результат InsertedUtokens