import { LineResults } from "../../LineResults" ; import { NewRenderer } from "./NewRenderer" ; /**
 * Renders a member method instantiation.
 */ export class MemberMethodRenderer extends NewRenderer { param parameters returns public render ( parameters ) { let output = "" ; const typeName = parameters [ 1 ] ; output += typeName ; output += "." ; output += this . language . syntax . newProp . keyword ; output += "(" ; if ( parameters . length > 2 ) { output += parameters [ 2 ] ; for ( let i = 3 ; i < parameters . length ; i += 1 ) { output += ", " + parameters [ i ] ; } } output += ")" ; return LineResults . newSingleLine ( output ) ; } }