MCPcopy Create free account
hub / github.com/nodejs/node / asEmbeddedStatement

Function asEmbeddedStatement

test/fixtures/snapshot/typescript.js:27214–27216  ·  view source on GitHub ↗
(statement)

Source from the content-addressed store, hash-verified

27212 return typeof value === "number" ? createToken(value) : value;
27213 }
27214 function asEmbeddedStatement(statement) {
27215 return statement && ts.isNotEmittedStatement(statement) ? ts.setTextRange(setOriginalNode(createEmptyStatement(), statement), statement) : statement;
27216 }
27217 }
27218 ts.createNodeFactory = createNodeFactory;
27219 function updateWithoutOriginal(updated, original) {

Callers 8

createIfStatementFunction · 0.85
createDoStatementFunction · 0.85
createWhileStatementFunction · 0.85
createForStatementFunction · 0.85
createForInStatementFunction · 0.85
createForOfStatementFunction · 0.85
createWithStatementFunction · 0.85
createLabeledStatementFunction · 0.85

Calls 2

setOriginalNodeFunction · 0.85
createEmptyStatementFunction · 0.85

Tested by

no test coverage detected