C# Class Loyc.Syntax.LNodePrinter

Standard extension methods for ILNodePrinter.
Mostrar archivo Open project: qwertie/ecsharp Class Usage Examples

Public Methods

Method Description
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.

Method Details

Print() public static method

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
return string

Print() public static method

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
return string

PrintMultiple() public static method

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
return StringBuilder