struct StatementGraph {
nodes: Vec<&'static str>,
flow: Vec<(usize, usize, &'static str)>,
jumps: Vec<(usize, usize, &'static str, usize)>,
dependencies: Vec<(usize, Handle<Expression>, &'static str)>,
emits: Vec<(usize, Handle<Expression>)>,
calls: Vec<(usize, Handle<Function>)>,
}
Expand description
Stores information about the graph of statements
Fields§
§nodes: Vec<&'static str>
List of node names
flow: Vec<(usize, usize, &'static str)>
List of edges of the control flow, the items are defined as (from, to, label)
jumps: Vec<(usize, usize, &'static str, usize)>
List of implicit edges of the control flow, used for jump operations such as continue or break, the items are defined as (from, to, label, color_id)
dependencies: Vec<(usize, Handle<Expression>, &'static str)>
List of dependency relationships between a statement node and expressions
emits: Vec<(usize, Handle<Expression>)>
List of expression emitted by statement node
calls: Vec<(usize, Handle<Function>)>
List of function call by statement node
Implementations§
Trait Implementations§
source§impl Default for StatementGraph
impl Default for StatementGraph
source§fn default() -> StatementGraph
fn default() -> StatementGraph
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for StatementGraph
impl RefUnwindSafe for StatementGraph
impl Send for StatementGraph
impl Sync for StatementGraph
impl Unpin for StatementGraph
impl UnwindSafe for StatementGraph
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more