Enum boa::syntax::ast::node::declaration::Declaration [−][src]
pub enum Declaration {
Identifier {
ident: Identifier,
init: Option<Node>,
},
Pattern(DeclarationPattern),
}Expand description
Declaration represents either an individual binding or a binding pattern.
For let and const declarations this type represents a LexicalBinding
For var declarations this type represents a VariableDeclaration
More information:
Variants
Fields of Identifier
ident: Identifierinit: Option<Node>Pattern(DeclarationPattern)Tuple Fields of Pattern
Trait Implementations
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Runs Finalize::finalize() on this object and all contained subobjects Read more
Auto Trait Implementations
impl !RefUnwindSafe for Declaration
impl !Send for Declaration
impl !Sync for Declaration
impl Unpin for Declaration
impl UnwindSafe for Declaration
Blanket Implementations
Mutably borrows from an owned value. Read more