The assert fails if method is static, but the Decl should also be marked invalid.  I didn't try this.<div><br></div><div>I went down a bad path of not returning the Decl if it was marked invalid due to static function member.  That caused a handful of issues with existing test cases.</div>
<div><br></div>