MCPcopy Index your code
hub / github.com/ternjs/tern / isDefinePropertyCall

Function isDefinePropertyCall

plugin/doc_comment.js:52–58  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

50 }
51
52 function isDefinePropertyCall(node) {
53 return node.callee.type == "MemberExpression" &&
54 node.callee.object.name == "Object" &&
55 node.callee.property.name == "defineProperty" &&
56 node.arguments.length >= 3 &&
57 typeof node.arguments[1].value == "string";
58 }
59
60 function postInfer(ast, scope) {
61 jsdocParseTypedefs(ast.sourceFile.text, scope);

Callers 2

postParseFunction · 0.85
postInferFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…