resolve property
Whether the bundle's modules are resolved with the analyzer before the bundle is returned - the resolving check (GitHub #18, option 3).
The check reports what Dart would reject: a name the script never
imported, a type mismatch, a missing member. On an error the bundler
throws AstResolveException with the errors and returns no bundle; the
report of a passed check is AstBundler.lastResolveReport. Errors that
come only from a library in AstBundler.bridgedLibraries that has
neither source nor stub (AstBundler.declarationStubs) are left out and
counted.
The analyzer reads the Dart SDK (sdkPath, else found from DART_SDK,
the dart or flutter on PATH) and, in a project, the packages its
package_config.json names; AstBundler.fileAccessValidator governs
the bundler's own reads, not those. Bundle sources and stubs are
analyzer overlays: nothing is written to disk.
Off by default: plain bundling stays parse-only. Resolving costs about 0.2-0.6 s for a plain script and 3-4 s for the first Flutter script of a process.
Implementation
final bool resolve;