Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(327)

Side by Side Diff: pkg/analyzer_plugin/lib/starter.dart

Issue 2667823003: Add top-level driver and abstract plugin superclass (Closed)
Patch Set: Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file.
4
5 import 'dart:isolate';
6
7 import 'package:analyzer_plugin/plugin/plugin.dart';
8 import 'package:analyzer_plugin/src/driver.dart';
9
10 /**
11 * An object that can be used to start an analysis server plugin. This class
12 * exists so that clients can configure a plugin before starting it.
13 *
14 * Clients may not extend, implement or mix-in this class.
15 */
16 abstract class ServerPluginStarter {
17 /**
18 * Create a starter that can be used to start the given [plugin].
19 */
20 factory ServerPluginStarter(ServerPlugin plugin) => new Driver(plugin);
21
22 /**
23 * Establish the channel used to communicate with the server and start the
24 * plugin.
25 */
26 void start(SendPort sendPort);
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698