Preparing search index...
The search index is not available
Dinghy
Dinghy
prettyPrinter
PrettyPrinter
Class PrettyPrinter
Hierarchy (
view full
)
Printer
<
AbstractNode
<
any
>
>
PrettyPrinter
Index
Constructors
constructor
Properties
_previous
Node
errors
original
File
root
writer
Accessors
previous
Node
Methods
_detect
Indentation
_generate
_get
Original
Line
_get
Previous
Node
_get
Previous
Node
Position
_print
Line
Until
Previous
Node
append
deindent
in
Command
indent
new
Line
out
Command
print
space
Constructors
constructor
new
Pretty
Printer
(
root
)
:
PrettyPrinter
Parameters
root
:
AbstractNode
<
any
>
Returns
PrettyPrinter
Properties
_previous
Node
_previous
Node
:
Record
<
string
,
AbstractNode
<
any
>
>
= {}
Readonly
errors
errors
:
ParserError
<
AbstractNode
<
any
>
>
[]
= []
original
File
original
File
:
File
Readonly
root
root
:
AbstractNode
<
any
>
writer
writer
:
Writer
= ...
Accessors
previous
Node
set
previousNode
(
node
)
:
void
Parameters
node
:
T
Returns
void
Methods
Private
_detect
Indentation
_detect
Indentation
(
node
)
:
void
Parameters
node
:
AbstractNode
<
any
>
Returns
void
_generate
_generate
(
node
)
:
PrettyPrinter
Parameters
node
:
AbstractNode
<
any
>
Returns
PrettyPrinter
Private
_get
Original
Line
_get
Original
Line
(
node
)
:
void
Parameters
node
:
AbstractNode
<
any
>
Returns
void
_get
Previous
Node
_get
Previous
Node
(
node
)
:
AbstractNode
<
any
>
Parameters
node
:
AbstractNode
<
any
>
Returns
AbstractNode
<
any
>
_get
Previous
Node
Position
_get
Previous
Node
Position
(
node
)
:
Position
Parameters
node
:
AbstractNode
<
any
>
Returns
Position
_print
Line
Until
Previous
Node
_print
Line
Until
Previous
Node
(
node
)
:
void
Parameters
node
:
AbstractNode
<
any
>
Returns
void
append
append
(
str
)
:
PrettyPrinter
Parameters
str
:
string
Returns
PrettyPrinter
deindent
deindent
(
)
:
PrettyPrinter
Returns
PrettyPrinter
in
Command
in
Command
(
)
:
PrettyPrinter
Returns
PrettyPrinter
indent
indent
(
)
:
PrettyPrinter
Returns
PrettyPrinter
new
Line
new
Line
(
)
:
PrettyPrinter
Returns
PrettyPrinter
out
Command
out
Command
(
)
:
PrettyPrinter
Returns
PrettyPrinter
print
print
(
)
:
string
Returns
string
space
space
(
)
:
PrettyPrinter
Returns
PrettyPrinter
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
_previous
Node
errors
original
File
root
writer
previous
Node
_detect
Indentation
_generate
_get
Original
Line
_get
Previous
Node
_get
Previous
Node
Position
_print
Line
Until
Previous
Node
append
deindent
in
Command
indent
new
Line
out
Command
print
space
Dinghy
Loading...
Generated using
TypeDoc