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.
ModuleLibrary
A Dart library within 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
frontendServerProxyDriverResource → Resource<FrontendServerProxyDriver>
Manages a shared set of workers that proxy requests to a single persistentFrontendServerResource.
final
frontendServerState → FrontendServerState
A persistent shared FrontendServerState for DDC workers that interact with the Frontend Server.
final
frontendServerStateResource → Resource<FrontendServerState>
A shared Resource for a FrontendServerState.
final
maxWorkersPerTask int
final
persistentFrontendServerResource → Resource<PersistentFrontendServer>
Manages a single persistent instance of the Frontend Server targeting DDC.
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

invalidVariableName(String keyword, {bool strictMode = true}) bool
Returns true for invalid JS variable names, such as keywords. Also handles invalid variable names in strict mode, like "arguments".
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.
pathToJSIdentifier(String path) String
Logic in this file must be synchronized with their namesakes in DDC at: pkg/dev_compiler/lib/src/compiler/js_names.dart Transforms a path to a valid JS identifier.
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.
toJSIdentifier(String name) String
Escape name to make it into a valid identifier.

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.