UnitGenerator class
Constructors
-
UnitGenerator({required DartServerRepository dartServerRepository, required CacheManager cacheManager})
-
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