ReflectableEmitter class

Generates .dart source code given a ReflectableOutput.

Constructors

ReflectableEmitter(ReflectableOutput _output, LibraryReader _library, {Allocator? allocator, String reflectorSource = '$_package/src/reflector.dart'})

Properties

hashCode → int
The hash code for this object.
no setterinherited
reflectorSource → String
Where the runtime reflector.dart is located.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

emitImports() → String
Writes import statements needed for emitInitReflector.
emitInitReflector() → String
Writes initReflector, including a preamble if required.
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