MCPcopy Create free account
hub / github.com/PerroEngine/Perro / parse_include_str

Function parse_include_str

perro_source/render_stack/perro_macros/src/lib.rs:88–97  ·  view source on GitHub ↗
(group: &Group)

Source from the content-addressed store, hash-verified

86 [
87 TokenTree::Ident(ident),
88 TokenTree::Punct(p),
89 TokenTree::Group(group),
90 ] if ident.to_string() == "include_str" && p.as_char() == '!' => {
91 parse_include_str(group).map(|path| vec![path])
92 }
93 [
94 TokenTree::Ident(ident),
95 TokenTree::Punct(p),
96 TokenTree::Group(group),
97 ] if ident.to_string() == "concat" && p.as_char() == '!' => parse_concat(group),
98 _ => Err(
99 "expected path, include_str!(\"path\"), or concat!(include_str!(...), ...)".to_string(),
100 ),

Callers 1

parse_inputFunction · 0.85

Calls 2

parse_string_literalFunction · 0.85
as_sliceMethod · 0.45

Tested by

no test coverage detected