Struct sway_core::language::lexed::LexedProgram
source · pub struct LexedProgram {
pub kind: TreeType,
pub root: LexedModule,
}
Expand description
A lexed, but not yet parsed or type-checked, Sway program.
Includes all modules in the form of a LexedModule tree accessed via the root
.
Fields§
§kind: TreeType
§root: LexedModule
Implementations§
source§impl LexedProgram
impl LexedProgram
pub fn new(kind: TreeType, root: LexedModule) -> LexedProgram
Trait Implementations§
source§impl Clone for LexedProgram
impl Clone for LexedProgram
source§fn clone(&self) -> LexedProgram
fn clone(&self) -> LexedProgram
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