This requires forcibly toggling the 'willHaveBody' value of the Decl that's
being built up before/after handling the attributes in order to query
this property on the Decl.
This also updates a WASM test that seemed incorrect (the attribute is
only allowed on function declarations, not definitions).