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

Function emitPlaceholder

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

Source from the content-addressed store, hash-verified

111713 }
111714 }
111715 function emitPlaceholder(hint, node, snippet) {
111716 nonEscapingWrite("${".concat(snippet.order, ":")); // `${2:`
111717 pipelineEmitWithHintWorker(hint, node, /*allowSnippets*/ false); // `...`
111718 nonEscapingWrite("}"); // `}`
111719 // `${2:...}`
111720 }
111721 function emitTabStop(hint, node, snippet) {
111722 // A tab stop should only be attached to an empty node, i.e. a node that doesn't emit any text.
111723 ts.Debug.assert(node.kind === 236 /* SyntaxKind.EmptyStatement */, "A tab stop cannot be attached to a node of kind ".concat(ts.Debug.formatSyntaxKind(node.kind), "."));

Callers 1

emitSnippetNodeFunction · 0.85

Calls 3

nonEscapingWriteFunction · 0.85
concatMethod · 0.80

Tested by

no test coverage detected