Struct dyon::ast::Function
[−]
[src]
pub struct Function { pub namespace: Arc<Vec<Arc<String>>>, 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
namespace: Arc<Vec<Arc<String>>>
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(
namespace: &Arc<Vec<Arc<String>>>,
file: &Arc<String>,
source: &Arc<String>,
node: &str,
convert: Convert,
ignored: &mut Vec<Range>
) -> Result<(Range, Function), ()>
namespace: &Arc<Vec<Arc<String>>>,
file: &Arc<String>,
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,
use_lookup: &UseLookup
)
&self,
relative: usize,
module: &Module,
use_lookup: &UseLookup
)
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