refactor(dart/transform): Minor renames
Rename `setupReflection` => `initReflector` Rename `TemplateComplier` => `TemplateCompiler` Closes #1180
This commit is contained in:
@ -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';
|
||||
|
@ -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);
|
||||
|
@ -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)]
|
||||
]);
|
||||
}
|
||||
|
Reference in New Issue
Block a user