We have Dart code in `angular2` module that ought to be in its own package. Examples include Dart analysis plugins, and potentially the transformers (although transformers cannot be moved out just yet). However, this code is Dart-only and it doesn’t make sense to use JS directory layout for it. This commit introduces a sub-directory called `modules_dart`. All modules in this directory are pure Dart packages using standard pub directory layout. The code in these packages never gets transpiled. It is directly copied to `dist` unmodified, except an adjustment in relative paths in `pubspec.yaml` files.
24 lines
678 B
Dart
24 lines
678 B
Dart
library angular2.src.analysis.server_plugin;
|
|
|
|
import 'package:analyzer/plugin/plugin.dart';
|
|
|
|
/// Contribute a plugin for services such as completions, indexing and refactoring
|
|
/// of Angular 2 dart code.
|
|
class AngularServerPlugin implements Plugin {
|
|
|
|
/// the unique indetifier for this plugin
|
|
static const String UNIQUE_IDENTIFIER = 'angular2.analysis.services';
|
|
|
|
@override
|
|
String get uniqueIdentifier => UNIQUE_IDENTIFIER;
|
|
|
|
@override
|
|
void registerExtensionPoints(RegisterExtensionPoint registerExtensionPoint) {}
|
|
|
|
@override
|
|
void registerExtensions(RegisterExtension registerExtension) {
|
|
// TODO: register extension for code completions, indexing etc
|
|
|
|
}
|
|
}
|