示例#1
0
        public Parameters GenerateParameters(CodeFileTs input, Settings pluginSettings, IMetadataReader metadataReader, ILogger logger, IFileGroup <CodeFileTs, GroupItemDetails> fileGroup = null)
        {
            var searcher = new SearchVisitor();

            var classDeclarations = searcher.FindNodes <StClassDeclaration>(input.Model, c => true).ToArray();

            return(new Parameters()
            {
                AdditionalProperty = classDeclarations.Any(d => metadataReader.NodeIsGeneratedBy(input.NodePathService.GetNodePath(d), new ActivityFrame(pluginId: "TsTestPlugin"), out _))
            });
        }