MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / macro_is_segment

Function macro_is_segment

codegraph-kernel/src/rustlang.rs:2321–2326  ·  view source on GitHub ↗

isSegment.

(t: Option<&Node>, src: &str)

Source from the content-addressed store, hash-verified

2319
2320/// isSegment.
2321fn macro_is_segment(t: Option<&Node>, src: &str) -> bool {
2322 match t {
2323 None => false,
2324 Some(n) => macro_is_name(t, src) || matches!(n.kind(), "self" | "super" | "crate" | "primitive_type"),
2325 }
2326}
2327
2328/// parseChain: the expression that starts at `i`; returns the index past it.
2329fn macro_parse_chain<'t>(tokens: &[Node<'t>], mut i: usize, in_pattern: bool, src: &'t str, declared: &HashSet<String>, out: &mut Vec<MacroRef<'t>>) -> usize {

Callers 2

macro_capture_valueFunction · 0.85
macro_parse_chainFunction · 0.85

Calls 1

macro_is_nameFunction · 0.85

Tested by

no test coverage detected