MCPcopy Create free account
hub / github.com/NodeDB-Lab/nodedb / collect_args

Function collect_args

nodedb-sql/src/planner/array_fn/helpers.rs:15–22  ·  view source on GitHub ↗
(args: &[ast::FunctionArg])

Source from the content-addressed store, hash-verified

13use crate::types_array::ArrayCoordLiteral;
14
15pub(super) fn collect_args(args: &[ast::FunctionArg]) -> Vec<ast::Expr> {
16 args.iter()
17 .filter_map(|a| match a {
18 ast::FunctionArg::Unnamed(ast::FunctionArgExpr::Expr(e)) => Some(e.clone()),
19 _ => None,
20 })
21 .collect()
22}
23
24pub(super) fn require_array_name(
25 args: &[ast::Expr],

Callers 3

try_plan_array_maint_fnFunction · 0.85
try_plan_array_table_fnFunction · 0.85
expect_string_arrayFunction · 0.85

Calls 3

collectMethod · 0.80
iterMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected