Struct dyon::ast::Function
[−]
[src]
pub struct Function { pub name: Arc<String>, pub file: Arc<String>, pub source: Arc<String>, pub args: Vec<Arg>, pub currents: Vec<Current>, pub block: Block, pub ret: Type, pub resolved: Cell<bool>, pub source_range: Range, }
Fields
name: Arc<String>
file: Arc<String>
source: Arc<String>
args: Vec<Arg>
currents: Vec<Current>
block: Block
ret: Type
resolved: Cell<bool>
source_range: Range
Methods
impl Function
[src]
fn from_meta_data(file: &Arc<String>,
source: &Arc<String>,
node: &str,
convert: Convert,
ignored: &mut Vec<Range>)
-> Result<(Range, Function), ()>
source: &Arc<String>,
node: &str,
convert: Convert,
ignored: &mut Vec<Range>)
-> Result<(Range, Function), ()>
fn returns(&self) -> bool
fn resolve_locals(&self, relative: usize, module: &Module)
Trait Implementations
impl Debug for Function
[src]
impl Clone for Function
[src]
fn clone(&self) -> Function
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