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

Function visitExponentiationExpression

test/fixtures/snapshot/typescript.js:98429–98434  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

98427 return ts.setTextRange(factory.createAssignment(target, ts.setTextRange(factory.createGlobalMethodCall("Math", "pow", [value, right]), node)), node);
98428 }
98429 function visitExponentiationExpression(node) {
98430 // Transforms `a ** b` into `Math.pow(a, b)`
98431 var left = ts.visitNode(node.left, visitor, ts.isExpression);
98432 var right = ts.visitNode(node.right, visitor, ts.isExpression);
98433 return ts.setTextRange(factory.createGlobalMethodCall("Math", "pow", [left, right]), node);
98434 }
98435 }
98436 ts.transformES2016 = transformES2016;
98437})(ts || (ts = {}));

Callers 1

visitBinaryExpressionFunction · 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…