MCPcopy Create free account
hub / github.com/cel-rust/cel-rust / visit_GlobalCall

Method visit_GlobalCall

cel/src/parser/parser.rs:830–848  ·  view source on GitHub ↗
(&mut self, ctx: &GlobalCallContext<'_>)

Source from the content-addressed store, hash-verified

828 }
829
830 fn visit_GlobalCall(&mut self, ctx: &GlobalCallContext<'_>) -> Self::Return {
831 match &ctx.id {
832 None => IdedExpr::default(),
833 Some(id) => {
834 let mut id = id.get_text().to_string();
835 if ctx.leadingDot.is_some() {
836 id = format!(".{id}");
837 }
838 let op_id = self.helper.next_id_for_token(ctx.op.as_deref());
839 let args = ctx
840 .args
841 .iter()
842 .flat_map(|arg| &arg.e)
843 .map(|arg| self.visit(arg.deref()))
844 .collect::<Vec<IdedExpr>>();
845 self.global_call_or_macro(op_id, id, args)
846 }
847 }
848 }
849
850 fn visit_Nested(&mut self, ctx: &NestedContext<'_>) -> Self::Return {
851 match &ctx.e {

Callers

nothing calls this directly

Calls 6

next_id_for_tokenMethod · 0.80
mapMethod · 0.80
visitMethod · 0.80
global_call_or_macroMethod · 0.80
iterMethod · 0.45
derefMethod · 0.45

Tested by

no test coverage detected