Enum syntax::ast_map::blocks::Code
[−]
[src]
pub enum Code<'a> {
FnLikeCode(FnLikeNode<'a>),
BlockCode(&'a Block),
}Unstable
Carries either an FnLikeNode or a Block, as these are the two constructs that correspond to "code" (as in, something from which we can construct a control-flow graph).
Variants
FnLikeCode | Unstable |
BlockCode | Unstable |
Methods
impl<'a> Code<'a>
fn id(&self) -> NodeId
Unstable
fn from_node(node: Node) -> Option<Code>
Unstable
Attempts to construct a Code from presumed FnLike or Block node input.