From 0a7b60a9d5621dbbc1a8a8adda3b7c2060c779ca Mon Sep 17 00:00:00 2001 From: Milos Djermanovic Date: Sun, 9 Apr 2023 06:16:34 +0200 Subject: [PATCH] chore: update description of `SourceCode#getDeclaredVariables` (#17072) --- lib/source-code/source-code.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/source-code/source-code.js b/lib/source-code/source-code.js index abaefa89994..8a6c8d59064 100644 --- a/lib/source-code/source-code.js +++ b/lib/source-code/source-code.js @@ -646,12 +646,12 @@ class SourceCode extends TokenStore { } /** - * Gets all of the declared variables in the scope associated - * with `node`. This is a convenience method that passes through + * Get the variables that `node` defines. + * This is a convenience method that passes through * to the same method on the `scopeManager`. - * @param {ASTNode} node The node from which to retrieve the scope to check. + * @param {ASTNode} node The node for which the variables are obtained. * @returns {Array} An array of variable nodes representing - * the declared variables in the scope associated with `node`. + * the variables that `node` defines. */ getDeclaredVariables(node) { return this.scopeManager.getDeclaredVariables(node);