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 Declarations, Expressions, etc.
Some Expressions need to be able to create VariableDeclarations,
so this struct is used to “bubble up” those declarations to a viable
place in the AST.
Fields§
§var_decls: Vec<VariableDeclaration>§value: TTrait 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