Struct cleaver::fe::ast::Node [] [src]

pub struct Node<I> {
    pub pos: Position,
    pub node: I,
}

Fields

Methods

impl Node<Statement>
[src]

Visit all statements with a given closure.

The given closure is called for each statement with a reference to the given node. This reference inherits the lifetime of self. The return value indicates whether further statements should be visited or not.

Use this method as alternative to the Visitor.

Visit all expressions with a given closure.

Same as visit_stmt, but for expressions.

impl Node<Expression>
[src]

Visit all expressions with a given closure.

Same as visit_stmt, but for expressions.

Trait Implementations

impl<I: PartialEq> PartialEq for Node<I>
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl<I: Debug> Debug for Node<I>
[src]

Formats the value using the given formatter.

impl<'a> Visitable<'a> for Node<Function>
[src]

impl<'a> Visitable<'a> for Node<Statement>
[src]

impl<'a> Visitable<'a> for Node<Expression>
[src]