Preparing search index...
The search index is not available
Documentation
Documentation
svelte-ast-print
_internal/shared
State
Class State<N>
Internal
Type Parameters
N
=
Node
|
SvelteOnlyNode
Index
Properties
collector
node
opts
depth
Accessors
result
Methods
add
break
get
Properties
collector
collector
:
Collector
= ...
node
node
:
N
opts
opts
:
Options
Transformed options.
Static
depth
depth
:
number
= 0
Stateful indentation level.
Accessors
result
get
result
()
:
Result
<
N
>
Returns
Result
<
N
>
Methods
add
add
(
...
pieces
:
(
RawPiece
|
RawPiece
[]
)
[]
)
:
void
Parameters
...
pieces
: (
RawPiece
|
RawPiece
[]
)
[]
Returns
void
break
break
(
depth
?:
number
)
:
void
Parameters
Optional
depth
:
number
Returns
void
Static
get
get
<
N
extends
Node
|
SvelteOnlyNode
=
Node
|
SvelteOnlyNode
>
(
n
:
N
,
opts
:
Partial
<
PrintOptions
>
,
)
:
State
<
N
>
Type Parameters
N
extends
Node
|
SvelteOnlyNode
=
Node
|
SvelteOnlyNode
Parameters
n
:
N
opts
:
Partial
<
PrintOptions
>
Returns
State
<
N
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Properties
collector
node
opts
depth
Accessors
result
Methods
add
break
get
Documentation
Loading...
Transformed options.