/// <summary> /// Generates code for the given method. /// </summary> /// <param name="method">The method.</param> /// <returns>A completion future.</returns> public CodeGenerationResult GenerateCode(MethodBase method) { if (method == null) { throw new ArgumentNullException(nameof(method)); } hadWorkToDo = true; return(Frontend.GenerateCode(method)); }