Lines Matching defs:FileGenerator
52 struct FileGenerator { struct
53 using ShouldGenerateFunction = std::function<bool(const FQName& fqName)>;
54 using FileNameForFQName = std::function<std::string(const FQName& fqName)>;
55 using GetFormatter = std::function<Formatter(void)>;
56 using GenerationFunction =
60 ShouldGenerateFunction mShouldGenerateForFqName; // If generate function applies to this target
61 FileNameForFQName mFileNameForFqName; // Target -> filename
62 GenerationFunction mGenerationFunction; // Function to generate output for file
64 std::string getFileName(const FQName& fqName) const { in getFileName()
68 status_t getOutputFile(const FQName& fqName, const Coordinator* coordinator, in getOutputFile()
77 status_t appendOutputFiles(const FQName& fqName, const Coordinator* coordinator, in appendOutputFiles()
96 status_t generate(const FQName& fqName, const Coordinator* coordinator, in generate()
130 std::vector<FileGenerator> mGenerateFunctions; // run for each target at this granularity argument