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

Function emitTypeAssertionExpression

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

Source from the content-addressed store, hash-verified

112253 emitExpression(node.template);
112254 }
112255 function emitTypeAssertionExpression(node) {
112256 writePunctuation("<");
112257 emit(node.type);
112258 writePunctuation(">");
112259 emitExpression(node.expression, parenthesizer.parenthesizeOperandOfPrefixUnary);
112260 }
112261 function emitParenthesizedExpression(node) {
112262 var openParenPos = emitTokenWithComment(20 /* SyntaxKind.OpenParenToken */, node.pos, writePunctuation, node);
112263 var indented = writeLineSeparatorsAndIndentBefore(node.expression, node);

Callers 1

Calls 3

writePunctuationFunction · 0.85
emitExpressionFunction · 0.85
emitFunction · 0.70

Tested by

no test coverage detected