MCPcopy Create free account
hub / github.com/FuzzAnything/PromptFuzz / is_valid_range

Function is_valid_range

src/ast/loc.rs:267–275  ·  view source on GitHub ↗
(range: &SourceRange)

Source from the content-addressed store, hash-verified

265}
266
267pub fn is_valid_range(range: &SourceRange) -> bool {
268 if range.begin.spelling_loc.is_some() {
269 return true;
270 }
271 if range.begin.expansion_loc.is_some() {
272 return true;
273 }
274 false
275}
276
277/// Whether this range is in some header files.
278pub fn is_macro_stmt(range: &SourceRange) -> bool {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected