* Whether or not a 'node' is preceded by a label of the given string. * Note: 'node' cannot be a SourceFile.
(node, labelName)
| 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 = {})); |
| 135974 | var ts; |
no outgoing calls
no test coverage detected