mirror of
https://github.com/danbulant/oxc
synced 2026-05-19 04:08:41 +00:00
docs(semantic): improve doc comments on Reference methods (#6076)
This commit is contained in:
parent
c2616f7fa1
commit
efabfc8dac
1 changed files with 6 additions and 4 deletions
|
|
@ -95,15 +95,17 @@ impl Reference {
|
|||
&mut self.flags
|
||||
}
|
||||
|
||||
/// Returns `true` if the identifier value was read. This is not mutually
|
||||
/// exclusive with [`#is_write`]
|
||||
/// Returns `true` if the identifier value was read.
|
||||
///
|
||||
/// This is not mutually exclusive with [`Reference::is_write`].
|
||||
#[inline]
|
||||
pub fn is_read(&self) -> bool {
|
||||
self.flags.is_read()
|
||||
}
|
||||
|
||||
/// Returns `true` if the identifier was written to. This is not mutually
|
||||
/// exclusive with [`#is_read`]
|
||||
/// Returns `true` if the identifier was written to.
|
||||
///
|
||||
/// This is not mutually exclusive with [`Reference::is_read`].
|
||||
#[inline]
|
||||
pub fn is_write(&self) -> bool {
|
||||
self.flags.is_write()
|
||||
|
|
|
|||
Loading…
Reference in a new issue