dart_analysis_client

Dart client library to access Dart analysis server

Usage

A simple usage example:

library main;

import 'dart:io';
import 'package:dart_analysis_client/dart_analysis_client.dart';

main() async {
  Directory dir = new Directory('C:\\Program Files\\Dart\\dart-sdk');
  if(!dir.existsSync()) {
    throw new Exception("Dart SDK dir does not exist!");
  }
  final config = new AnalyzerConfig(dir);

  final server = new AnalysisServer(config);
  await server.start();
  print((await server.getVersion()).toJson());
  exit(0);
}

Features and bugs

Please file feature requests and bugs at the issue tracker.

Libraries

dart_analysis_client

Support for doing something awesome.