()
| 9377 | } |
| 9378 | |
| 9379 | function parseJSXClosingElement() { |
| 9380 | var name, origInJSXChild, origInJSXTag, marker = markerCreate(); |
| 9381 | origInJSXChild = state.inJSXChild; |
| 9382 | origInJSXTag = state.inJSXTag; |
| 9383 | state.inJSXChild = false; |
| 9384 | state.inJSXTag = true; |
| 9385 | expect('<'); |
| 9386 | expect('/'); |
| 9387 | name = parseJSXElementName(); |
| 9388 | // Because advance() (called by lex() called by expect()) expects there |
| 9389 | // to be a valid token after >, it needs to know whether to look for a |
| 9390 | // standard JS token or an JSX text node |
| 9391 | state.inJSXChild = origInJSXChild; |
| 9392 | state.inJSXTag = origInJSXTag; |
| 9393 | expect('>'); |
| 9394 | return markerApply(marker, delegate.createJSXClosingElement(name)); |
| 9395 | } |
| 9396 | |
| 9397 | function parseJSXOpeningElement() { |
| 9398 | var name, attributes = [], selfClosing = false, origInJSXChild, origInJSXTag, marker = markerCreate(); |
no test coverage detected