BridgeSerializer class

A BridgeDeclarationRegistry which serializes registered declarations to a JSON object. Serialized declarations can be loaded with the dart_eval CLI.

Implemented types

Constructors

BridgeSerializer()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addPlugin(EvalPlugin plugin) → void
Register a plugin with this registry.
override
addSource(DartSource source) → void
Add a unit source to the list of additional sources which will be compiled alongside the packages specified in compile.
override
defineBridgeClass(BridgeClassDef classDef) → void
override
defineBridgeEnum(BridgeEnumDef enumDef) → void
Define a bridged enum definition to be used when compiling.
override
defineBridgeTopLevelFunction(BridgeFunctionDeclaration function) → void
Define a bridged top-level function declaration.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
serialize() Map<String, dynamic>
Serialize all declarations to a JSON object.
toString() String
A string representation of this object.
inherited

Operators

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