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

Function macro_scan_macro

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

scanMacro: `vec!`'s arguments are a list of values, `matches!`'s a value and a pattern.

(tree: Node<'t>, name: &str, src: &'t str, declared: &HashSet<String>, out: &mut Vec<MacroRef<'t>>)

Source from the content-addressed store, hash-verified

2004
2005/// scanMacro: `vec!`'s arguments are a list of values, `matches!`'s a value and a pattern.
2006fn macro_scan_macro<'t>(tree: Node<'t>, name: &str, src: &'t str, declared: &HashSet<String>, out: &mut Vec<MacroRef<'t>>) {
2007 if name == "vec" {
2008 macro_capture_values(&macro_group_tokens(tree), true, src, out);
2009 }
2010 macro_scan_group(tree, name == "matches", false, src, declared, out);
2011}
2012
2013/// captureValues: the function values among a call's arguments or a list's
2014/// elements. A list (`list`) ends at the `;` of `[f; 3]`: what follows is its

Callers 2

rust_macro_arg_refsFunction · 0.85
macro_parse_chainFunction · 0.85

Calls 3

macro_capture_valuesFunction · 0.85
macro_group_tokensFunction · 0.85
macro_scan_groupFunction · 0.85

Tested by

no test coverage detected