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]
impl Closure
pub fn from_meta_data(
file: &Arc<String>,
source: &Arc<String>,
node: &str,
convert: Convert,
ignored: &mut Vec<Range>
) -> Result<(Range, Closure), ()>
[src]
pub fn from_meta_data(
file: &Arc<String>,
source: &Arc<String>,
node: &str,
convert: Convert,
ignored: &mut Vec<Range>
) -> Result<(Range, Closure), ()>
pub fn returns(&self) -> bool
[src]
pub fn returns(&self) -> bool
pub fn resolve_locals(
&self,
relative: usize,
stack: &mut Vec<Option<Arc<String>>>,
closure_stack: &mut Vec<usize>,
module: &Module,
use_lookup: &UseLookup
)
[src]
pub fn resolve_locals(
&self,
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 Debug for Closure
fn fmt(&self, f: &mut Formatter) -> Result
[src]
fn fmt(&self, f: &mut Formatter) -> Result
Formats the value using the given formatter. Read more
impl Clone for Closure
[src]
impl Clone for Closure