codegen: Small refactoring in method generation
codegen: Small refactoring in method generation

xdave/pvala,playya/vala,severinh/vala,flobrosch/vala-fixes,GNOME/vala,Distrotech/vala,playya/vala,frida/vala,spidermonkdust/vala,frida/vala,Distrotech/vala,tjol/vala-tjol,rvu95/vala,GNOME/vala,jessevdk/vala,rvu95/vala,tjol/vala-tjol,spidermonkdust/vala,tjol/vala-tjol,flobrosch/vala-fixes,jessevdk/vala,playya/vala,frida/vala,severinh/vala,frida/vala,frida/vala,rvu95/vala,Distrotech/vala,spidermonkdust/vala,kamanashisroy/aroop,severinh/vala,jessevdk/vala,GNOME/vala,GNOME/vala,kamanashisroy/aroop,flobrosch/vala-fixes,kamanashisroy/aroop