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

Function init_modifier_backtrack

codegraph-kernel/src/cfnptr.rs:1287–1293  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1285 }
1286
1287 #[test]
1288 fn init_modifier_backtrack() {
1289 // `static x = {` must match with type token `static` (the JS engine
1290 // backtracks the modifier loop) — harmless downstream, but collected.
1291 let f = facts("; static x = {1};\n; static struct cmd t[] = { {0} };");
1292 assert!(f.init_tokens.contains(&"static".to_string()));
1293 assert!(f.init_tokens.contains(&"cmd".to_string()));
1294 }
1295
1296 #[test]

Callers

nothing calls this directly

Calls 1

factsFunction · 0.85

Tested by

no test coverage detected