using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using ExampleCodeGenApp.Model.Compiler; namespace ExampleCodeGenApp.Model { public class FunctionCall : IStatement { public string FunctionName { get; set; } public List Parameters { get; } = new List(); public string Compile(CompilerContext context) { return $"{FunctionName}({String.Join(", ", Parameters.Select(p => p.Compile(context)))})\n"; } } }