Enhanced C#
Language of your choice: library documentation
Properties | Public Member Functions | Protected fields | List of all members
Loyc.Syntax.Les.NodePrinterWriterBase Class Referenceabstract

Abstract base class for INodePrinterWriter. Has an protected _indentLevel field that is increased by Indent() and decreased by Dedent(). More...


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

Remarks

Abstract base class for INodePrinterWriter. Has an protected _indentLevel field that is increased by Indent() and decreased by Dedent().

Properties

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

Public Member Functions

virtual void Write (char c, bool finishToken)
 
abstract void Write (string s, bool finishToken)
 
abstract void Newline (bool pending)
 
abstract void Space ()
 
virtual void BeginStatement ()
 
abstract void BeginLabel ()
 
virtual int Indent ()
 
virtual int Dedent ()
 
virtual void Push (LNode n)
 
virtual void Pop (LNode n)
 
abstract void Reset ()
 Called when a new, separate printing operation begins. More...
 

Protected fields

int _indentLevel = 0
 

Member Function Documentation

abstract void Loyc.Syntax.Les.NodePrinterWriterBase.Reset ( )
pure virtual

Called when a new, separate printing operation begins.

Implements Loyc.Syntax.Les.INodePrinterWriter.

Implemented in Loyc.Syntax.Les.DefaultNodePrinterWriter.