Struct dyon::ast::Closure
[−]
[src]
pub struct Closure { pub file: Arc<String>, pub source: Arc<String>, pub args: Vec<Arg>, pub currents: Vec<Current>, pub expr: Expression, pub ret: Type, pub source_range: Range, }
Fields
file: Arc<String>
source: Arc<String>
args: Vec<Arg>
currents: Vec<Current>
expr: Expression
ret: Type
source_range: Range
Methods
impl Closure
[src]
fn from_meta_data(file: &Arc<String>,
source: &Arc<String>,
node: &str,
convert: Convert,
ignored: &mut Vec<Range>)
-> Result<(Range, Closure), ()>
source: &Arc<String>,
node: &str,
convert: Convert,
ignored: &mut Vec<Range>)
-> Result<(Range, Closure), ()>
fn returns(&self) -> bool
fn resolve_locals(&self,
relative: usize,
stack: &mut Vec<Option<Arc<String>>>,
closure_stack: &mut Vec<usize>,
module: &Module,
use_lookup: &UseLookup)
relative: usize,
stack: &mut Vec<Option<Arc<String>>>,
closure_stack: &mut Vec<usize>,
module: &Module,
use_lookup: &UseLookup)
Trait Implementations
impl Debug for Closure
[src]
impl Clone for Closure
[src]
fn clone(&self) -> Closure
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more