fix abstract method parse tree

interfaces' methods should be parsed as
MethodDeclaration.