Fix ASGenerator change method decl. 

Issue #214.