AstBundleManifest class

Describes the contents of an AstBundle ZIP archive.

The manifest maps archive file names to module URIs and identifies the entry point. It is stored as plain JSON at AstBundleFormat.manifestFileName within the ZIP archive.

Example manifest.json

{
  "version": "1.0",
  "entryPoint": "bin/main.dart",
  "files": {
    "0.ast.json": "bin/main.dart",
    "1.ast.json": "lib/utils.dart"
  }
}

Constructors

AstBundleManifest({required String version, required String entryPoint, required Map<String, String> files, Map<String, String>? sourceFiles})
const
AstBundleManifest.fromJson(Map<String, dynamic> json)
Deserializes a manifest from a JSON map.
factory

Properties

entryPoint String
URI of the entry point module (e.g. bin/main.dart).
final
files Map<String, String>
Mapping from archive file name (e.g. 0.ast.json) to module URI.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
sourceFiles Map<String, String>?
Optional mapping from source file name (e.g. 0.src.dart) to module URI.
final
version String
Format version of this manifest.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Serializes this manifest to a JSON-compatible map.
toString() String
A string representation of this object.
override

Operators

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