()
| 360 | } |
| 361 | |
| 362 | parseJSXElementName(): JSXNode.JSXElementName { |
| 363 | const node = this.createJSXNode(); |
| 364 | let elementName = this.parseJSXIdentifier(); |
| 365 | |
| 366 | if (this.matchJSX(':')) { |
| 367 | const namespace = elementName; |
| 368 | this.expectJSX(':'); |
| 369 | const name = this.parseJSXIdentifier(); |
| 370 | elementName = this.finalize(node, new JSXNode.JSXNamespacedName(namespace, name)); |
| 371 | } else if (this.matchJSX('.')) { |
| 372 | while (this.matchJSX('.')) { |
| 373 | const object = elementName; |
| 374 | this.expectJSX('.'); |
| 375 | const property = this.parseJSXIdentifier(); |
| 376 | elementName = this.finalize(node, new JSXNode.JSXMemberExpression(object, property)); |
| 377 | } |
| 378 | } |
| 379 | |
| 380 | return elementName; |
| 381 | } |
| 382 | |
| 383 | parseJSXAttributeName(): JSXNode.JSXAttributeName { |
| 384 | const node = this.createJSXNode(); |
no test coverage detected