MCPcopy
hub / github.com/webpack/webpack / processValue

Function processValue

lib/cli.js:800–816  ·  view source on GitHub ↗
(value, i)

Source from the content-addressed store, hash-verified

798 * @param {number | undefined} i index
799 */
800 const processValue = (value, i) => {
801 /** @type {Problem[]} */
802 const currentProblems = [];
803 for (const argConfig of arg.configs) {
804 const problem = processArgumentConfig(argConfig, config, value, i);
805 if (!problem) {
806 return;
807 }
808 currentProblems.push({
809 ...problem,
810 argument: key,
811 value,
812 index: i
813 });
814 }
815 problems.push(...currentProblems);
816 };
817 const value = values[key];
818 if (Array.isArray(value)) {
819 for (let i = 0; i < value.length; i++) {

Callers 1

processArgumentsFunction · 0.85

Calls 2

processArgumentConfigFunction · 0.85
pushMethod · 0.45

Tested by

no test coverage detected