CodeGen class

Constructors

CodeGen({List<CodeGenHook> runBefore = const [], List<CodeGenHook> runAfter = const [], List<String> targets = const [], DiscoveryMode discoveryMode = DiscoveryMode.recursiveImports})
const

Properties

discoveryMode DiscoveryMode
Discovery mode
final
hashCode int
The hash code for this object.
no setterinherited
runAfter List<CodeGenHook>
Functions to be run at the end of the build phase, after every annotation
final
runBefore List<CodeGenHook>
Functions to be run at the beginning of the build phase, before any annotation
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
targets List<String>
Set of build targets
final

Methods

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

Static Properties

currentFile String
Contains the path to the current source file for the build
getter/setter pair
currentTarget String
Contains the current target
getter/setter pair

Static Methods

addPartOfDirective(LibraryBuilder library) → void