From 99fdb9ac419bbb96fc355401f818ac49b297d1ec Mon Sep 17 00:00:00 2001 From: Tim Blasi Date: Fri, 24 Apr 2015 12:05:15 -0700 Subject: [PATCH] fix(dart/transform): Use `var` instead of `bool` in generated files If a source file hides `bool` (explicitly or implicitly via `show`), a generated file using `bool` may not resolve. Closes #1455 --- .../angular2/src/transform/directive_processor/rewriter.dart | 2 +- .../transform/bind_generator/basic_bind_files/bar.ng_deps.dart | 2 +- .../bind_generator/basic_bind_files/expected/bar.ng_deps.dart | 2 +- .../duplicate_bind_name_files/expected/soup.ng_deps.dart | 2 +- .../bind_generator/duplicate_bind_name_files/soup.ng_deps.dart | 2 +- .../directive_linker/simple_export_files/bar.ng_deps.dart | 2 +- .../simple_export_files/expected/bar.ng_deps.dart | 2 +- .../simple_export_files/expected/foo.ng_deps.dart | 2 +- .../simple_export_files/expected/index.ng_deps.dart | 2 +- .../directive_linker/simple_export_files/foo.ng_deps.dart | 2 +- .../directive_linker/simple_export_files/index.ng_deps.dart | 2 +- .../transform/directive_linker/simple_files/bar.ng_deps.dart | 2 +- .../directive_linker/simple_files/expected/bar.ng_deps.dart | 2 +- .../directive_linker/simple_files/expected/foo.ng_deps.dart | 2 +- .../directive_linker/simple_files/expected/index.ng_deps.dart | 2 +- .../transform/directive_linker/simple_files/foo.ng_deps.dart | 2 +- .../transform/directive_linker/simple_files/index.ng_deps.dart | 2 +- .../custom_metadata/expected/chicken_soup.ng_deps.dart | 2 +- .../custom_metadata/expected/split_pea_soup.ng_deps.dart | 2 +- .../custom_metadata/expected/tortilla_soup.ng_deps.dart | 2 +- .../parameter_metadata/expected/soup.ng_deps.dart | 2 +- .../integration/list_of_types_files/expected/bar.ng_deps.dart | 2 +- .../simple_annotation_files/expected/bar.ng_deps.dart | 2 +- .../simple_annotation_files/expected/index.ng_deps.dart | 2 +- .../integration/synthetic_ctor_files/expected/bar.ng_deps.dart | 2 +- .../integration/two_annotations_files/expected/bar.ng_deps.dart | 2 +- .../integration/two_deps_files/expected/bar.ng_deps.dart | 2 +- .../directive_metadata_files/compile_children.ng_deps.dart | 2 +- .../directive_metadata_files/host_listeners.ng_deps.dart | 2 +- .../directive_metadata_files/properties.ng_deps.dart | 2 +- .../directive_metadata_files/selector.ng_deps.dart | 2 +- .../directive_metadata_files/too_many_directives.ng_deps.dart | 2 +- .../inline_expression_files/expected/hello.ng_deps.dart | 2 +- .../inline_expression_files/hello.ng_deps.dart | 2 +- .../inline_method_files/expected/hello.ng_deps.dart | 2 +- .../template_compiler/inline_method_files/hello.ng_deps.dart | 2 +- .../url_expression_files/expected/hello.ng_deps.dart | 2 +- .../template_compiler/url_expression_files/hello.ng_deps.dart | 2 +- .../url_method_files/expected/hello.ng_deps.dart | 2 +- .../template_compiler/url_method_files/hello.ng_deps.dart | 2 +- 40 files changed, 40 insertions(+), 40 deletions(-) diff --git a/modules/angular2/src/transform/directive_processor/rewriter.dart b/modules/angular2/src/transform/directive_processor/rewriter.dart index 94d05574ba..98f67ac419 100644 --- a/modules/angular2/src/transform/directive_processor/rewriter.dart +++ b/modules/angular2/src/transform/directive_processor/rewriter.dart @@ -91,7 +91,7 @@ class CreateNgDepsVisitor extends Object with SimpleAstVisitor { void _openFunctionWrapper() { _maybeWriteImport(); - writer.print('bool _visited = false;' + writer.print('var _visited = false;' 'void ${SETUP_METHOD_NAME}(${REFLECTOR_VAR_NAME}) {' 'if (_visited) return; _visited = true;'); } diff --git a/modules/angular2/test/transform/bind_generator/basic_bind_files/bar.ng_deps.dart b/modules/angular2/test/transform/bind_generator/basic_bind_files/bar.ng_deps.dart index 50f16e2b27..99e6476632 100644 --- a/modules/angular2/test/transform/bind_generator/basic_bind_files/bar.ng_deps.dart +++ b/modules/angular2/test/transform/bind_generator/basic_bind_files/bar.ng_deps.dart @@ -3,7 +3,7 @@ library bar.ng_deps.dart; import 'bar.dart'; import 'package:angular2/src/core/annotations/annotations.dart'; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/bind_generator/basic_bind_files/expected/bar.ng_deps.dart b/modules/angular2/test/transform/bind_generator/basic_bind_files/expected/bar.ng_deps.dart index 6a686a84b2..47a2b700ae 100644 --- a/modules/angular2/test/transform/bind_generator/basic_bind_files/expected/bar.ng_deps.dart +++ b/modules/angular2/test/transform/bind_generator/basic_bind_files/expected/bar.ng_deps.dart @@ -3,7 +3,7 @@ library bar.ng_deps.dart; import 'bar.dart'; import 'package:angular2/src/core/annotations/annotations.dart'; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/bind_generator/duplicate_bind_name_files/expected/soup.ng_deps.dart b/modules/angular2/test/transform/bind_generator/duplicate_bind_name_files/expected/soup.ng_deps.dart index 1c0dc79d10..44973ccebb 100644 --- a/modules/angular2/test/transform/bind_generator/duplicate_bind_name_files/expected/soup.ng_deps.dart +++ b/modules/angular2/test/transform/bind_generator/duplicate_bind_name_files/expected/soup.ng_deps.dart @@ -3,7 +3,7 @@ library dinner.soup.ng_deps.dart; import 'package:angular2/src/core/annotations/annotations.dart'; import 'soup.dart'; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/bind_generator/duplicate_bind_name_files/soup.ng_deps.dart b/modules/angular2/test/transform/bind_generator/duplicate_bind_name_files/soup.ng_deps.dart index 70e288c90d..f5940634d1 100644 --- a/modules/angular2/test/transform/bind_generator/duplicate_bind_name_files/soup.ng_deps.dart +++ b/modules/angular2/test/transform/bind_generator/duplicate_bind_name_files/soup.ng_deps.dart @@ -3,7 +3,7 @@ library dinner.soup.ng_deps.dart; import 'package:angular2/src/core/annotations/annotations.dart'; import 'soup.dart'; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/directive_linker/simple_export_files/bar.ng_deps.dart b/modules/angular2/test/transform/directive_linker/simple_export_files/bar.ng_deps.dart index 6929c7e0a0..1a8b3bba4d 100644 --- a/modules/angular2/test/transform/directive_linker/simple_export_files/bar.ng_deps.dart +++ b/modules/angular2/test/transform/directive_linker/simple_export_files/bar.ng_deps.dart @@ -4,7 +4,7 @@ import 'bar.dart'; import 'package:angular2/src/core/annotations/annotations.dart'; export 'foo.dart'; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/directive_linker/simple_export_files/expected/bar.ng_deps.dart b/modules/angular2/test/transform/directive_linker/simple_export_files/expected/bar.ng_deps.dart index fce1f6129d..e311a1b30d 100644 --- a/modules/angular2/test/transform/directive_linker/simple_export_files/expected/bar.ng_deps.dart +++ b/modules/angular2/test/transform/directive_linker/simple_export_files/expected/bar.ng_deps.dart @@ -5,7 +5,7 @@ import 'package:angular2/src/core/annotations/annotations.dart'; export 'foo.dart'; import 'foo.ng_deps.dart' as i0; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/directive_linker/simple_export_files/expected/foo.ng_deps.dart b/modules/angular2/test/transform/directive_linker/simple_export_files/expected/foo.ng_deps.dart index de83034557..afa3650415 100644 --- a/modules/angular2/test/transform/directive_linker/simple_export_files/expected/foo.ng_deps.dart +++ b/modules/angular2/test/transform/directive_linker/simple_export_files/expected/foo.ng_deps.dart @@ -3,7 +3,7 @@ library foo.ng_deps.dart; import 'foo.dart'; import 'package:angular2/src/core/annotations/annotations.dart'; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/directive_linker/simple_export_files/expected/index.ng_deps.dart b/modules/angular2/test/transform/directive_linker/simple_export_files/expected/index.ng_deps.dart index 27056e9bcc..978e6da400 100644 --- a/modules/angular2/test/transform/directive_linker/simple_export_files/expected/index.ng_deps.dart +++ b/modules/angular2/test/transform/directive_linker/simple_export_files/expected/index.ng_deps.dart @@ -5,7 +5,7 @@ import 'package:angular2/src/reflection/reflection_capabilities.dart'; import 'bar.dart'; import 'bar.ng_deps.dart' as i0; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/directive_linker/simple_export_files/foo.ng_deps.dart b/modules/angular2/test/transform/directive_linker/simple_export_files/foo.ng_deps.dart index de83034557..afa3650415 100644 --- a/modules/angular2/test/transform/directive_linker/simple_export_files/foo.ng_deps.dart +++ b/modules/angular2/test/transform/directive_linker/simple_export_files/foo.ng_deps.dart @@ -3,7 +3,7 @@ library foo.ng_deps.dart; import 'foo.dart'; import 'package:angular2/src/core/annotations/annotations.dart'; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/directive_linker/simple_export_files/index.ng_deps.dart b/modules/angular2/test/transform/directive_linker/simple_export_files/index.ng_deps.dart index eeef1b5ef9..b50e664e59 100644 --- a/modules/angular2/test/transform/directive_linker/simple_export_files/index.ng_deps.dart +++ b/modules/angular2/test/transform/directive_linker/simple_export_files/index.ng_deps.dart @@ -4,7 +4,7 @@ import 'package:angular2/src/core/application.dart'; import 'package:angular2/src/reflection/reflection_capabilities.dart'; import 'bar.dart'; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/directive_linker/simple_files/bar.ng_deps.dart b/modules/angular2/test/transform/directive_linker/simple_files/bar.ng_deps.dart index 462f74f345..037f2efe44 100644 --- a/modules/angular2/test/transform/directive_linker/simple_files/bar.ng_deps.dart +++ b/modules/angular2/test/transform/directive_linker/simple_files/bar.ng_deps.dart @@ -4,7 +4,7 @@ import 'bar.dart'; import 'package:angular2/src/core/annotations/annotations.dart'; import 'foo.dart' as dep; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/directive_linker/simple_files/expected/bar.ng_deps.dart b/modules/angular2/test/transform/directive_linker/simple_files/expected/bar.ng_deps.dart index 5b5978de2e..1a5f556fe4 100644 --- a/modules/angular2/test/transform/directive_linker/simple_files/expected/bar.ng_deps.dart +++ b/modules/angular2/test/transform/directive_linker/simple_files/expected/bar.ng_deps.dart @@ -5,7 +5,7 @@ import 'package:angular2/src/core/annotations/annotations.dart'; import 'foo.dart' as dep; import 'foo.ng_deps.dart' as i0; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/directive_linker/simple_files/expected/foo.ng_deps.dart b/modules/angular2/test/transform/directive_linker/simple_files/expected/foo.ng_deps.dart index de83034557..afa3650415 100644 --- a/modules/angular2/test/transform/directive_linker/simple_files/expected/foo.ng_deps.dart +++ b/modules/angular2/test/transform/directive_linker/simple_files/expected/foo.ng_deps.dart @@ -3,7 +3,7 @@ library foo.ng_deps.dart; import 'foo.dart'; import 'package:angular2/src/core/annotations/annotations.dart'; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/directive_linker/simple_files/expected/index.ng_deps.dart b/modules/angular2/test/transform/directive_linker/simple_files/expected/index.ng_deps.dart index 27056e9bcc..978e6da400 100644 --- a/modules/angular2/test/transform/directive_linker/simple_files/expected/index.ng_deps.dart +++ b/modules/angular2/test/transform/directive_linker/simple_files/expected/index.ng_deps.dart @@ -5,7 +5,7 @@ import 'package:angular2/src/reflection/reflection_capabilities.dart'; import 'bar.dart'; import 'bar.ng_deps.dart' as i0; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/directive_linker/simple_files/foo.ng_deps.dart b/modules/angular2/test/transform/directive_linker/simple_files/foo.ng_deps.dart index de83034557..afa3650415 100644 --- a/modules/angular2/test/transform/directive_linker/simple_files/foo.ng_deps.dart +++ b/modules/angular2/test/transform/directive_linker/simple_files/foo.ng_deps.dart @@ -3,7 +3,7 @@ library foo.ng_deps.dart; import 'foo.dart'; import 'package:angular2/src/core/annotations/annotations.dart'; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/directive_linker/simple_files/index.ng_deps.dart b/modules/angular2/test/transform/directive_linker/simple_files/index.ng_deps.dart index eeef1b5ef9..b50e664e59 100644 --- a/modules/angular2/test/transform/directive_linker/simple_files/index.ng_deps.dart +++ b/modules/angular2/test/transform/directive_linker/simple_files/index.ng_deps.dart @@ -4,7 +4,7 @@ import 'package:angular2/src/core/application.dart'; import 'package:angular2/src/reflection/reflection_capabilities.dart'; import 'bar.dart'; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/directive_processor/custom_metadata/expected/chicken_soup.ng_deps.dart b/modules/angular2/test/transform/directive_processor/custom_metadata/expected/chicken_soup.ng_deps.dart index 4387fc6f71..bc0f589cc7 100644 --- a/modules/angular2/test/transform/directive_processor/custom_metadata/expected/chicken_soup.ng_deps.dart +++ b/modules/angular2/test/transform/directive_processor/custom_metadata/expected/chicken_soup.ng_deps.dart @@ -4,7 +4,7 @@ import 'chicken_soup.dart'; import 'package:angular2/di.dart' show Injectable; import 'package:angular2/src/facade/lang.dart' show CONST; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/directive_processor/custom_metadata/expected/split_pea_soup.ng_deps.dart b/modules/angular2/test/transform/directive_processor/custom_metadata/expected/split_pea_soup.ng_deps.dart index dfcbc71f59..398886ac42 100644 --- a/modules/angular2/test/transform/directive_processor/custom_metadata/expected/split_pea_soup.ng_deps.dart +++ b/modules/angular2/test/transform/directive_processor/custom_metadata/expected/split_pea_soup.ng_deps.dart @@ -4,7 +4,7 @@ import 'split_pea_soup.dart'; import 'package:angular2/di.dart' show Injectable; import 'package:angular2/src/facade/lang.dart' show CONST; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/directive_processor/custom_metadata/expected/tortilla_soup.ng_deps.dart b/modules/angular2/test/transform/directive_processor/custom_metadata/expected/tortilla_soup.ng_deps.dart index 074a68dae7..c7d4b26a27 100644 --- a/modules/angular2/test/transform/directive_processor/custom_metadata/expected/tortilla_soup.ng_deps.dart +++ b/modules/angular2/test/transform/directive_processor/custom_metadata/expected/tortilla_soup.ng_deps.dart @@ -4,7 +4,7 @@ import 'tortilla_soup.dart'; import 'package:angular2/di.dart' show Injectable; import 'package:angular2/src/facade/lang.dart' show CONST; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/directive_processor/parameter_metadata/expected/soup.ng_deps.dart b/modules/angular2/test/transform/directive_processor/parameter_metadata/expected/soup.ng_deps.dart index 6be8a64b23..fa00f991eb 100644 --- a/modules/angular2/test/transform/directive_processor/parameter_metadata/expected/soup.ng_deps.dart +++ b/modules/angular2/test/transform/directive_processor/parameter_metadata/expected/soup.ng_deps.dart @@ -3,7 +3,7 @@ library dinner.soup.ng_deps.dart; import 'soup.dart'; import 'package:angular2/src/core/annotations/annotations.dart'; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/integration/list_of_types_files/expected/bar.ng_deps.dart b/modules/angular2/test/transform/integration/list_of_types_files/expected/bar.ng_deps.dart index ffe4af32be..ad164da52c 100644 --- a/modules/angular2/test/transform/integration/list_of_types_files/expected/bar.ng_deps.dart +++ b/modules/angular2/test/transform/integration/list_of_types_files/expected/bar.ng_deps.dart @@ -6,7 +6,7 @@ import 'package:angular2/src/core/annotations/annotations.ng_deps.dart' as i0; import 'foo.dart'; import 'foo.ng_deps.dart' as i1; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/integration/simple_annotation_files/expected/bar.ng_deps.dart b/modules/angular2/test/transform/integration/simple_annotation_files/expected/bar.ng_deps.dart index ff6b49e143..d50ea929f0 100644 --- a/modules/angular2/test/transform/integration/simple_annotation_files/expected/bar.ng_deps.dart +++ b/modules/angular2/test/transform/integration/simple_annotation_files/expected/bar.ng_deps.dart @@ -4,7 +4,7 @@ import 'bar.dart'; import 'package:angular2/src/core/annotations/annotations.dart'; import 'package:angular2/src/core/annotations/annotations.ng_deps.dart' as i0; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/integration/simple_annotation_files/expected/index.ng_deps.dart b/modules/angular2/test/transform/integration/simple_annotation_files/expected/index.ng_deps.dart index 80832316d1..32ef4dc0e2 100644 --- a/modules/angular2/test/transform/integration/simple_annotation_files/expected/index.ng_deps.dart +++ b/modules/angular2/test/transform/integration/simple_annotation_files/expected/index.ng_deps.dart @@ -8,7 +8,7 @@ import 'index.ng_deps.dart' as ngStaticInit0; import 'bar.dart'; import 'bar.ng_deps.dart' as i1; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/integration/synthetic_ctor_files/expected/bar.ng_deps.dart b/modules/angular2/test/transform/integration/synthetic_ctor_files/expected/bar.ng_deps.dart index ff6b49e143..d50ea929f0 100644 --- a/modules/angular2/test/transform/integration/synthetic_ctor_files/expected/bar.ng_deps.dart +++ b/modules/angular2/test/transform/integration/synthetic_ctor_files/expected/bar.ng_deps.dart @@ -4,7 +4,7 @@ import 'bar.dart'; import 'package:angular2/src/core/annotations/annotations.dart'; import 'package:angular2/src/core/annotations/annotations.ng_deps.dart' as i0; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/integration/two_annotations_files/expected/bar.ng_deps.dart b/modules/angular2/test/transform/integration/two_annotations_files/expected/bar.ng_deps.dart index 7934a9aa8e..51e3e25f15 100644 --- a/modules/angular2/test/transform/integration/two_annotations_files/expected/bar.ng_deps.dart +++ b/modules/angular2/test/transform/integration/two_annotations_files/expected/bar.ng_deps.dart @@ -6,7 +6,7 @@ import 'package:angular2/src/core/annotations/annotations.ng_deps.dart' as i0; import 'package:angular2/src/core/annotations/view.dart'; import 'package:angular2/src/core/annotations/view.ng_deps.dart' as i1; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/integration/two_deps_files/expected/bar.ng_deps.dart b/modules/angular2/test/transform/integration/two_deps_files/expected/bar.ng_deps.dart index 4057de1c53..75fb7f8469 100644 --- a/modules/angular2/test/transform/integration/two_deps_files/expected/bar.ng_deps.dart +++ b/modules/angular2/test/transform/integration/two_deps_files/expected/bar.ng_deps.dart @@ -6,7 +6,7 @@ import 'package:angular2/src/core/annotations/annotations.ng_deps.dart' as i0; import 'foo.dart' as prefix; import 'foo.ng_deps.dart' as i1; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/template_compiler/directive_metadata_files/compile_children.ng_deps.dart b/modules/angular2/test/transform/template_compiler/directive_metadata_files/compile_children.ng_deps.dart index a8eb27c507..0a4ce99db5 100644 --- a/modules/angular2/test/transform/template_compiler/directive_metadata_files/compile_children.ng_deps.dart +++ b/modules/angular2/test/transform/template_compiler/directive_metadata_files/compile_children.ng_deps.dart @@ -3,7 +3,7 @@ library examples.hello_world.index_common_dart.ng_deps.dart; import 'hello.dart'; import 'package:angular2/angular2.dart'; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/template_compiler/directive_metadata_files/host_listeners.ng_deps.dart b/modules/angular2/test/transform/template_compiler/directive_metadata_files/host_listeners.ng_deps.dart index fb24890d87..34844cd700 100644 --- a/modules/angular2/test/transform/template_compiler/directive_metadata_files/host_listeners.ng_deps.dart +++ b/modules/angular2/test/transform/template_compiler/directive_metadata_files/host_listeners.ng_deps.dart @@ -4,7 +4,7 @@ import 'hello.dart'; import 'package:angular2/angular2.dart' show bootstrap, Component, Decorator, View, NgElement; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/template_compiler/directive_metadata_files/properties.ng_deps.dart b/modules/angular2/test/transform/template_compiler/directive_metadata_files/properties.ng_deps.dart index 59f15ecca6..bf5fe0d67f 100644 --- a/modules/angular2/test/transform/template_compiler/directive_metadata_files/properties.ng_deps.dart +++ b/modules/angular2/test/transform/template_compiler/directive_metadata_files/properties.ng_deps.dart @@ -4,7 +4,7 @@ import 'hello.dart'; import 'package:angular2/angular2.dart' show bootstrap, Component, Decorator, View, NgElement; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/template_compiler/directive_metadata_files/selector.ng_deps.dart b/modules/angular2/test/transform/template_compiler/directive_metadata_files/selector.ng_deps.dart index 9c54bcf40f..a1de4036b4 100644 --- a/modules/angular2/test/transform/template_compiler/directive_metadata_files/selector.ng_deps.dart +++ b/modules/angular2/test/transform/template_compiler/directive_metadata_files/selector.ng_deps.dart @@ -4,7 +4,7 @@ import 'hello.dart'; import 'package:angular2/angular2.dart' show bootstrap, Component, Decorator, View, NgElement; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/template_compiler/directive_metadata_files/too_many_directives.ng_deps.dart b/modules/angular2/test/transform/template_compiler/directive_metadata_files/too_many_directives.ng_deps.dart index 89c06f55a4..9cdeec190b 100644 --- a/modules/angular2/test/transform/template_compiler/directive_metadata_files/too_many_directives.ng_deps.dart +++ b/modules/angular2/test/transform/template_compiler/directive_metadata_files/too_many_directives.ng_deps.dart @@ -4,7 +4,7 @@ import 'hello.dart'; import 'package:angular2/angular2.dart' show bootstrap, Component, Decorator, View, NgElement; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/template_compiler/inline_expression_files/expected/hello.ng_deps.dart b/modules/angular2/test/transform/template_compiler/inline_expression_files/expected/hello.ng_deps.dart index d954d7c3bd..eb258de97a 100644 --- a/modules/angular2/test/transform/template_compiler/inline_expression_files/expected/hello.ng_deps.dart +++ b/modules/angular2/test/transform/template_compiler/inline_expression_files/expected/hello.ng_deps.dart @@ -4,7 +4,7 @@ import 'hello.dart'; import 'package:angular2/angular2.dart' show bootstrap, Component, Decorator, View, NgElement; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/template_compiler/inline_expression_files/hello.ng_deps.dart b/modules/angular2/test/transform/template_compiler/inline_expression_files/hello.ng_deps.dart index 53e95cff85..ec8b697168 100644 --- a/modules/angular2/test/transform/template_compiler/inline_expression_files/hello.ng_deps.dart +++ b/modules/angular2/test/transform/template_compiler/inline_expression_files/hello.ng_deps.dart @@ -4,7 +4,7 @@ import 'hello.dart'; import 'package:angular2/angular2.dart' show bootstrap, Component, Decorator, View, NgElement; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/template_compiler/inline_method_files/expected/hello.ng_deps.dart b/modules/angular2/test/transform/template_compiler/inline_method_files/expected/hello.ng_deps.dart index bc095cd638..88f2f7d0b9 100644 --- a/modules/angular2/test/transform/template_compiler/inline_method_files/expected/hello.ng_deps.dart +++ b/modules/angular2/test/transform/template_compiler/inline_method_files/expected/hello.ng_deps.dart @@ -4,7 +4,7 @@ import 'hello.dart'; import 'package:angular2/angular2.dart' show bootstrap, Component, Decorator, View, NgElement; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/template_compiler/inline_method_files/hello.ng_deps.dart b/modules/angular2/test/transform/template_compiler/inline_method_files/hello.ng_deps.dart index 7e8f9d82e1..270c7188c2 100644 --- a/modules/angular2/test/transform/template_compiler/inline_method_files/hello.ng_deps.dart +++ b/modules/angular2/test/transform/template_compiler/inline_method_files/hello.ng_deps.dart @@ -4,7 +4,7 @@ import 'hello.dart'; import 'package:angular2/angular2.dart' show bootstrap, Component, Decorator, View, NgElement; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/template_compiler/url_expression_files/expected/hello.ng_deps.dart b/modules/angular2/test/transform/template_compiler/url_expression_files/expected/hello.ng_deps.dart index 7dd13f7cee..96066880a6 100644 --- a/modules/angular2/test/transform/template_compiler/url_expression_files/expected/hello.ng_deps.dart +++ b/modules/angular2/test/transform/template_compiler/url_expression_files/expected/hello.ng_deps.dart @@ -4,7 +4,7 @@ import 'hello.dart'; import 'package:angular2/angular2.dart' show bootstrap, Component, Decorator, View, NgElement; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/template_compiler/url_expression_files/hello.ng_deps.dart b/modules/angular2/test/transform/template_compiler/url_expression_files/hello.ng_deps.dart index c893958665..8244a5f4f5 100644 --- a/modules/angular2/test/transform/template_compiler/url_expression_files/hello.ng_deps.dart +++ b/modules/angular2/test/transform/template_compiler/url_expression_files/hello.ng_deps.dart @@ -4,7 +4,7 @@ import 'hello.dart'; import 'package:angular2/angular2.dart' show bootstrap, Component, Decorator, View, NgElement; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/template_compiler/url_method_files/expected/hello.ng_deps.dart b/modules/angular2/test/transform/template_compiler/url_method_files/expected/hello.ng_deps.dart index 742ec8e4cf..d384da345f 100644 --- a/modules/angular2/test/transform/template_compiler/url_method_files/expected/hello.ng_deps.dart +++ b/modules/angular2/test/transform/template_compiler/url_method_files/expected/hello.ng_deps.dart @@ -4,7 +4,7 @@ import 'hello.dart'; import 'package:angular2/angular2.dart' show bootstrap, Component, Decorator, View, NgElement; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true; diff --git a/modules/angular2/test/transform/template_compiler/url_method_files/hello.ng_deps.dart b/modules/angular2/test/transform/template_compiler/url_method_files/hello.ng_deps.dart index c893958665..8244a5f4f5 100644 --- a/modules/angular2/test/transform/template_compiler/url_method_files/hello.ng_deps.dart +++ b/modules/angular2/test/transform/template_compiler/url_method_files/hello.ng_deps.dart @@ -4,7 +4,7 @@ import 'hello.dart'; import 'package:angular2/angular2.dart' show bootstrap, Component, Decorator, View, NgElement; -bool _visited = false; +var _visited = false; void initReflector(reflector) { if (_visited) return; _visited = true;