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

Function emitConstructorType

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

Source from the content-addressed store, hash-verified

111940 writePunctuation("=");
111941 }
111942 function emitConstructorType(node) {
111943 pushNameGenerationScope(node);
111944 emitModifiers(node, node.modifiers);
111945 writeKeyword("new");
111946 writeSpace();
111947 emitTypeParameters(node, node.typeParameters);
111948 emitParameters(node, node.parameters);
111949 writeSpace();
111950 writePunctuation("=>");
111951 writeSpace();
111952 emit(node.type);
111953 popNameGenerationScope(node);
111954 }
111955 function emitTypeQuery(node) {
111956 writeKeyword("typeof");
111957 writeSpace();

Callers 1

Calls 9

pushNameGenerationScopeFunction · 0.85
emitModifiersFunction · 0.85
writeKeywordFunction · 0.85
writeSpaceFunction · 0.85
emitTypeParametersFunction · 0.85
emitParametersFunction · 0.85
writePunctuationFunction · 0.85
popNameGenerationScopeFunction · 0.85
emitFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…