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

Function emitTypePredicate

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

Source from the content-addressed store, hash-verified

111895 // Types
111896 //
111897 function emitTypePredicate(node) {
111898 if (node.assertsModifier) {
111899 emit(node.assertsModifier);
111900 writeSpace();
111901 }
111902 emit(node.parameterName);
111903 if (node.type) {
111904 writeSpace();
111905 writeKeyword("is");
111906 writeSpace();
111907 emit(node.type);
111908 }
111909 }
111910 function emitTypeReference(node) {
111911 emit(node.typeName);
111912 emitTypeArguments(node, node.typeArguments);

Callers 1

Calls 3

writeSpaceFunction · 0.85
writeKeywordFunction · 0.85
emitFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…