MCPcopy Create free account
hub / github.com/nodejs/node / emitSnippetNode

Function emitSnippetNode

test/fixtures/snapshot/typescript.js:111705–111714  ·  view source on GitHub ↗
(hint, node, snippet)

Source from the content-addressed store, hash-verified

111703 // Snippet Elements
111704 //
111705 function emitSnippetNode(hint, node, snippet) {
111706 switch (snippet.kind) {
111707 case 1 /* SnippetKind.Placeholder */:
111708 emitPlaceholder(hint, node, snippet);
111709 break;
111710 case 0 /* SnippetKind.TabStop */:
111711 emitTabStop(hint, node, snippet);
111712 break;
111713 }
111714 }
111715 function emitPlaceholder(hint, node, snippet) {
111716 nonEscapingWrite("${".concat(snippet.order, ":")); // `${2:`
111717 pipelineEmitWithHintWorker(hint, node, /*allowSnippets*/ false); // `...`

Callers 1

Calls 2

emitPlaceholderFunction · 0.85
emitTabStopFunction · 0.85

Tested by

no test coverage detected