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_modulefile for any Dart library. - MetaModuleCleanBuilder
-
Creates
.meta_module.cleanfile for any Dart library. - Module
- A collection of Dart libraries in a strongly connected component of the import graph.
- ModuleBuilder
-
Creates
.modulefiles for any.dartfile that is the primary dart source of a Module. - ModuleLibrary
- A Dart library within a module.
- ModuleLibraryBuilder
-
Creates
.module.libraryassets 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
BazelWorkerDriverfor dartdevk.final -
frontendServerProxyDriverResource
→ Resource<
FrontendServerProxyDriver> -
Manages a shared set of workers that proxy requests to a single
persistentFrontendServerResource.
final
- frontendServerState → FrontendServerState
-
A persistent shared
FrontendServerStatefor DDC workers that interact with the Frontend Server.final -
frontendServerStateResource
→ Resource<
FrontendServerState> -
A shared
Resourcefor aFrontendServerState.final - maxWorkersPerTask → int
-
final
-
persistentFrontendServerResource
→ Resource<
PersistentFrontendServer> -
Manages a single persistent instance of the Frontend Server targeting DDC.
final
- scratchSpace → ScratchSpace
-
A shared
ScratchSpacefor ddc and analyzer workers that persists throughout builds.final -
scratchSpaceResource
→ Resource<
ScratchSpace> -
A shared
Resourcefor aScratchSpace, which cleans up the contents of theScratchSpacein 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
usedInputsFilewe get back from the kernel/ddk workers. -
toJSIdentifier(
String name) → String -
Escape
nameto 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.