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

Function transformAndEmitWithStatement

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

Source from the content-addressed store, hash-verified

103126 /*location*/ node);
103127 }
103128 function transformAndEmitWithStatement(node) {
103129 if (containsYield(node)) {
103130 // [source]
103131 // with (x) {
103132 // /*body*/
103133 // }
103134 //
103135 // [intermediate]
103136 // .with (x)
103137 // /*body*/
103138 // .endwith
103139 beginWithBlock(cacheExpression(ts.visitNode(node.expression, visitor, ts.isExpression)));
103140 transformAndEmitEmbeddedStatement(node.statement);
103141 endWithBlock();
103142 }
103143 else {
103144 emitStatement(ts.visitNode(node, visitor, ts.isStatement));
103145 }
103146 }
103147 function transformAndEmitSwitchStatement(node) {
103148 if (containsYield(node.caseBlock)) {
103149 // [source]

Callers 1

Calls 6

beginWithBlockFunction · 0.85
cacheExpressionFunction · 0.85
endWithBlockFunction · 0.85
emitStatementFunction · 0.85
containsYieldFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…