fix to set a function symbol to a method declaration when a method declaration is parsed