Generating correct ast node for member function call