/// <summary> /// Translate the unit into TypeScript. /// </summary> /// <returns></returns> public override string Translate() { FormatWriter writer = new FormatWriter() { Formatter = this.Formatter }; // Invokation: ([<initializers>]) writer.WriteLine("{0}", SyntaxUtility.ToSquareBracketEnclosedList(this.arguments.Select(unit => unit.Translate())) ); return(writer.ToString()); }
/// <summary> /// Translate the unit into TypeScript. /// </summary> /// <returns></returns> public override string Translate() { FormatWriter writer = new FormatWriter() { Formatter = this.Formatter }; // Invokation: <expression>([<params>]) writer.WriteLine("{0}{1}", this.expression.Translate(), SyntaxUtility.ToSquareBracketEnclosedList(this.arguments.Select(unit => unit.Translate())) ); return(writer.ToString()); }