static getFbtConstructNameFromFunctionCall()

in packages/babel-plugin-fbt/src/FbtNodeChecker.js [197:208]


  static getFbtConstructNameFromFunctionCall(node: BabelNode): ?FbtNodeType {
    return (
      (isCallExpression(node) &&
        isMemberExpression(node.callee) &&
        isIdentifier(node.callee.object) &&
        isIdentifier(node.callee.property) &&
        [FBT, FBS, REACT_FBT].includes(node.callee.object.name) &&
        typeof node.callee.property.name === 'string' &&
        FbtNodeType.cast(node.callee.property.name)) ||
      null
    );
  }