MCPcopy Create free account
hub / github.com/reactjs/react-rails / _isConstructorMethod

Function _isConstructorMethod

lib/assets/javascripts/JSXTransformer.js:13654–13658  ·  view source on GitHub ↗

* Used with .filter() to find the constructor method in a list of * MethodDefinition nodes. * * @param {object} classElement * @return {boolean}

(classElement)

Source from the content-addressed store, hash-verified

13652 * @return {boolean}
13653 */
13654function _isConstructorMethod(classElement) {
13655 return classElement.type === Syntax.MethodDefinition &&
13656 classElement.key.type === Syntax.Identifier &&
13657 classElement.key.name === 'constructor';
13658}
13659
13660/**
13661 * @param {object} node

Callers 1

visitSuperCallExpressionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected