Skip to content

Commit 2e22ac3

Browse files
committed
tweak description
1 parent f96c9ad commit 2e22ac3

File tree

1 file changed

+1
-1
lines changed
  • packages/svelte/src/compiler/utils

1 file changed

+1
-1
lines changed

packages/svelte/src/compiler/utils/ast.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ export function extract_identifiers_from_destructuring(node, nodes = []) {
227227
* @property {ESTree.Identifier | ESTree.MemberExpression} node The node the destructuring path end in. Can be a member expression only for assignment expressions
228228
* @property {boolean} is_rest `true` if this is a `...rest` destructuring
229229
* @property {boolean} has_default_value `true` if this has a fallback value like `const { foo = 'bar } = ..`
230-
* @property {ESTree.Expression} expression Returns an expression which walks the path starting at the given expression.
230+
* @property {ESTree.Expression} expression The value of the current path
231231
* This will be a call expression if a rest element or default is involved — e.g. `const { foo: { bar: baz = 42 }, ...rest } = quux` — since we can't represent `baz` or `rest` purely as a path
232232
* Will be an await expression in case of an async default value (`const { foo = await bar } = ...`)
233233
* @property {ESTree.Expression} update_expression Like `expression` but without default values.

0 commit comments

Comments
 (0)