MCPcopy
hub / github.com/prettier/prettier / getFunctionParameters

Function getFunctionParameters

src/language-js/utilities/function-parameters.js:18–24  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

16
17const functionParametersCache = new WeakMap();
18function getFunctionParameters(node) {
19 return getOrInsertComputed(
20 functionParametersCache,
21 node,
22 getFunctionParametersWithoutCache,
23 );
24}
25
26function iterateFunctionParametersPath(path, iteratee) {
27 const { node } = path;

Callers 14

isTestCallFunction · 0.90
needsParenthesesFunction · 0.90
shouldForceTrailingCommaFunction · 0.90
printArrowFunctionFunction · 0.90
printFunctionFunction · 0.90
printFunctionParametersFunction · 0.90

Calls 1

getOrInsertComputedFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…