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

Function emitTabStop

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

Source from the content-addressed store, hash-verified

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), "."));
111724 ts.Debug.assert(hint !== 5 /* EmitHint.EmbeddedStatement */, "A tab stop cannot be attached to an embedded statement.");
111725 nonEscapingWrite("$".concat(snippet.order));
111726 }
111727 //
111728 // Identifiers
111729 //

Callers 1

emitSnippetNodeFunction · 0.85

Calls 3

nonEscapingWriteFunction · 0.85
assertMethod · 0.80
concatMethod · 0.80

Tested by

no test coverage detected