MCPcopy
hub / github.com/baidu/amis / assert

Function assert

packages/amis-formula/src/parser.ts:71–76  ·  view source on GitHub ↗
(result: any)

Source from the content-addressed store, hash-verified

69 }
70
71 function assert(result: any) {
72 if (!result) {
73 fatal();
74 }
75 return result;
76 }
77
78 function expression(): ASTNodeOrNull {
79 return assignmentExpression();

Callers 15

collectFilterArgFunction · 0.85
complexExpressionFunction · 0.85
arrowFunctionFunction · 0.85
conditionalExpressionFunction · 0.85
binaryExpressionParserFunction · 0.85
unaryExpressionFunction · 0.85
postfixExpressionFunction · 0.85
objectTemplateKeyFunction · 0.85
templateFunction · 0.85
functionCallFunction · 0.85
arrayLiteralFunction · 0.85
expressionListFunction · 0.85

Calls 1

fatalFunction · 0.85

Tested by

no test coverage detected