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

Function asToken

test/fixtures/snapshot/typescript.js:27211–27213  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

27209 value;
27210 }
27211 function asToken(value) {
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 }

Callers 1

createBinaryExpressionFunction · 0.85

Calls 1

createTokenFunction · 0.70

Tested by

no test coverage detected