CompileContext constructor
CompileContext(})
Creates a CompileContext for the provided libraryPath
.
Implementation
factory CompileContext(
AssetId libraryPath, {
required Map<String, Set<String>> policyExceptions,
required Map<String, Set<String>> policyExceptionsInPackages,
required bool enableDevTools,
}) {
return _LibraryCompileContext(
enableDevTools: enableDevTools,
path: libraryPath.toRelativeUrl(),
policyExceptionsPerFiles: policyExceptions,
policyExceptionsPerPackages: policyExceptionsInPackages,
);
}