UnitGenerator class

Constructors

UnitGenerator({required DartServerRepository dartServerRepository, required CacheManager cacheManager})

Properties

astElementExecutor ↔ AstElementExecutor
latefinal
cacheManager → CacheManager
final
dartServerRepository → DartServerRepository
final
fixerExecutor ↔ FixerExecutor
Executors
latefinal
generationRepository ↔ GenerationRepository
latefinal
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
unitTestExecutor ↔ UnitTestExecutor
latefinal
writerExecutor ↔ WriterExecutor
latefinal
writerRepository ↔ WriterRepository
latefinal

Methods

generateForClass({required ClassElement classElement, required ElementAnnotation annotation, required CompilationUnit compilationUnit, required ClassDeclaration classAstNode, required PubspecData pubspecData, required File classFile, required List<String> requestedFunctions, required TestRunInfo testRunInfo, required bool dryrun, required bool testcases, required bool testability, required FlagGenerationRunInfo flagGenerationRunInfo}) Future<void>
generateForExtension({required ExtensionElement extElement, required ElementAnnotation annotation, required CompilationUnit compilationUnit, required ExtensionDeclaration extAstNode, required PubspecData pubspecData, required File extFile, required List<String> requestedFunctions, required TestRunInfo testRunInfo, required bool dryrun, required bool testcases, required bool testability, required FlagGenerationRunInfo flagGenerationRunInfo}) Future<void>
generateForGlobalExeculatbleElement({required ExecutableElement methodElement, required FunctionDeclaration methodAstNode, required CompilationUnit compilationUnit, required ElementAnnotation annotation, required PubspecData pubspecData, required File methodFile, required TestRunInfo testRunInfo, required bool dryrun, required bool testcases, required bool testability}) Future<void>
generateForGlobalMethod({required FunctionElement methodElement, required FunctionDeclaration methodAstNode, required CompilationUnit compilationUnit, required ElementAnnotation annotation, required PubspecData pubspecData, required File methodFile, required TestRunInfo testRunInfo, required bool dryrun, required bool testcases, required bool testability}) Future<void>
init() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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