Preparing search index...
The search index is not available
@fluent/syntax - v0.19.0
@fluent/syntax - v0.19.0
Variant
Class Variant
Base class for AST nodes which can have Spans.
Hierarchy
SyntaxNode
Variant
Index
Constructors
constructor
Properties
default
key
span?
type
value
Methods
clone
equals
Constructors
constructor
new
Variant
(
key
:
Identifier
|
NumberLiteral
, value
:
Pattern
, def
:
boolean
)
:
Variant
Parameters
key:
Identifier
|
NumberLiteral
value:
Pattern
def:
boolean
Returns
Variant
Properties
default
default
:
boolean
key
key
:
Identifier
|
NumberLiteral
Optional
span
span
?:
Span
type
type
:
"Variant"
= ...
value
value
:
Pattern
Methods
clone
clone
(
)
:
Variant
Returns
Variant
equals
equals
(
other
:
BaseNode
, ignoredFields
?:
string
[]
)
:
boolean
Parameters
other:
BaseNode
ignoredFields:
string
[]
= ...
Returns
boolean
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
Modules
@fluent/syntax -
v0.19.0
Variant
constructor
default
key
span?
type
value
clone
equals
Base class for AST nodes which can have Spans.