(node, kind, message, stackCrawlMark)
| 2801 | } |
| 2802 | Debug.assertOptionalNode = assertOptionalNode; |
| 2803 | function assertOptionalToken(node, kind, message, stackCrawlMark) { |
| 2804 | if (shouldAssertFunction(1 /* AssertionLevel.Normal */, "assertOptionalToken")) { |
| 2805 | assert(kind === undefined || node === undefined || node.kind === kind, message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind), " was not a '").concat(formatSyntaxKind(kind), "' token."); }, stackCrawlMark || assertOptionalToken); |
| 2806 | } |
| 2807 | } |
| 2808 | Debug.assertOptionalToken = assertOptionalToken; |
| 2809 | function assertMissingNode(node, message, stackCrawlMark) { |
| 2810 | if (shouldAssertFunction(1 /* AssertionLevel.Normal */, "assertMissingNode")) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…