change 2 instances of emitCDeclaration to emitMethodDeclaration (it is confusing to have the same method name for 2 different use cases)