Skip to content

Commit bc909d1

Browse files
author
Tim Blasi
committed
refactor(dart/transform): Minor renames
Rename `setupReflection` => `initReflector` Rename `TemplateComplier` => `TemplateCompiler` Closes angular#1180
1 parent a6736ff commit bc909d1

File tree

36 files changed

+53
-53
lines changed

36 files changed

+53
-53
lines changed

modules/angular2/src/transform/common/names.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
library angular2.transform.common.names;
22

3-
const SETUP_METHOD_NAME = 'setupReflection';
3+
const SETUP_METHOD_NAME = 'initReflector';
44
const REFLECTOR_VAR_NAME = 'reflector';
55
const DEPS_EXTENSION = '.ng_deps.dart';
66
const REGISTER_TYPE_METHOD_NAME = 'registerType';

modules/angular2/src/transform/template_compiler/transformer.dart

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@ import 'generator.dart';
1414

1515
/// [Transformer] responsible for detecting and processing Angular 2 templates.
1616
///
17-
/// [TemplateComplier] uses the Angular 2 `Compiler` to process the templates,
17+
/// [TemplateCompiler] uses the Angular 2 `Compiler` to process the templates,
1818
/// extracting information about what reflection is necessary to render and
1919
/// use that template. It then generates code in place of those reflective
2020
/// accesses.
21-
class TemplateComplier extends Transformer {
21+
class TemplateCompiler extends Transformer {
2222
final TransformerOptions options;
2323

24-
TemplateComplier(this.options);
24+
TemplateCompiler(this.options);
2525

2626
@override
2727
bool isPrimary(AssetId id) => id.path.endsWith(DEPS_EXTENSION);

modules/angular2/src/transform/transformer.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class AngularTransformerGroup extends TransformerGroup {
2525
if (options.modeName == TRANSFORM_MODE) {
2626
phases.addAll([
2727
[new BindGenerator(options)],
28-
[new TemplateComplier(options)],
28+
[new TemplateCompiler(options)],
2929
[new ReflectionRemover(options)]
3030
]);
3131
}

modules/angular2/test/transform/bind_generator/basic_bind_files/bar.ng_deps.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'bar.dart';
44
import 'package:angular2/src/core/annotations/annotations.dart';
55

66
bool _visited = false;
7-
void setupReflection(reflector) {
7+
void initReflector(reflector) {
88
if (_visited) return;
99
_visited = true;
1010
reflector

modules/angular2/test/transform/bind_generator/basic_bind_files/expected/bar.ng_deps.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'bar.dart';
44
import 'package:angular2/src/core/annotations/annotations.dart';
55

66
bool _visited = false;
7-
void setupReflection(reflector) {
7+
void initReflector(reflector) {
88
if (_visited) return;
99
_visited = true;
1010
reflector

modules/angular2/test/transform/bind_generator/duplicate_bind_name_files/expected/soup.ng_deps.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'package:angular2/src/core/annotations/annotations.dart';
44
import 'soup.dart';
55

66
bool _visited = false;
7-
void setupReflection(reflector) {
7+
void initReflector(reflector) {
88
if (_visited) return;
99
_visited = true;
1010
reflector

modules/angular2/test/transform/bind_generator/duplicate_bind_name_files/soup.ng_deps.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'package:angular2/src/core/annotations/annotations.dart';
44
import 'soup.dart';
55

66
bool _visited = false;
7-
void setupReflection(reflector) {
7+
void initReflector(reflector) {
88
if (_visited) return;
99
_visited = true;
1010
reflector

modules/angular2/test/transform/directive_linker/simple_export_files/bar.ng_deps.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import 'package:angular2/src/core/annotations/annotations.dart';
55
export 'foo.dart';
66

77
bool _visited = false;
8-
void setupReflection(reflector) {
8+
void initReflector(reflector) {
99
if (_visited) return;
1010
_visited = true;
1111
reflector

modules/angular2/test/transform/directive_linker/simple_export_files/expected/bar.ng_deps.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import 'foo.ng_deps.dart' as i0;
77
export 'foo.dart';
88

99
bool _visited = false;
10-
void setupReflection(reflector) {
10+
void initReflector(reflector) {
1111
if (_visited) return;
1212
_visited = true;
1313
reflector
@@ -16,5 +16,5 @@ void setupReflection(reflector) {
1616
'parameters': const [],
1717
'annotations': const [const Component(selector: '[soup]')]
1818
});
19-
i0.setupReflection(reflector);
19+
i0.initReflector(reflector);
2020
}

modules/angular2/test/transform/directive_linker/simple_export_files/expected/foo.ng_deps.dart

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import 'foo.dart';
44
import 'package:angular2/src/core/annotations/annotations.dart';
55

66
bool _visited = false;
7-
void setupReflection(reflector) {
7+
void initReflector(reflector) {
88
if (_visited) return;
99
_visited = true;
1010
reflector

0 commit comments

Comments
 (0)