AstBundlerConfig class

Configuration for AstBundler import resolution behavior.

Controls which import schemes are auto-resolved, which are skipped, and what constitutes an error.

Constructors

AstBundlerConfig({Set<String> stdlibSchemes = const {'dart'}, int maxImportDepth = 64, bool followPartDirectives = true, bool includeSources = false, BundleTarget target = BundleTarget.vm, bool resolve = false, String? sdkPath, bool staticFacts = true})
Default configuration.
const

Properties

followPartDirectives → bool
Whether to include part directives when scanning for imports.
final
hashCode → int
The hash code for this object.
no setterinherited
includeSources → bool
Whether each module's source text is carried in the bundle (AstBundle.sources).
final
maxImportDepth → int
Maximum recursion depth for following imports.
final
resolve → bool
Whether the bundle's modules are resolved with the analyzer before the bundle is returned - the resolving check (GitHub #18, option 3).
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sdkPath → String?
The Dart SDK the resolving check analyzes against. When null it is found as findDartSdk describes.
final
staticFacts → bool
Whether the resolving check also records the bundle's static facts (GitHub #18 option 3): the static receiver type, extension and type arguments of every extension member access, and the inferred type arguments of generic calls, instance creations and collection literals. The bundle then carries them in AstBundle.facts, under the optional facts key, which readers that do not know it ignore. A runtime uses them where it would otherwise approximate (tom_d4rt_ast, ghissues70); see doc/resolved_bundles.md.
final
stdlibSchemes → Set<String>
URI schemes that are always skipped (stdlib, always available at runtime).
final
target → BundleTarget
The platform conditional imports and exports are resolved for.
final

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