C# 클래스 Loyc.Syntax.LNodePrinter

Standard extension methods for ILNodePrinter.
파일 보기 프로젝트 열기: qwertie/ecsharp 1 사용 예제들

공개 메소드들

메소드 설명
Print ( this printer, IEnumerable nodes, IMessageSink sink = null, ParsingMode mode = null, ILNodePrinterOptions options = null ) : string

Serializes a list of syntax trees to a string in the syntax supported by the specified ILNodePrinter.

Print ( this printer, LNode node, IMessageSink sink = null, ParsingMode mode = null, ILNodePrinterOptions options = null ) : string

Serializes the specified syntax tree to a string in the syntax supported by the specified ILNodePrinter.

PrintMultiple ( ILNodePrinter printer, IEnumerable nodes, StringBuilder sb, IMessageSink sink, ParsingMode mode, ILNodePrinterOptions options ) : StringBuilder

Converts a sequences of LNodes to strings, adding a line separator between each.

The newline between two nodes is suppressed if the second node has a #trivia_appendStatement attribute.

메소드 상세

Print() 공개 정적인 메소드

Serializes a list of syntax trees to a string in the syntax supported by the specified ILNodePrinter.
public static Print ( this printer, IEnumerable nodes, IMessageSink sink = null, ParsingMode mode = null, ILNodePrinterOptions options = null ) : string
printer this
nodes IEnumerable
sink IMessageSink
mode ParsingMode
options ILNodePrinterOptions
리턴 string

Print() 공개 정적인 메소드

Serializes the specified syntax tree to a string in the syntax supported by the specified ILNodePrinter.
public static Print ( this printer, LNode node, IMessageSink sink = null, ParsingMode mode = null, ILNodePrinterOptions options = null ) : string
printer this
node LNode
sink IMessageSink
mode ParsingMode
options ILNodePrinterOptions
리턴 string

PrintMultiple() 공개 정적인 메소드

Converts a sequences of LNodes to strings, adding a line separator between each.
The newline between two nodes is suppressed if the second node has a #trivia_appendStatement attribute.
public static PrintMultiple ( ILNodePrinter printer, IEnumerable nodes, StringBuilder sb, IMessageSink sink, ParsingMode mode, ILNodePrinterOptions options ) : StringBuilder
printer ILNodePrinter Printer to be used for each single LNode.
nodes IEnumerable
sb StringBuilder
sink IMessageSink
mode ParsingMode
options ILNodePrinterOptions
리턴 StringBuilder