feat: intiial commit for angular 2 dart analysis
Initial commit for analysis support to Angular 2 Dart
This commit is contained in:
parent
b96e560c8d
commit
28ba179e31
modules/angular2/src/analysis
|
@ -0,0 +1,22 @@
|
||||||
|
library angular2.src.analysis.analyzer_plugin;
|
||||||
|
|
||||||
|
import 'package:analyzer/plugin/plugin.dart';
|
||||||
|
|
||||||
|
/// Contribute a plugin to the dart analyzer for analysis of
|
||||||
|
/// Angular 2 dart code.
|
||||||
|
class AngularAnalyzerPlugin implements Plugin {
|
||||||
|
|
||||||
|
/// the unique indetifier for this plugin
|
||||||
|
static const String UNIQUE_IDENTIFIER = 'angular2.analysis';
|
||||||
|
|
||||||
|
@override
|
||||||
|
String get uniqueIdentifier => UNIQUE_IDENTIFIER;
|
||||||
|
|
||||||
|
@override
|
||||||
|
void registerExtensionPoints(RegisterExtensionPoint registerExtensionPoint) {}
|
||||||
|
|
||||||
|
@override
|
||||||
|
void registerExtensions(RegisterExtension registerExtension) {
|
||||||
|
// TODO(keerti): register extension for analysis
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,23 @@
|
||||||
|
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
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue