@tbela99/css-parser
Benchmark
Docs
Playground
GitHub
Preparing search index...
node
Context
Interface Context<Type>
interface
Context
<
Type
>
{
index
:
number
;
length
:
number
;
clone
<
Type
>
()
:
Context
<
Type
>
;
consume
<
Type
>
(
token
:
Type
,
howMany
?:
number
)
:
boolean
;
consume
<
Type
>
(
token
:
Type
,
howMany
?:
number
)
:
boolean
;
current
<
Type
>
()
:
null
|
Type
;
done
()
:
boolean
;
next
<
Type
>
()
:
null
|
Type
;
peek
<
Type
>
()
:
null
|
Type
;
slice
<
Type
>
()
:
Type
[]
;
update
<
Type
>
(
context
:
Context
<
Type
>
)
:
void
;
}
Type Parameters
Type
Index
Methods
clone
consume
current
done
next
peek
slice
update
Properties
index
length
Methods
clone
clone
<
Type
>
()
:
Context
<
Type
>
Type Parameters
Type
Returns
Context
<
Type
>
consume
consume
<
Type
>
(
token
:
Type
,
howMany
?:
number
)
:
boolean
Type Parameters
Type
Parameters
token
:
Type
Optional
howMany
:
number
Returns
boolean
consume
<
Type
>
(
token
:
Type
,
howMany
?:
number
)
:
boolean
Type Parameters
Type
Parameters
token
:
Type
Optional
howMany
:
number
Returns
boolean
current
current
<
Type
>
()
:
null
|
Type
Type Parameters
Type
Returns
null
|
Type
done
done
()
:
boolean
Returns
boolean
next
next
<
Type
>
()
:
null
|
Type
Type Parameters
Type
Returns
null
|
Type
peek
peek
<
Type
>
()
:
null
|
Type
Type Parameters
Type
Returns
null
|
Type
slice
slice
<
Type
>
()
:
Type
[]
Type Parameters
Type
Returns
Type
[]
update
update
<
Type
>
(
context
:
Context
<
Type
>
)
:
void
Type Parameters
Type
Parameters
context
:
Context
<
Type
>
Returns
void
Properties
index
index
:
number
Readonly
length
length
:
number
The length of the context tokens to be consumed
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Methods
clone
consume
current
done
next
peek
slice
update
Properties
index
length
Benchmark
Docs
Playground
GitHub
@tbela99/css-parser
Loading...
The length of the context tokens to be consumed