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

Function arrayLiteral

packages/amis-formula/src/parser.ts:581–593  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

579 }
580
581 function arrayLiteral(): ASTNodeOrNull {
582 if (matchPunctuator('[')) {
583 const argList = expressionList('[', ']');
584 assert(argList);
585 return {
586 type: 'array',
587 members: argList?.body,
588 start: argList!.start,
589 end: argList!.end
590 };
591 }
592 return null;
593 }
594
595 function expressionList(startOP = '(', endOp = ')'): ASTNodeOrNull {
596 if (matchPunctuator(startOP)) {

Callers 2

collectFilterArgFunction · 0.85
primaryExpressionFunction · 0.85

Calls 3

matchPunctuatorFunction · 0.85
expressionListFunction · 0.85
assertFunction · 0.85

Tested by

no test coverage detected