FileProcessor class

Service for processing source files of any language

Constructors

FileProcessor(GenConfig config, {String? workingDir})

Properties

commentStyle CommentStyle
Get the comment style for the current project
no setter
config GenConfig
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
workingDir String
final

Methods

cleanPreviousOutputs() Future<int>
Clean previous output files
discoverFiles() Stream<File>
Discover all matching files in the source directory
includeExtraRootFiles(String outputDir) Future<List<String>>
Copy extra root files to output directory
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
processAllFiles({void onFileProcessed(FileInfo info)?, void onProgress(int processed, int total)?}) Future<ProcessingResult>
Process all files and collect results
processFile(File file) Future<FileInfo>
Process a single file and return FileInfo
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited