Skip to content

Commit

Permalink
chore: update description of SourceCode#getDeclaredVariables (#17072)
Browse files Browse the repository at this point in the history
  • Loading branch information
mdjermanovic authored Apr 9, 2023
1 parent 6e2df71 commit 0a7b60a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/source-code/source-code.js
Original file line number Diff line number Diff line change
Expand Up @@ -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<Variable>} 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);
Expand Down

0 comments on commit 0a7b60a

Please sign in to comment.