generateMethod
`generateMethodNode` should not have any side effects for the output to be stable under incremental compilation.