Skip to main content

extract

Function extract 

Source
pub fn extract(file: &SyntaxIrFile) -> FileFeatures
Expand description

Extract the candidate features of every unit in file.

Units are the nodes whose shape is Shape::Function, Shape::Method or Shape::Closure, visited in pre-order, so a nested closure or local function yields its own entry after its host’s.