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

Function isLabeledBy

test/fixtures/snapshot/typescript.js:135969–135971  ·  view source on GitHub ↗

* Whether or not a 'node' is preceded by a label of the given string. * Note: 'node' cannot be a SourceFile.

(node, labelName)

Source from the content-addressed store, hash-verified

135967 * Note: 'node' cannot be a SourceFile.
135968 */
135969 function isLabeledBy(node, labelName) {
135970 return !!ts.findAncestor(node.parent, function (owner) { return !ts.isLabeledStatement(owner) ? "quit" : owner.label.escapedText === labelName; });
135971 }
135972 })(DocumentHighlights = ts.DocumentHighlights || (ts.DocumentHighlights = {}));
135973})(ts || (ts = {}));
135974var ts;

Callers 1

getBreakOrContinueOwnerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected