Skip to main content

add_enum_def

Function add_enum_def 

Source
fn add_enum_def(
    edit: &mut SourceChangeBuilder,
    ctx: &AssistContext<'_, '_>,
    usages: &UsageSearchResult,
    target_node: SyntaxNode,
    target_module: &Module,
    make: &SyntaxFactory,
) -> Option<()>
Expand description

Adds the definition of the new enum before the target node.