MCPcopy
hub / github.com/jsdoc/jsdoc / postfixNodeToValue

Function postfixNodeToValue

test/specs/jsdoc/src/astnode.js:598–609  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

596
597 it('should throw an error for postfix unary expressions', () => {
598 function postfixNodeToValue() {
599 // there's no valid source representation for this one, so we fake it
600 const unaryExpressionPostfix = (() => {
601 const node = parse('+1;').body[0].expression;
602
603 node.prefix = false;
604
605 return node;
606 })();
607
608 return astNode.nodeToValue(unaryExpressionPostfix);
609 }
610
611 expect(postfixNodeToValue).toThrow();
612 });

Callers

nothing calls this directly

Calls 1

parseFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…