(kind Kind)
| 394 | } |
| 395 | |
| 396 | func isLeftHandSideExpressionKind(kind Kind) bool { |
| 397 | switch kind { |
| 398 | case KindPropertyAccessExpression, KindElementAccessExpression, KindNewExpression, KindCallExpression, |
| 399 | KindJsxElement, KindJsxSelfClosingElement, KindJsxFragment, KindTaggedTemplateExpression, KindArrayLiteralExpression, |
| 400 | KindParenthesizedExpression, KindObjectLiteralExpression, KindClassExpression, KindFunctionExpression, KindIdentifier, |
| 401 | KindPrivateIdentifier, KindRegularExpressionLiteral, KindNumericLiteral, KindBigIntLiteral, KindStringLiteral, |
| 402 | KindNoSubstitutionTemplateLiteral, KindTemplateExpression, KindFalseKeyword, KindNullKeyword, KindThisKeyword, |
| 403 | KindTrueKeyword, KindSuperKeyword, KindNonNullExpression, KindExpressionWithTypeArguments, KindMetaProperty, |
| 404 | KindImportKeyword, KindMissingDeclaration: |
| 405 | return true |
| 406 | } |
| 407 | return false |
| 408 | } |
| 409 | |
| 410 | // Determines whether a node is a LeftHandSideExpression based only on its kind. |
| 411 | func IsLeftHandSideExpression(node *Node) bool { |
no outgoing calls
no test coverage detected