From 08a17564a6f291cd8cc06bbfc2f7f5f5b14577d9 Mon Sep 17 00:00:00 2001 From: overlookmotel Date: Mon, 23 Sep 2024 15:11:50 +0100 Subject: [PATCH] docs(semantic): correct docs for `Reference` --- crates/oxc_semantic/src/reference.rs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/crates/oxc_semantic/src/reference.rs b/crates/oxc_semantic/src/reference.rs index 0b1b418b9c85a9..4b06a58f7aa3f7 100644 --- a/crates/oxc_semantic/src/reference.rs +++ b/crates/oxc_semantic/src/reference.rs @@ -20,10 +20,9 @@ use crate::{symbol::SymbolId, NodeId}; /// populated. [`None`] indicates that either a global variable or a /// non-existent symbol is being referenced. /// -/// In most cases, the node identified by `node_id` will be an -/// [`IdentifierReference`], but it could be some special reference type like a -/// [`JSXIdentifier`]. Note that declarations do not count as references, even -/// if the declaration is being used in an expression. +/// The node identified by `node_id` will be an [`IdentifierReference`]. +/// Note that declarations do not count as references, even if the declaration +/// is being used in an expression. /// /// ```ts /// const arr = [1, 2, 3].map(function mapper(x) { return x + 1; }); @@ -31,7 +30,6 @@ use crate::{symbol::SymbolId, NodeId}; /// ``` /// /// [`IdentifierReference`]: oxc_ast::ast::IdentifierReference -/// [`JSXIdentifier`]: oxc_ast::ast::JSXIdentifier #[derive(Debug, Clone)] #[cfg_attr(feature = "serialize", derive(Serialize, Tsify))] #[cfg_attr(feature = "serialize", serde(rename_all = "camelCase"))]