private string GenerateMethod() { var statement = PythonCodeGenerator.GenerateDefaultVariableDeclaration(); var methodBody = PythonCodeGenerator.GenerateFunctionBody(new[] { statement }); return(PythonCodeGenerator.GenerateFunction(MethodName, _parameters, methodBody)); }
private string GenerateMethodBody(int statementsCount) { var statements = new List <string>(); for (var i = 0; i < statementsCount; i++) { statements.Add(PythonCodeGenerator.GenerateDefaultAssignmentStatement()); } return(PythonCodeGenerator.GenerateFunctionBody(statements)); }
private string GenerateMethodBody(string[] statements) { return(PythonCodeGenerator.GenerateFunctionBody(statements)); }
private string GenerateMethodBody(string statement) { return(PythonCodeGenerator.GenerateFunctionBody(new[] { statement })); }