Class: LoopExpression
Implements
Constructors
new LoopExpression()
new LoopExpression(
name
,iterable
,limit
?,offset
?,cols
?,reversed
?):LoopExpression
Parameters
• name: string
• iterable: StringLiteral
| RangeLiteral
| Identifier
• limit?: LoopArgument
• offset?: LoopArgument
• cols?: LoopArgument
• reversed?: boolean
= false
Returns
Defined in
Properties
cols?
readonly
optional
cols:LoopArgument
Defined in
iterable
readonly
iterable:StringLiteral
|RangeLiteral
|Identifier
Defined in
limit?
readonly
optional
limit:LoopArgument
Defined in
name
readonly
name:string
Defined in
offset?
readonly
optional
offset:LoopArgument
Defined in
reversed
readonly
reversed:boolean
=false
Defined in
Methods
children()
children():
Expression
[]
Returns
Implementation of
Defined in
drop()
protected
drop(it
,n
):Generator
<unknown
,any
,unknown
>
Parameters
• it: Iterator
<unknown
, any
, undefined
>
• n: number
Returns
Generator
<unknown
, any
, unknown
>
Defined in
equals()
equals(
other
):boolean
Parameters
• other: unknown
Returns
boolean
Implementation of
Defined in
evaluate()
evaluate(
context
):Promise
<[Iterator
<unknown
,any
,undefined
>,number
]>
Parameters
• context: RenderContext
Returns
Promise
<[Iterator
<unknown
, any
, undefined
>, number
]>
Implementation of
Defined in
evaluateSync()
evaluateSync(
context
): [Iterator
<unknown
,any
,undefined
>,number
]
Parameters
• context: RenderContext
Returns
[Iterator
<unknown
, any
, undefined
>, number
]
Implementation of
Defined in
limitAndOffset()
protected
limitAndOffset(context
,it
,length
,limit
,offset
): [Iterator
<unknown
,any
,undefined
>,number
]
Parameters
• context: RenderContext
• it: Iterable
<unknown
>
• length: number
• limit: unknown
• offset: unknown
Returns
[Iterator
<unknown
, any
, undefined
>, number
]
Defined in
take()
protected
take(it
,n
):Generator
<unknown
,any
,unknown
>
Parameters
• it: Iterator
<unknown
, any
, undefined
>
• n: number
Returns
Generator
<unknown
, any
, unknown
>
Defined in
toIter()
protected
toIter(obj
): [Iterable
<unknown
>,number
]
Parameters
• obj: unknown
Returns
[Iterable
<unknown
>, number
]
Defined in
toString()
toString():
string
Returns
string