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.