()
| 381 | } |
| 382 | |
| 383 | parseJSXAttributeName(): JSXNode.JSXAttributeName { |
| 384 | const node = this.createJSXNode(); |
| 385 | let attributeName: JSXNode.JSXAttributeName; |
| 386 | |
| 387 | const identifier = this.parseJSXIdentifier(); |
| 388 | if (this.matchJSX(':')) { |
| 389 | const namespace = identifier; |
| 390 | this.expectJSX(':'); |
| 391 | const name = this.parseJSXIdentifier(); |
| 392 | attributeName = this.finalize(node, new JSXNode.JSXNamespacedName(namespace, name)); |
| 393 | } else { |
| 394 | attributeName = identifier; |
| 395 | } |
| 396 | |
| 397 | return attributeName; |
| 398 | } |
| 399 | |
| 400 | parseJSXStringLiteralAttribute(): Node.Literal { |
| 401 | const node = this.createJSXNode(); |
no test coverage detected