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);