build_modules library

Classes

DartPlatform
A supported "platform" for compilation of Dart libraries.
KernelBuilder
A builder which can output kernel files for a given sdk.
MetaModuleBuilder
Creates .meta_module file for any Dart library.
MetaModuleCleanBuilder
Creates .meta_module.clean file for any Dart library.
Module
A collection of Dart libraries in a strongly connected component of the import graph.
ModuleBuilder
Creates .module files for any .dart file that is the primary dart source of a Module.
ModuleLibraryBuilder
Creates .module.library assets listing the dependencies and parts for a Dart library, as well as whether it is an entrypoint.

Constants

moduleLibraryExtension → const String
multiRootScheme → const String

Properties

dartdevkDriverResource → Resource<BazelWorkerDriver>
Resource for fetching the current BazelWorkerDriver for dartdevk.
final
maxWorkersPerTask int
final
scratchSpace → ScratchSpace
A shared ScratchSpace for ddc and analyzer workers that persists throughout builds.
final
scratchSpaceResource → Resource<ScratchSpace>
A shared Resource for a ScratchSpace, which cleans up the contents of the ScratchSpace in dispose, but doesn't delete it entirely.
final

Functions

metaModuleCleanExtension(DartPlatform platform) String
The extension for serialized clean meta module assets.
metaModuleExtension(DartPlatform platform) String
The extension for serialized meta module assets for a specific platform.
moduleExtension(DartPlatform platform) String
The extension for serialized module assets.
reportUnusedKernelInputs(File usedInputsFile, Iterable<AssetId> transitiveKernelDeps, Map<String, AssetId> inputPathToId, BuildStep buildStep) Future<void>
Reports any unused kernel inputs based on the usedInputsFile we get back from the kernel/ddk workers.

Exceptions / Errors

MissingModulesException
An Exception that is thrown when there are some missing modules.
UnsupportedModules
An Exception that is thrown when there are some unsupported modules.