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

Function emitTypeOperator

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

Source from the content-addressed store, hash-verified

112026 writeKeyword("this");
112027 }
112028 function emitTypeOperator(node) {
112029 writeTokenText(node.operator, writeKeyword);
112030 writeSpace();
112031 var parenthesizerRule = node.operator === 145 /* SyntaxKind.ReadonlyKeyword */ ?
112032 parenthesizer.parenthesizeOperandOfReadonlyTypeOperator :
112033 parenthesizer.parenthesizeOperandOfTypeOperator;
112034 emit(node.type, parenthesizerRule);
112035 }
112036 function emitIndexedAccessType(node) {
112037 emit(node.objectType, parenthesizer.parenthesizeNonArrayTypeOfPostfixType);
112038 writePunctuation("[");

Callers 1

Calls 3

writeTokenTextFunction · 0.85
writeSpaceFunction · 0.85
emitFunction · 0.70

Tested by

no test coverage detected