Enhanced C#
Language of your choice: library documentation

Documentation moved to ecsharp.net

GitHub doesn't support HTTP redirects, so you'll be redirected in 3 seconds.

 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Properties | Public Member Functions | Protected Member Functions | Protected fields | List of all members
Loyc.Syntax.Les.DefaultNodePrinterWriter Class Referenceabstract

Base class for the helper classes of LesNodePrinter and Ecs.EcsNodePrinter, called LesNodePrinterWriter and EcsNodePrinterWriter. See INodePrinterWriter. More...


Source file:
Inheritance diagram for Loyc.Syntax.Les.DefaultNodePrinterWriter:
Loyc.Syntax.Les.NodePrinterWriterBase Loyc.Syntax.Les.INodePrinterWriter

Remarks

Base class for the helper classes of LesNodePrinter and Ecs.EcsNodePrinter, called LesNodePrinterWriter and EcsNodePrinterWriter. See INodePrinterWriter.

Properties

override object Target [get]
 
- Properties inherited from Loyc.Syntax.Les.NodePrinterWriterBase
abstract object Target [get]
 
- Properties inherited from Loyc.Syntax.Les.INodePrinterWriter
object Target [get]
 Gets the object being written to (TextWriter or StringBuilder) More...
 

Public Member Functions

 DefaultNodePrinterWriter (StringBuilder sb, string indentString="\t", string lineSeparator="\n", string labelIndent="")
 
 DefaultNodePrinterWriter (TextWriter @out, string indentString="\t", string lineSeparator="\n", string labelIndent="")
 
override void Write (char c, bool finishToken)
 
override void Write (string s, bool finishToken)
 
override void Space ()
 
override void BeginLabel ()
 
override void BeginStatement ()
 
override void Newline (bool pending=false)
 
virtual void Reset ()
 
- Public Member Functions inherited from Loyc.Syntax.Les.NodePrinterWriterBase
virtual int Indent ()
 
virtual int Dedent ()
 
virtual void Push (LNode n)
 
virtual void Pop (LNode n)
 

Protected Member Functions

virtual void FinishToken (char lastCh)
 
abstract void StartToken (char nextCh)
 

Protected fields

string _indentString
 
string _lineSeparator
 
string _labelIndent
 
char _lastCh = '\n'
 
bool _startingToken = true
 
bool _newlinePending = false
 
bool _labelPending = false
 
TextWriter _out
 
- Protected fields inherited from Loyc.Syntax.Les.NodePrinterWriterBase
int _indentLevel = 0