Struct sway_core::error::ParserLifter
source · pub struct ParserLifter<T> {
pub var_decls: Vec<VariableDeclaration>,
pub value: T,
}
Expand description
Acts as the result of parsing Declaration
s, Expression
s, etc.
Some Expression
s need to be able to create VariableDeclaration
s,
so this struct is used to “bubble up” those declarations to a viable
place in the AST.
Fields§
§var_decls: Vec<VariableDeclaration>
§value: T
Trait Implementations§
source§impl<T: Clone> Clone for ParserLifter<T>
impl<T: Clone> Clone for ParserLifter<T>
source§fn clone(&self) -> ParserLifter<T>
fn clone(&self) -> ParserLifter<T>
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more