(node, test, message, stackCrawlMark)
| 2795 | } |
| 2796 | Debug.assertNotNode = assertNotNode; |
| 2797 | function assertOptionalNode(node, test, message, stackCrawlMark) { |
| 2798 | if (shouldAssertFunction(1 /* AssertionLevel.Normal */, "assertOptionalNode")) { |
| 2799 | assert(test === undefined || node === undefined || test(node), message || "Unexpected node.", function () { return "Node ".concat(formatSyntaxKind(node === null || node === void 0 ? void 0 : node.kind), " did not pass test '").concat(getFunctionName(test), "'."); }, stackCrawlMark || assertOptionalNode); |
| 2800 | } |
| 2801 | } |
| 2802 | Debug.assertOptionalNode = assertOptionalNode; |
| 2803 | function assertOptionalToken(node, kind, message, stackCrawlMark) { |
| 2804 | if (shouldAssertFunction(1 /* AssertionLevel.Normal */, "assertOptionalToken")) { |
nothing calls this directly
no test coverage detected
searching dependent graphs…