FrontendServerClient class
Wrapper around the incremental frontend server compiler.
- Implementers
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
accept(
) → void - Should be invoked when results of compilation are accepted by the client.
-
compile(
[List< Uri> ? invalidatedUris]) → Future<CompileResult> -
Compiles
_entrypoint
, using an incremental recompile if possible. -
compileExpression(
{required String expression, required List< String> definitions, required bool isStatic, required String klass, required String libraryUri, required List<String> typeDefinitions}) → Future<CompileResult> - TODO: Document
-
compileExpressionToJs(
{required String expression, required int column, required Map< String, String> jsFrameValues, required Map<String, String> jsModules, required String libraryUri, required int line, required String moduleName}) → Future<CompileResult> - TODO: Document
-
kill(
{ProcessSignal processSignal = ProcessSignal.sigterm}) → bool -
Kills the server forcefully by calling
kill
on the process, and returns the result. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reject(
) → Future< void> - Should be invoked when results of compilation are rejected by the client.
-
reset(
) → void - Should be invoked when frontend server compiler should forget what was accepted previously so that next call to compile produces complete kernel file.
-
shutdown(
) → Future< int> - Stop the service gracefully (using the shutdown command)
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
start(
String entrypoint, String outputDillPath, String platformKernel, {String dartdevcModuleFormat = 'amd', bool debug = false, List< String> ? enabledExperiments, bool enableHttpUris = false, List<String> fileSystemRoots = const [], String fileSystemScheme = 'org-dartlang-root', String? frontendServerPath, String packagesJson = '.dart_tool/package_config.json', String? sdkRoot, String target = 'vm', bool verbose = false, bool printIncrementalDependencies = true, List<String> additionalSources = const [], String? nativeAssets}) → Future<FrontendServerClient> - Starts the frontend server.