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

Function writeStatement

test/fixtures/snapshot/typescript.js:104222–104231  ·  view source on GitHub ↗

* Writes a statement to the current label's statement list. * * @param statement A statement to write.

(statement)

Source from the content-addressed store, hash-verified

104220 * @param statement A statement to write.
104221 */
104222 function writeStatement(statement) {
104223 if (statement) {
104224 if (!statements) {
104225 statements = [statement];
104226 }
104227 else {
104228 statements.push(statement);
104229 }
104230 }
104231 }
104232 /**
104233 * Writes an Assign operation to the current label's statement list.
104234 *

Callers 10

writeOperationFunction · 0.85
writeAssignFunction · 0.85
writeThrowFunction · 0.85
writeReturnFunction · 0.85
writeBreakFunction · 0.85
writeBreakWhenTrueFunction · 0.85
writeBreakWhenFalseFunction · 0.85
writeYieldFunction · 0.85
writeYieldStarFunction · 0.85
writeEndfinallyFunction · 0.85

Calls 1

pushMethod · 0.45

Tested by

no test coverage detected