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

Method visit_Ident

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

Source from the content-addressed store, hash-verified

814 }
815
816 fn visit_Ident(&mut self, ctx: &IdentContext<'_>) -> Self::Return {
817 match &ctx.id {
818 None => {
819 self.report_error::<ParseError, _>(&ctx.start(), None, "No `Identifier`!");
820 IdedExpr::default()
821 }
822 Some(id) => {
823 let ident = id.clone().text;
824 self.helper
825 .next_expr(id.deref(), Expr::Ident(ident.to_string()))
826 }
827 }
828 }
829
830 fn visit_GlobalCall(&mut self, ctx: &GlobalCallContext<'_>) -> Self::Return {
831 match &ctx.id {

Callers

nothing calls this directly

Calls 4

startMethod · 0.80
cloneMethod · 0.80
next_exprMethod · 0.80
derefMethod · 0.45

Tested by

no test coverage detected