Make some of ruff_python_semantic pub(crate) (#5093)

This commit is contained in:
Charlie Marsh
2023-06-14 13:49:37 -04:00
committed by GitHub
parent 916f0889f8
commit c992cfa76e
5 changed files with 22 additions and 22 deletions

View File

@@ -36,11 +36,11 @@ pub struct ReferenceId;
/// The references of a program indexed by [`ReferenceId`].
#[derive(Debug, Default)]
pub struct References(IndexVec<ReferenceId, Reference>);
pub(crate) struct References(IndexVec<ReferenceId, Reference>);
impl References {
/// Pushes a new [`Reference`] and returns its [`ReferenceId`].
pub fn push(
pub(crate) fn push(
&mut self,
scope_id: ScopeId,
range: TextRange,