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

Method next_id

cel/src/parser/parser.rs:1072–1078  ·  view source on GitHub ↗
(&mut self, token: &CommonToken)

Source from the content-addressed store, hash-verified

1070
1071impl ParserHelper {
1072 fn next_id(&mut self, token: &CommonToken) -> u64 {
1073 let id = self.next_id;
1074 self.source_info
1075 .add_offset(id, token.start as u32, token.stop as u32);
1076 self.next_id += 1;
1077 id
1078 }
1079
1080 fn next_id_for_token(&mut self, token: Option<&CommonToken>) -> u64 {
1081 match token {

Callers 15

map_initializer_listMethod · 0.80
visit_exprMethod · 0.80
visit_conditionalOrMethod · 0.80
visit_conditionalAndMethod · 0.80
visit_relationMethod · 0.80
visit_calcMethod · 0.80
visit_LogicalNotMethod · 0.80
visit_NegateMethod · 0.80
visit_MemberCallMethod · 0.80
visit_SelectMethod · 0.80
visit_IndexMethod · 0.80

Calls 1

add_offsetMethod · 0.80

Tested by

no test coverage detected