()
| 35357 | return finishNode(node, pos); |
| 35358 | } |
| 35359 | function parseJsxElementName() { |
| 35360 | var pos = getNodePos(); |
| 35361 | scanJsxIdentifier(); |
| 35362 | // JsxElement can have name in the form of |
| 35363 | // propertyAccessExpression |
| 35364 | // primaryExpression in the form of an identifier and "this" keyword |
| 35365 | // We can't just simply use parseLeftHandSideExpressionOrHigher because then we will start consider class,function etc as a keyword |
| 35366 | // We only want to consider "this" as a primaryExpression |
| 35367 | var expression = token() === 108 /* SyntaxKind.ThisKeyword */ ? |
| 35368 | parseTokenNode() : parseIdentifierName(); |
| 35369 | while (parseOptional(24 /* SyntaxKind.DotToken */)) { |
| 35370 | expression = finishNode(factory.createPropertyAccessExpression(expression, parseRightSideOfDot(/*allowIdentifierNames*/ true, /*allowPrivateIdentifiers*/ false)), pos); |
| 35371 | } |
| 35372 | return expression; |
| 35373 | } |
| 35374 | function parseJsxExpression(inExpressionContext) { |
| 35375 | var pos = getNodePos(); |
| 35376 | if (!parseExpected(18 /* SyntaxKind.OpenBraceToken */)) { |
no test coverage detected
searching dependent graphs…