refactor(dart/transform): Minor renames

Rename `setupReflection` => `initReflector`
Rename `TemplateComplier` => `TemplateCompiler`

Closes #1180
This commit is contained in:
Tim Blasi
2015-04-03 12:33:10 -07:00
parent a6736ff9f2
commit bc909d1d0f
36 changed files with 53 additions and 53 deletions

View File

@ -1,6 +1,6 @@
library angular2.transform.common.names;
const SETUP_METHOD_NAME = 'setupReflection';
const SETUP_METHOD_NAME = 'initReflector';
const REFLECTOR_VAR_NAME = 'reflector';
const DEPS_EXTENSION = '.ng_deps.dart';
const REGISTER_TYPE_METHOD_NAME = 'registerType';

View File

@ -14,14 +14,14 @@ import 'generator.dart';
/// [Transformer] responsible for detecting and processing Angular 2 templates.
///
/// [TemplateComplier] uses the Angular 2 `Compiler` to process the templates,
/// [TemplateCompiler] uses the Angular 2 `Compiler` to process the templates,
/// extracting information about what reflection is necessary to render and
/// use that template. It then generates code in place of those reflective
/// accesses.
class TemplateComplier extends Transformer {
class TemplateCompiler extends Transformer {
final TransformerOptions options;
TemplateComplier(this.options);
TemplateCompiler(this.options);
@override
bool isPrimary(AssetId id) => id.path.endsWith(DEPS_EXTENSION);

View File

@ -25,7 +25,7 @@ class AngularTransformerGroup extends TransformerGroup {
if (options.modeName == TRANSFORM_MODE) {
phases.addAll([
[new BindGenerator(options)],
[new TemplateComplier(options)],
[new TemplateCompiler(options)],
[new ReflectionRemover(options)]
]);
}