pub(crate) fn body_assigns_to(body: &str, name: &str) -> boolExpand description
Whether body (a { ... } WGSL block as text) contains an assignment
to a bare identifier matching name. Recognises plain =, compound
assignments (+=, -=, *=, /=, %=) and post-increment / decrement
(++ / --); excludes the comparison operators ==, !=, <=, >=.
Skips matches inside //-style line comments because the textual scan
would otherwise see a commented-out assignment as a real write.