AnalysisServer class
A class to communicate with an analysis server instance.
Here's a simple example of starting and communicating with the server:
import 'package:analysis_server_lib/analysis_server_lib.dart';
main() async {
AnalysisServer server = await AnalysisServer.create();
await server.server.onConnected.first;
VersionResult version = await server.server.getVersion();
print(version.version);
server.dispose();
}
Constructors
Properties
- analysis → AnalysisDomain
-
no setter
- analytics → AnalyticsDomain
-
no setter
- completion → CompletionDomain
-
no setter
- diagnostic → DiagnosticDomain
-
no setter
- edit → EditDomain
-
no setter
- execution → ExecutionDomain
-
no setter
- flutter → FlutterDomain
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
-
onReceive
→ Stream<
String> -
no setter
-
onSend
→ Stream<
String> -
no setter
-
processCompleter
→ Completer<
int> -
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- search → SearchDomain
-
no setter
- server → ServerDomain
-
no setter
- willSend ← MethodSend
-
no getter
Methods
-
configure(
Stream< String> inStream, void writeMessage(String)) → void -
dispose(
) → void -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
create(
{String? sdkPath, String? scriptPath, void onRead(String str)?, void onWrite(String str)?, List< String> ? vmArgs, List<String> ? serverArgs, String? clientId, String? clientVersion, Map<String, String> ? processEnvironment}) → Future<AnalysisServer> - Create and connect to a new analysis server instance.