| 130803 | return true; |
| 130804 | } |
| 130805 | function tryClassifyJsxElementName(token) { |
| 130806 | switch (token.parent && token.parent.kind) { |
| 130807 | case 280 /* SyntaxKind.JsxOpeningElement */: |
| 130808 | if (token.parent.tagName === token) { |
| 130809 | return 19 /* ClassificationType.jsxOpenTagName */; |
| 130810 | } |
| 130811 | break; |
| 130812 | case 281 /* SyntaxKind.JsxClosingElement */: |
| 130813 | if (token.parent.tagName === token) { |
| 130814 | return 20 /* ClassificationType.jsxCloseTagName */; |
| 130815 | } |
| 130816 | break; |
| 130817 | case 279 /* SyntaxKind.JsxSelfClosingElement */: |
| 130818 | if (token.parent.tagName === token) { |
| 130819 | return 21 /* ClassificationType.jsxSelfClosingTagName */; |
| 130820 | } |
| 130821 | break; |
| 130822 | case 285 /* SyntaxKind.JsxAttribute */: |
| 130823 | if (token.parent.name === token) { |
| 130824 | return 22 /* ClassificationType.jsxAttribute */; |
| 130825 | } |
| 130826 | break; |
| 130827 | } |
| 130828 | return undefined; |
| 130829 | } |
| 130830 | // for accurate classification, the actual token should be passed in. however, for |
| 130831 | // cases like 'disabled merge code' classification, we just get the token kind and |
| 130832 | // classify based on that instead. |