MCPcopy Create free account
hub / github.com/babel/babel / isSimpleParamList

Function isSimpleParamList

packages/babel-parser/src/parser/expression.ts:2697–2704  ·  view source on GitHub ↗
(
    params: readonly (N.FunctionParameter | N.TSParameterProperty)[],
  )

Source from the content-addressed store, hash-verified

2695 }
2696
2697 isSimpleParamList(
2698 params: readonly (N.FunctionParameter | N.TSParameterProperty)[],
2699 ): boolean {
2700 for (let i = 0, len = params.length; i < len; i++) {
2701 if (!this.isSimpleParameter(params[i])) return false;
2702 }
2703 return true;
2704 }
2705
2706 checkParams(
2707 node: Undone<N.Function>,

Callers

nothing calls this directly

Calls 1

isSimpleParameterMethod · 0.80

Tested by

no test coverage detected