use super::state_checking;
use tsz_solver::TypeId;
pub(crate) fn collect_property_name_atoms_for_diagnostics(
db: &dyn tsz_solver::TypeDatabase,
type_id: TypeId,
max_depth: usize,
) -> Vec<tsz_common::Atom> {
tsz_solver::type_queries::collect_property_name_atoms_for_diagnostics(db, type_id, max_depth)
}
pub(crate) fn collect_accessible_property_names_for_suggestion(
db: &dyn tsz_solver::TypeDatabase,
type_id: TypeId,
max_depth: usize,
) -> Vec<tsz_common::Atom> {
if state_checking::union_members(db, type_id).is_none() {
return collect_property_name_atoms_for_diagnostics(db, type_id, max_depth);
}
tsz_solver::type_queries::collect_accessible_property_names_for_suggestion(
db, type_id, max_depth,
)
}