Skip to main content

split_by_direction

Function split_by_direction 

Source
pub fn split_by_direction(module: &mut Module, service: Option<&mut Service>)
Expand description

Project every model a direction mark reaches onto the direction that carries it, and point each API position at the shape it takes.

service is None for a models-only run, which has no operation to give a direction. The pass splits every marked model there, because the run that consumes those models does know the direction.

The pass leaves a document that marks no property untouched.