mirror of
https://github.com/astral-sh/ruff.git
synced 2025-08-17 00:50:16 +00:00
Make some of ruff_python_semantic
pub(crate)
(#5093)
This commit is contained in:
parent
916f0889f8
commit
c992cfa76e
5 changed files with 22 additions and 22 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue