brane_ast::traversals::print::dsl

Function pass_property

Source
pub fn pass_property(
    writer: &mut impl Write,
    prop: &Property,
    largest_prop: usize,
    indent: usize,
) -> Result<()>
Expand description

Prints a Property node.

§Arguments

  • writer: The Writer to write to.
  • prop: The Property to traverse.
  • largest_prop: The longest property name. It will auto-pad all names to this length to make a nice list.
  • indent: The current base indent of all new lines to write.

§Returns

Nothing, but does print it.