public CsFileGeneratorResult(FileGenerationResult generatorResult, string fileName, IReadOnlyList <CapnpMessage> messages) { if (generatorResult == null) { throw new ArgumentNullException(nameof(generatorResult)); } Filename = fileName ?? throw new ArgumentNullException(nameof(fileName)); Error = generatorResult.Exception?.Message; GeneratedCode = generatorResult.GeneratedContent; Messages = messages; }
public FileGenerated(FileGenerationResult result, IEnumerable <Message> predecessorMessages) : base(predecessorMessages) { Result = result; }
public FileGenerated(FileGenerationResult result, Message predecessorMessage) : base(predecessorMessage) { Result = result; }