Struct dynamo::lifetime::Node
[−]
[src]
pub struct Node { pub kind: Kind, pub name: Option<Arc<String>>, pub source: Range, pub parent: Option<usize>, pub children: Vec<usize>, pub start: usize, pub end: usize, pub lifetime: Option<Arc<String>>, pub declaration: Option<usize>, pub op: Option<Op>, pub ids: u32, pub arg_constraints: Vec<ArgConstraint>, }
Fields
kind: Kind
The kind of node.
name: Option<Arc<String>>
The name.
source: Range
The range in source.
parent: Option<usize>
The parent index.
children: Vec<usize>
The children.
start: usize
The start index in meta data.
end: usize
The end index in meta data.
lifetime: Option<Arc<String>>
The lifetime.
declaration: Option<usize>
The declaration.
op: Option<Op>
Operation.
ids: u32
Number of ids. Used to determine declaration of locals.
arg_constraints: Vec<ArgConstraint>
The argument constraints, one for each argument to a function. Just using an empty vector for nodes that are not functions.