yasmin_editor.editor_gui.child_name_conflicts module

Pure helpers for child-state and final-outcome name conflict checks.

yasmin_editor.editor_gui.child_name_conflicts.has_final_outcome_name_conflict(proposed_name: str, *, current_name: str | None, sibling_state_names: Iterable[str], sibling_outcome_names: Sequence[str]) bool

Return whether a final-outcome name collides with sibling states or outcomes.

yasmin_editor.editor_gui.child_name_conflicts.has_state_name_conflict(proposed_name: str, *, sibling_state_names: Iterable[str], sibling_outcome_names: Sequence[str], current_name: str | None = None) bool

Return whether a child-state name collides with sibling states or outcomes.