Exemple #1
0
        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;
        }
Exemple #2
0
 public FileGenerated(FileGenerationResult result, IEnumerable <Message> predecessorMessages)
     : base(predecessorMessages)
 {
     Result = result;
 }
Exemple #3
0
 public FileGenerated(FileGenerationResult result, Message predecessorMessage)
     : base(predecessorMessage)
 {
     Result = result;
 }