Configuration constants for the AstBundle file format.
Centralizes all format-defining values to avoid hardcoded literals throughout the codebase. These constants define:
- File format version and extensions
- Archive entry naming conventions
- JSON key names for serialization
- Magic byte sequences for format detection
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
-
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 Methods
-
requireVersion(
String found, String context) → void -
Throws unless
foundis version, naming both.
Constants
- astJsonSuffix → const String
- File extension suffix for AST JSON entries within the archive.
- bundleExtension → const String
- Default file extension for bundle archives.
- factsFileName → const String
- The ZIP entry holding the static facts table (gzip-compressed JSON). Not named in the manifest: a reader that does not know it never opens it.
-
gzipMagicBytes
→ const List<
int> -
Gzip file signature bytes (
\x1f\x8b). - keyEntryPoint → const String
- Key for the entry point URI field.
- keyFacts → const String
-
Key for the optional static facts table (GitHub #18, ghissues69/70):
the static types a resolving bundler recorded, which the interpreter
uses where it would otherwise approximate from run-time values. A
reader that does not know it ignores it, so the format version does
not change for it (see
SStaticFactsin tom_ast_model). - keyFiles → const String
- Key for the file-to-URI mapping in the manifest.
- keyGenerator → const String
-
Key for the optional producer identity, e.g.
tom_ast_generator 0.1.6. - keyModules → const String
- Key for the modules map in the JSON serialization.
- keySources → const String
- Key for the optional source code map.
- keyVersion → const String
- Key for the format version field.
- manifestFileName → const String
- Name of the manifest file within the ZIP archive.
- sourceDartSuffix → const String
- File extension suffix for Dart source entries within the archive.
- version → const String
- Current bundle format version identifier.
-
zipMagicBytes
→ const List<
int> -
ZIP file signature bytes (
PK\x03\x04).