support `method foo { }`