Skip to content

Commit 0a7b60a

Browse files
authored
chore: update description of SourceCode#getDeclaredVariables (#17072)
1 parent 6e2df71 commit 0a7b60a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/source-code/source-code.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -646,12 +646,12 @@ class SourceCode extends TokenStore {
646646
}
647647

648648
/**
649-
* Gets all of the declared variables in the scope associated
650-
* with `node`. This is a convenience method that passes through
649+
* Get the variables that `node` defines.
650+
* This is a convenience method that passes through
651651
* to the same method on the `scopeManager`.
652-
* @param {ASTNode} node The node from which to retrieve the scope to check.
652+
* @param {ASTNode} node The node for which the variables are obtained.
653653
* @returns {Array<Variable>} An array of variable nodes representing
654-
* the declared variables in the scope associated with `node`.
654+
* the variables that `node` defines.
655655
*/
656656
getDeclaredVariables(node) {
657657
return this.scopeManager.getDeclaredVariables(node);

0 commit comments

Comments
 (0)