MergingGenerator<T, A> class
abstract
Generic class that extends GeneratorForAnnotation<A>
.
-
The generator method generateStream is used to pass a stream of objects of type
T
to a builder of type MergingBuilder. -
T
is a generic type andA
is an annotation.
Constructors
- MergingGenerator()
-
Const constructor used to instantiate an object of type MergingGenerator.
const
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- throwOnUnresolved → bool
-
finalinherited
- typeChecker → TypeChecker
-
no setterinherited
Methods
-
generate(
LibraryReader library, BuildStep buildStep) → FutureOr< String> -
Generates Dart code for an input Dart library.
inherited
-
generateForAnnotatedElement(
Element element, ConstantReader annotation, BuildStep buildStep) → FutureOr< String> -
Implement to return source code to generate for
element
. -
generateMergedContent(
Stream< T> stream) → FutureOr<String> - Returns the merged content that will be written to the output file by MergingBuilder.
-
generateStream(
LibraryReader library, BuildStep buildStep) → Stream< T> -
Generates a stream of objects of type
T
. Each value ofT
is calculated by calling generateStreamItemForAnnotatedElement. -
generateStreamItemForAnnotatedElement(
Element element, ConstantReader annotation, BuildStep buildStep) → T -
Returns an object of type
T
that will be added to theStream
emitted by generateStream. -
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