(node *Node)
| 1554 | } |
| 1555 | |
| 1556 | func IsBindableObjectDefinePropertyCall(node *Node) bool { |
| 1557 | if args := node.Arguments(); len(args) == 3 { |
| 1558 | if expr := node.Expression(); IsPropertyAccessExpression(expr) && |
| 1559 | IsIdentifier(expr.Expression()) && expr.Expression().Text() == "Object" && |
| 1560 | expr.Name().Text() == "defineProperty" && |
| 1561 | IsStringOrNumericLiteralLike(args[1]) && |
| 1562 | IsBindableStaticNameExpression(args[0] /*excludeThisKeyword*/, true) { |
| 1563 | return true |
| 1564 | } |
| 1565 | } |
| 1566 | return false |
| 1567 | } |
| 1568 | |
| 1569 | /** |
| 1570 | * A declaration has a dynamic name if all of the following are true: |
no test coverage detected