MCPcopy Index your code
hub / github.com/reactjs/react-rails / getQualifiedJSXName

Function getQualifiedJSXName

lib/assets/javascripts/JSXTransformer.js:9059–9075  ·  view source on GitHub ↗
(object)

Source from the content-addressed store, hash-verified

9057 };
9058
9059 function getQualifiedJSXName(object) {
9060 if (object.type === Syntax.JSXIdentifier) {
9061 return object.name;
9062 }
9063 if (object.type === Syntax.JSXNamespacedName) {
9064 return object.namespace.name + ':' + object.name.name;
9065 }
9066 /* istanbul ignore else */
9067 if (object.type === Syntax.JSXMemberExpression) {
9068 return (
9069 getQualifiedJSXName(object.object) + '.' +
9070 getQualifiedJSXName(object.property)
9071 );
9072 }
9073 /* istanbul ignore next */
9074 throwUnexpected(object);
9075 }
9076
9077 function isJSXIdentifierStart(ch) {
9078 // exclude backslash (\)

Callers 1

parseJSXElementFunction · 0.85

Calls 1

throwUnexpectedFunction · 0.85

Tested by

no test coverage detected