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

Function emitCallExpression

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

Source from the content-addressed store, hash-verified

112214 emitTokenWithComment(23 /* SyntaxKind.CloseBracketToken */, node.argumentExpression.end, writePunctuation, node);
112215 }
112216 function emitCallExpression(node) {
112217 var indirectCall = ts.getEmitFlags(node) & 536870912 /* EmitFlags.IndirectCall */;
112218 if (indirectCall) {
112219 writePunctuation("(");
112220 writeLiteral("0");
112221 writePunctuation(",");
112222 writeSpace();
112223 }
112224 emitExpression(node.expression, parenthesizer.parenthesizeLeftSideOfAccess);
112225 if (indirectCall) {
112226 writePunctuation(")");
112227 }
112228 emit(node.questionDotToken);
112229 emitTypeArguments(node, node.typeArguments);
112230 emitExpressionList(node, node.arguments, 2576 /* ListFormat.CallExpressionArguments */, parenthesizer.parenthesizeExpressionForDisallowedComma);
112231 }
112232 function emitNewExpression(node) {
112233 emitTokenWithComment(103 /* SyntaxKind.NewKeyword */, node.pos, writeKeyword, node);
112234 writeSpace();

Callers 1

Calls 7

writePunctuationFunction · 0.85
writeLiteralFunction · 0.85
writeSpaceFunction · 0.85
emitExpressionFunction · 0.85
emitTypeArgumentsFunction · 0.85
emitExpressionListFunction · 0.85
emitFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…