MCPcopy Index your code
hub / github.com/nodejs/node / isBindableObjectDefinePropertyCall

Function isBindableObjectDefinePropertyCall

test/fixtures/snapshot/typescript.js:16572–16580  ·  view source on GitHub ↗
(expr)

Source from the content-addressed store, hash-verified

16570 }
16571 ts.getAssignmentDeclarationKind = getAssignmentDeclarationKind;
16572 function isBindableObjectDefinePropertyCall(expr) {
16573 return ts.length(expr.arguments) === 3 &&
16574 ts.isPropertyAccessExpression(expr.expression) &&
16575 ts.isIdentifier(expr.expression.expression) &&
16576 ts.idText(expr.expression.expression) === "Object" &&
16577 ts.idText(expr.expression.name) === "defineProperty" &&
16578 isStringOrNumericLiteralLike(expr.arguments[1]) &&
16579 isBindableStaticNameExpression(expr.arguments[0], /*excludeThisKeyword*/ true);
16580 }
16581 ts.isBindableObjectDefinePropertyCall = isBindableObjectDefinePropertyCall;
16582 /** x.y OR x[0] */
16583 function isLiteralLikeAccess(node) {

Calls 3

lengthMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…