Esempio n. 1
0
        protected override List <ICodeStream> CreateOutputs(ICodeStreamFactory codeStreamFactory)
        {
            List <ICodeStream> result = new List <ICodeStream>();

            result.Add(codeStreamFactory.CreateCodeStream(Languages.TypeScript, OutStreamName));
            return(result);
        }
 protected override List<ICodeStream> CreateOutputs(ICodeStreamFactory codeStreamFactory)
 {
     List<ICodeStream> result = new List<ICodeStream>();
     this.outputStream = codeStreamFactory.CreateCodeStream(Languages.CSharp, OutStreamName);
     result.Add(this.outputStream);
     return result;
 }
Esempio n. 3
0
        public List <ICodeStream> InitializeOutputs(ICodeStreamFactory codeStreamFactory)
        {
            var outputs = this.CreateOutputs(codeStreamFactory);

            foreach (var output in outputs)
            {
                this.Outputs.Add(output.Name, output);
            }

            return(outputs);
        }
Esempio n. 4
0
        protected override List <ICodeStream> CreateOutputs(ICodeStreamFactory codeStreamFactory)
        {
            List <ICodeStream> result = new List <ICodeStream>();

            this.csTransportModelsOutputStream = codeStreamFactory.CreateCodeStream(Languages.CSharp, CsTransportModelsOutStreamName);
            result.Add(this.csTransportModelsOutputStream);

            this.csAstModelsOutputStream = codeStreamFactory.CreateCodeStream(Languages.CSharp, CsAstModelOutStreamName);
            result.Add(this.csAstModelsOutputStream);

            this.csModelBuildersOutputStream = codeStreamFactory.CreateCodeStream(Languages.CSharp, CsModelBuildersOutStreamName);
            result.Add(this.csModelBuildersOutputStream);

            this.csTransportToAstConverterOutputStream = codeStreamFactory.CreateCodeStream(Languages.CSharp, CsTransportToAstConverterOutputStreamName);
            result.Add(this.csTransportToAstConverterOutputStream);

            this.tsModelsOutputStream = codeStreamFactory.CreateCodeStream(Languages.TypeScript, TsModelsOutStreamName);
            result.Add(this.tsModelsOutputStream);
            return(result);
        }
Esempio n. 5
0
        public List <ICodeStream> Execute(IEnumerable <CodeFile> inputs, IMetadataWriter metadataWriter, IMetadataReader metadataReader, ICodeStreamFactory codeStreamFactory, IPipelineExecutionInfo pipelineExecutionInfo)
        {
            this.logger.Write(new LogRecord(MessageSeverity.Information, $"Starting plugin: {this.Plugin?.Signature?.Id} - {this.Plugin?.Signature?.Name}"));
            var metadataRecorder = new MetadataRecorder(metadataWriter, pipelineExecutionInfo, this.Plugin.Signature.Id);
            var result           = this.Plugin.InitializeOutputs(codeStreamFactory);

            this.Plugin.Execute(inputs, metadataRecorder, metadataReader, this.logger);

            return(result);
        }
Esempio n. 6
0
 protected abstract List <ICodeStream> CreateOutputs(ICodeStreamFactory codeStreamFactory);