AstGen: fix function decl astgen

it was using the wrong scope and other mistakes too
415ef1be51Andrew Kelley committed on 4/17/2021, 2:45:24 AMparentdd5a1b1
1 file changedLine totals unavailable