jsdoc-type-pratt-parser
Preparing search index...
src
parse
Function parse
parse
(
expression
:
string
,
mode
:
ParseMode
,
__namedParameters
?:
{
asyncFunctionBody
?:
boolean
;
classContext
?:
boolean
;
computedPropertyParser
?:
(
text
:
string
,
options
?:
any
)
=>
unknown
;
loc
?:
boolean
;
locStart
?:
{
column
:
number
;
line
:
number
}
;
module
?:
boolean
;
range
?:
boolean
;
rangeStart
?:
number
;
strictMode
?:
boolean
;
}
,
)
:
RootResult
This function parses the given expression in the given mode and produces a
RootResult
.
Parameters
expression
:
string
mode
:
ParseMode
__namedParameters
:
{
asyncFunctionBody
?:
boolean
;
classContext
?:
boolean
;
computedPropertyParser
?:
(
text
:
string
,
options
?:
any
)
=>
unknown
;
loc
?:
boolean
;
locStart
?:
{
column
:
number
;
line
:
number
}
;
module
?:
boolean
;
range
?:
boolean
;
rangeStart
?:
number
;
strictMode
?:
boolean
;
}
= {}
Returns
RootResult
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
jsdoc-type-pratt-parser
Loading...
This function parses the given expression in the given mode and produces a RootResult.