Format source and define undefined method names.