refactor(compiler): rename decorator directives into directive

BREAKING CHANGE:
Previously, `Directive` was the abstract base class of several directives.
Now, `Directive` is the former `Decorator`, and `Component` inherits from it.
This commit is contained in:
Tobias Bosch
2015-04-30 13:38:40 -07:00
parent c671706518
commit f75a50c1dd
71 changed files with 384 additions and 438 deletions
@@ -12,7 +12,7 @@ void initReflector(reflector) {
'factory': () => new ToolTip(),
'parameters': const [],
'annotations': const [
const Decorator(
const Directive(
selector: '[tool-tip]', properties: const {'text': 'tool-tip'})
]
});
@@ -12,7 +12,7 @@ void initReflector(reflector) {
'factory': () => new ToolTip(),
'parameters': const [],
'annotations': const [
const Decorator(
const Directive(
selector: '[tool-tip]', properties: const {'text': 'tool-tip'})
]
})
@@ -11,6 +11,6 @@ void initReflector(reflector) {
..registerType(HelloCmp, {
'factory': () => new HelloCmp(),
'parameters': const [const []],
'annotations': const [const Decorator(compileChildren: true)]
'annotations': const [const Directive(compileChildren: true)]
});
}
@@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Decorator, View, NgElement;
show bootstrap, Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {
@@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Decorator, View, NgElement;
show bootstrap, Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {
@@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Decorator, View, NgElement;
show bootstrap, Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {
@@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Decorator, View, NgElement;
show bootstrap, Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {
@@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Decorator, View, NgElement;
show bootstrap, Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {
@@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Decorator, View, NgElement;
show bootstrap, Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {
@@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Decorator, View, NgElement;
show bootstrap, Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {
@@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Decorator, View, NgElement;
show bootstrap, Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {
@@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Decorator, View, NgElement;
show bootstrap, Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {
@@ -2,7 +2,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Decorator, View, NgElement;
show bootstrap, Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {
@@ -2,7 +2,7 @@ library examples.src.hello_world.index_common_dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Decorator, View, NgElement;
show bootstrap, Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {
@@ -2,7 +2,7 @@ library examples.src.hello_world.index_common_dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Decorator, View, NgElement;
show bootstrap, Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {
@@ -2,7 +2,7 @@ library examples.src.hello_world.index_common_dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Decorator, View, NgElement;
show bootstrap, Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {
@@ -2,7 +2,7 @@ library examples.src.hello_world.index_common_dart;
import 'hello.dart';
import 'package:angular2/angular2.dart'
show bootstrap, Component, Decorator, View, NgElement;
show bootstrap, Component, Directive, View, NgElement;
var _visited = false;
void initReflector(reflector) {