C# Class Loyc.Syntax.Les.DefaultNodePrinterWriter

Base class for the helper classes of Les2Printer and Ecs.EcsNodePrinter, called LesNodePrinterWriter and EcsNodePrinterWriter. See INodePrinterWriter.
Inheritance: NodePrinterWriterBase
显示文件 Open project: qwertie/ecsharp

Protected Properties

Property Type Description
_indentPending string
_indentString string
_labelIndent string
_lastCh char
_lastNewlineAt int
_lineNumber int
_lineSeparator string
_newlinePending bool
_out System.IO.TextWriter
_startingToken bool

Public Methods

Method Description
BeginLabel ( ) : void
BeginStatement ( ) : void
DefaultNodePrinterWriter ( StringBuilder sb, string indentString = "\t", string lineSeparator = "\n", string labelIndent = null ) : System
DefaultNodePrinterWriter ( TextWriter @out, string indentString = "\t", string lineSeparator = "\n", string labelIndent = null ) : System
Newline ( bool pending = false ) : void
Reset ( ) : void
Space ( ) : void
Write ( char c, bool finishToken ) : void
Write ( string s, bool finishToken ) : void

Protected Methods

Method Description
FinishToken ( char lastCh ) : void
StartToken ( char nextCh ) : void

Private Methods

Method Description
FinishIndent ( ) : void

Method Details

BeginLabel() public method

public BeginLabel ( ) : void
return void

BeginStatement() public method

public BeginStatement ( ) : void
return void

DefaultNodePrinterWriter() public method

public DefaultNodePrinterWriter ( StringBuilder sb, string indentString = "\t", string lineSeparator = "\n", string labelIndent = null ) : System
sb StringBuilder
indentString string
lineSeparator string
labelIndent string
return System

DefaultNodePrinterWriter() public method

public DefaultNodePrinterWriter ( TextWriter @out, string indentString = "\t", string lineSeparator = "\n", string labelIndent = null ) : System
@out System.IO.TextWriter
indentString string
lineSeparator string
labelIndent string
return System

FinishToken() protected method

protected FinishToken ( char lastCh ) : void
lastCh char
return void

Newline() public method

public Newline ( bool pending = false ) : void
pending bool
return void

Reset() public method

public Reset ( ) : void
return void

Space() public method

public Space ( ) : void
return void

StartToken() protected abstract method

protected abstract StartToken ( char nextCh ) : void
nextCh char
return void

Write() public method

public Write ( char c, bool finishToken ) : void
c char
finishToken bool
return void

Write() public method

public Write ( string s, bool finishToken ) : void
s string
finishToken bool
return void

Property Details

_indentPending protected_oe property

protected string _indentPending
return string

_indentString protected_oe property

protected string _indentString
return string

_labelIndent protected_oe property

protected string _labelIndent
return string

_lastCh protected_oe property

protected char _lastCh
return char

_lastNewlineAt protected_oe property

protected int _lastNewlineAt
return int

_lineNumber protected_oe property

protected int _lineNumber
return int

_lineSeparator protected_oe property

protected string _lineSeparator
return string

_newlinePending protected_oe property

protected bool _newlinePending
return bool

_out protected_oe property

protected TextWriter,System.IO _out
return System.IO.TextWriter

_startingToken protected_oe property

protected bool _startingToken
return bool