MCPcopy
hub / github.com/sveltejs/svelte / extract_identifiers

Function extract_identifiers

packages/svelte/src/compiler/utils/ast.js:136–138  ·  view source on GitHub ↗
(pattern)

Source from the content-addressed store, hash-verified

134 * @returns {ESTree.Identifier[]}
135 */
136export function extract_identifiers(pattern) {
137 return unwrap_pattern(pattern, []).filter((node) => node.type === 'Identifier');
138}
139
140/**
141 * Extracts all identifiers and a stringified keypath from an expression.

Callers 15

migrateFunction · 0.90
LabeledStatementFunction · 0.90
add_paramsFunction · 0.90
LabeledStatementFunction · 0.90
VariableDeclarationFunction · 0.90
CatchClauseFunction · 0.90
EachBlockFunction · 0.90
AwaitBlockFunction · 0.90
SnippetBlockFunction · 0.90
sort_const_tagsFunction · 0.90
ConstTagFunction · 0.90

Calls 1

unwrap_patternFunction · 0.85

Tested by

no test coverage detected