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

Function getObjectOrClassMethodParams

packages/babel-parser/src/parser/expression.ts:2244–2246  ·  view source on GitHub ↗
(method: Undone<N.ObjectMethod | N.ClassMethod>)

Source from the content-addressed store, hash-verified

2242
2243 // This exists so we can override within the ESTree plugin
2244 getObjectOrClassMethodParams(method: Undone<N.ObjectMethod | N.ClassMethod>) {
2245 return method.params;
2246 }
2247
2248 // get methods aren't allowed to have any parameters
2249 // set methods must have exactly 1 parameter which is not a rest parameter

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected