From 8baedca972909f6e1f54c4501b44a9c51f1406de Mon Sep 17 00:00:00 2001 From: Tim Blasi Date: Fri, 20 Mar 2015 15:37:09 -0700 Subject: [PATCH] style(dart/transform): Remove `src` from library directives Conform to Angular 2 style by removing `src` from library directives. Completed with: ``` find -name "*.dart" | xargs sed -i -e 's!library\(.*\)src\.\(.*\)!library \1\2!' ``` Closes #1005 Closes #1038 --- modules/angular2/src/transform/bind_generator/generator.dart | 2 +- .../angular2/src/transform/bind_generator/transformer.dart | 2 +- modules/angular2/src/transform/bind_generator/visitor.dart | 2 +- modules/angular2/src/transform/common/asset_reader.dart | 2 +- modules/angular2/src/transform/common/formatter.dart | 2 +- modules/angular2/src/transform/common/logging.dart | 2 +- modules/angular2/src/transform/common/names.dart | 2 +- modules/angular2/src/transform/common/ngdata.dart | 2 +- modules/angular2/src/transform/common/options.dart | 2 +- modules/angular2/src/transform/common/parser.dart | 2 +- modules/angular2/src/transform/common/registered_type.dart | 2 +- modules/angular2/src/transform/common/visitor_mixin.dart | 2 +- modules/angular2/src/transform/directive_linker/linker.dart | 2 +- .../angular2/src/transform/directive_linker/transformer.dart | 2 +- .../angular2/src/transform/directive_processor/rewriter.dart | 2 +- .../src/transform/directive_processor/transformer.dart | 2 +- .../angular2/src/transform/directive_processor/visitors.dart | 2 +- .../src/transform/in_progress/annotation_processor.dart | 2 +- modules/angular2/src/transform/in_progress/codegen.dart | 4 ++-- .../angular2/src/transform/in_progress/find_bootstrap.dart | 2 +- .../transform/in_progress/find_reflection_capabilities.dart | 2 +- modules/angular2/src/transform/in_progress/resolvers.dart | 2 +- modules/angular2/src/transform/in_progress/traversal.dart | 2 +- .../angular2/src/transform/reflection_remover/ast_tester.dart | 2 +- .../angular2/src/transform/reflection_remover/codegen.dart | 2 +- .../reflection_remover/remove_reflection_capabilities.dart | 2 +- .../angular2/src/transform/reflection_remover/rewriter.dart | 2 +- .../src/transform/reflection_remover/transformer.dart | 2 +- .../angular2/src/transform/template_compiler/generator.dart | 2 +- .../template_compiler/recording_reflection_capabilities.dart | 2 +- .../angular2/src/transform/template_compiler/transformer.dart | 2 +- modules/angular2/src/transform/transformer.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 +- 36 files changed, 37 insertions(+), 37 deletions(-) diff --git a/modules/angular2/src/transform/bind_generator/generator.dart b/modules/angular2/src/transform/bind_generator/generator.dart index 41a19b31c9..f731256cab 100644 --- a/modules/angular2/src/transform/bind_generator/generator.dart +++ b/modules/angular2/src/transform/bind_generator/generator.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.bind_generator.generator; +library angular2.transform.bind_generator.generator; import 'dart:async'; diff --git a/modules/angular2/src/transform/bind_generator/transformer.dart b/modules/angular2/src/transform/bind_generator/transformer.dart index deaf352e5e..000cc49dd6 100644 --- a/modules/angular2/src/transform/bind_generator/transformer.dart +++ b/modules/angular2/src/transform/bind_generator/transformer.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.bind_generator.transformer; +library angular2.transform.bind_generator.transformer; import 'dart:async'; import 'package:angular2/src/transform/common/asset_reader.dart'; diff --git a/modules/angular2/src/transform/bind_generator/visitor.dart b/modules/angular2/src/transform/bind_generator/visitor.dart index 100cb2f786..2583b8d700 100644 --- a/modules/angular2/src/transform/bind_generator/visitor.dart +++ b/modules/angular2/src/transform/bind_generator/visitor.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.bind_generator.visitor; +library angular2.transform.bind_generator.visitor; import 'package:analyzer/analyzer.dart'; import 'package:angular2/src/transform/common/logging.dart'; diff --git a/modules/angular2/src/transform/common/asset_reader.dart b/modules/angular2/src/transform/common/asset_reader.dart index e7514fc565..cf6c7df4ce 100644 --- a/modules/angular2/src/transform/common/asset_reader.dart +++ b/modules/angular2/src/transform/common/asset_reader.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.common.asset_reader; +library angular2.transform.common.asset_reader; import 'dart:async'; import 'dart:convert'; diff --git a/modules/angular2/src/transform/common/formatter.dart b/modules/angular2/src/transform/common/formatter.dart index c9d71bb8c3..916101b4cc 100644 --- a/modules/angular2/src/transform/common/formatter.dart +++ b/modules/angular2/src/transform/common/formatter.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.common.formatter; +library angular2.transform.common.formatter; import 'package:dart_style/dart_style.dart'; diff --git a/modules/angular2/src/transform/common/logging.dart b/modules/angular2/src/transform/common/logging.dart index 90892e63fa..e137b910f2 100644 --- a/modules/angular2/src/transform/common/logging.dart +++ b/modules/angular2/src/transform/common/logging.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.common.logging; +library angular2.transform.common.logging; import 'package:barback/barback.dart'; import 'package:code_transformers/messages/build_logger.dart'; diff --git a/modules/angular2/src/transform/common/names.dart b/modules/angular2/src/transform/common/names.dart index 8dae729293..f0af0595cd 100644 --- a/modules/angular2/src/transform/common/names.dart +++ b/modules/angular2/src/transform/common/names.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.common.names; +library angular2.transform.common.names; const SETUP_METHOD_NAME = 'setupReflection'; const REFLECTOR_VAR_NAME = 'reflector'; diff --git a/modules/angular2/src/transform/common/ngdata.dart b/modules/angular2/src/transform/common/ngdata.dart index aa6ce36c29..34a819dcf9 100644 --- a/modules/angular2/src/transform/common/ngdata.dart +++ b/modules/angular2/src/transform/common/ngdata.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.common.ng_data; +library angular2.transform.common.ng_data; import 'dart:convert'; diff --git a/modules/angular2/src/transform/common/options.dart b/modules/angular2/src/transform/common/options.dart index 6d5470d0e2..903c3d0fd4 100644 --- a/modules/angular2/src/transform/common/options.dart +++ b/modules/angular2/src/transform/common/options.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.common.options; +library angular2.transform.common.options; const ENTRY_POINT_PARAM = 'entry_point'; const REFLECTION_ENTRY_POINT_PARAM = 'reflection_entry_point'; diff --git a/modules/angular2/src/transform/common/parser.dart b/modules/angular2/src/transform/common/parser.dart index 38e85287f7..20c0aebd39 100644 --- a/modules/angular2/src/transform/common/parser.dart +++ b/modules/angular2/src/transform/common/parser.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.common.parser; +library angular2.transform.common.parser; import 'dart:async'; diff --git a/modules/angular2/src/transform/common/registered_type.dart b/modules/angular2/src/transform/common/registered_type.dart index 2e0bbf03ad..34a7303b57 100644 --- a/modules/angular2/src/transform/common/registered_type.dart +++ b/modules/angular2/src/transform/common/registered_type.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.common.registered_type; +library angular2.transform.common.registered_type; import 'package:analyzer/analyzer.dart'; import 'package:angular2/src/transform/common/names.dart'; diff --git a/modules/angular2/src/transform/common/visitor_mixin.dart b/modules/angular2/src/transform/common/visitor_mixin.dart index 28fa989748..8cfde3044e 100644 --- a/modules/angular2/src/transform/common/visitor_mixin.dart +++ b/modules/angular2/src/transform/common/visitor_mixin.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.common; +library angular2.transform.common; import 'package:analyzer/analyzer.dart'; import 'package:analyzer/src/generated/java_core.dart'; diff --git a/modules/angular2/src/transform/directive_linker/linker.dart b/modules/angular2/src/transform/directive_linker/linker.dart index ae8023e839..f5c6872e96 100644 --- a/modules/angular2/src/transform/directive_linker/linker.dart +++ b/modules/angular2/src/transform/directive_linker/linker.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.directive_linker.linker; +library angular2.transform.directive_linker.linker; import 'dart:async'; diff --git a/modules/angular2/src/transform/directive_linker/transformer.dart b/modules/angular2/src/transform/directive_linker/transformer.dart index 89d0c053c5..e77ed2ae2e 100644 --- a/modules/angular2/src/transform/directive_linker/transformer.dart +++ b/modules/angular2/src/transform/directive_linker/transformer.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.directive_linker.transformer; +library angular2.transform.directive_linker.transformer; import 'dart:async'; diff --git a/modules/angular2/src/transform/directive_processor/rewriter.dart b/modules/angular2/src/transform/directive_processor/rewriter.dart index 0b991a7fa5..d9512fd7c2 100644 --- a/modules/angular2/src/transform/directive_processor/rewriter.dart +++ b/modules/angular2/src/transform/directive_processor/rewriter.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.directive_processor; +library angular2.transform.directive_processor; import 'package:analyzer/analyzer.dart'; import 'package:analyzer/src/generated/java_core.dart'; diff --git a/modules/angular2/src/transform/directive_processor/transformer.dart b/modules/angular2/src/transform/directive_processor/transformer.dart index 04ed44c2ea..a3842d872d 100644 --- a/modules/angular2/src/transform/directive_processor/transformer.dart +++ b/modules/angular2/src/transform/directive_processor/transformer.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.directive_processor.transformer; +library angular2.transform.directive_processor.transformer; import 'dart:async'; diff --git a/modules/angular2/src/transform/directive_processor/visitors.dart b/modules/angular2/src/transform/directive_processor/visitors.dart index c682477cb0..82953468a5 100644 --- a/modules/angular2/src/transform/directive_processor/visitors.dart +++ b/modules/angular2/src/transform/directive_processor/visitors.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.directive_processor; +library angular2.transform.directive_processor; import 'package:analyzer/analyzer.dart'; import 'package:analyzer/src/generated/java_core.dart'; diff --git a/modules/angular2/src/transform/in_progress/annotation_processor.dart b/modules/angular2/src/transform/in_progress/annotation_processor.dart index 5d56c86ede..618a2f4e07 100644 --- a/modules/angular2/src/transform/in_progress/annotation_processor.dart +++ b/modules/angular2/src/transform/in_progress/annotation_processor.dart @@ -1,4 +1,4 @@ -library angular2.src.transform; +library angular2.transform; import 'dart:collection' show Queue; import 'package:analyzer/src/generated/ast.dart'; diff --git a/modules/angular2/src/transform/in_progress/codegen.dart b/modules/angular2/src/transform/in_progress/codegen.dart index b623c6ce6b..c21509c0d5 100644 --- a/modules/angular2/src/transform/in_progress/codegen.dart +++ b/modules/angular2/src/transform/in_progress/codegen.dart @@ -1,4 +1,4 @@ -library angular2.src.transform; +library angular2.transform; import 'package:analyzer/src/generated/ast.dart'; import 'package:analyzer/src/generated/element.dart'; @@ -55,7 +55,7 @@ abstract class DirectiveRegistry { const setupReflectionMethodName = 'setupReflection'; const _libraryDeclaration = ''' -library angular2.src.transform.generated; +library angular2.transform.generated; '''; const _reflectorImport = ''' diff --git a/modules/angular2/src/transform/in_progress/find_bootstrap.dart b/modules/angular2/src/transform/in_progress/find_bootstrap.dart index 0d3826b23e..414312010e 100644 --- a/modules/angular2/src/transform/in_progress/find_bootstrap.dart +++ b/modules/angular2/src/transform/in_progress/find_bootstrap.dart @@ -1,4 +1,4 @@ -library angular2.src.transform; +library angular2.transform; import 'package:analyzer/src/generated/ast.dart'; import 'package:analyzer/src/generated/element.dart'; diff --git a/modules/angular2/src/transform/in_progress/find_reflection_capabilities.dart b/modules/angular2/src/transform/in_progress/find_reflection_capabilities.dart index 6c986874cf..86bf4175f9 100644 --- a/modules/angular2/src/transform/in_progress/find_reflection_capabilities.dart +++ b/modules/angular2/src/transform/in_progress/find_reflection_capabilities.dart @@ -1,4 +1,4 @@ -library angular2.src.transform; +library angular2.transform; import 'package:analyzer/src/generated/ast.dart'; import 'package:analyzer/src/generated/element.dart'; diff --git a/modules/angular2/src/transform/in_progress/resolvers.dart b/modules/angular2/src/transform/in_progress/resolvers.dart index bee12674d0..7b61b7c019 100644 --- a/modules/angular2/src/transform/in_progress/resolvers.dart +++ b/modules/angular2/src/transform/in_progress/resolvers.dart @@ -1,4 +1,4 @@ -library angular2.src.transform; +library angular2.transform; import 'package:barback/barback.dart'; import 'package:analyzer/src/generated/element.dart'; diff --git a/modules/angular2/src/transform/in_progress/traversal.dart b/modules/angular2/src/transform/in_progress/traversal.dart index 553f8a9759..777f70f7b4 100644 --- a/modules/angular2/src/transform/in_progress/traversal.dart +++ b/modules/angular2/src/transform/in_progress/traversal.dart @@ -1,4 +1,4 @@ -library angular2.src.transform; +library angular2.transform; import 'package:analyzer/src/generated/ast.dart'; import 'package:analyzer/src/generated/element.dart'; diff --git a/modules/angular2/src/transform/reflection_remover/ast_tester.dart b/modules/angular2/src/transform/reflection_remover/ast_tester.dart index 5c30ba638d..4f2e9d75b3 100644 --- a/modules/angular2/src/transform/reflection_remover/ast_tester.dart +++ b/modules/angular2/src/transform/reflection_remover/ast_tester.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.reflection_remover.ast_tester; +library angular2.transform.reflection_remover.ast_tester; import 'package:analyzer/src/generated/ast.dart'; import 'package:analyzer/src/generated/element.dart'; diff --git a/modules/angular2/src/transform/reflection_remover/codegen.dart b/modules/angular2/src/transform/reflection_remover/codegen.dart index 48312a622f..1f85f03e9b 100644 --- a/modules/angular2/src/transform/reflection_remover/codegen.dart +++ b/modules/angular2/src/transform/reflection_remover/codegen.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.reflection_remover.codegen; +library angular2.transform.reflection_remover.codegen; import 'package:analyzer/src/generated/ast.dart'; import 'package:barback/barback.dart'; diff --git a/modules/angular2/src/transform/reflection_remover/remove_reflection_capabilities.dart b/modules/angular2/src/transform/reflection_remover/remove_reflection_capabilities.dart index 23a137ae1b..3fb9820b9f 100644 --- a/modules/angular2/src/transform/reflection_remover/remove_reflection_capabilities.dart +++ b/modules/angular2/src/transform/reflection_remover/remove_reflection_capabilities.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.reflection_remover.remove_reflection_capabilities; +library angular2.transform.reflection_remover.remove_reflection_capabilities; import 'package:analyzer/analyzer.dart'; diff --git a/modules/angular2/src/transform/reflection_remover/rewriter.dart b/modules/angular2/src/transform/reflection_remover/rewriter.dart index fec25b3530..06be119126 100644 --- a/modules/angular2/src/transform/reflection_remover/rewriter.dart +++ b/modules/angular2/src/transform/reflection_remover/rewriter.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.reflection_remover.rewriter; +library angular2.transform.reflection_remover.rewriter; import 'package:analyzer/src/generated/ast.dart'; import 'package:angular2/src/transform/common/logging.dart'; diff --git a/modules/angular2/src/transform/reflection_remover/transformer.dart b/modules/angular2/src/transform/reflection_remover/transformer.dart index d7810e8838..326b4786e4 100644 --- a/modules/angular2/src/transform/reflection_remover/transformer.dart +++ b/modules/angular2/src/transform/reflection_remover/transformer.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.reflection_remover.transformer; +library angular2.transform.reflection_remover.transformer; import 'dart:async'; import 'package:angular2/src/transform/common/logging.dart' as log; diff --git a/modules/angular2/src/transform/template_compiler/generator.dart b/modules/angular2/src/transform/template_compiler/generator.dart index 1cedd3514a..c7773424e2 100644 --- a/modules/angular2/src/transform/template_compiler/generator.dart +++ b/modules/angular2/src/transform/template_compiler/generator.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.template_compiler.generator; +library angular2.transform.template_compiler.generator; import 'dart:async'; diff --git a/modules/angular2/src/transform/template_compiler/recording_reflection_capabilities.dart b/modules/angular2/src/transform/template_compiler/recording_reflection_capabilities.dart index c7ca67b29b..a49f20f7e1 100644 --- a/modules/angular2/src/transform/template_compiler/recording_reflection_capabilities.dart +++ b/modules/angular2/src/transform/template_compiler/recording_reflection_capabilities.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.template_compiler.recording_reflection_capabilities; +library angular2.transform.template_compiler.recording_reflection_capabilities; import 'package:angular2/src/reflection/reflection_capabilities.dart'; import 'package:angular2/src/reflection/types.dart'; diff --git a/modules/angular2/src/transform/template_compiler/transformer.dart b/modules/angular2/src/transform/template_compiler/transformer.dart index 1d15914164..b75fe730e5 100644 --- a/modules/angular2/src/transform/template_compiler/transformer.dart +++ b/modules/angular2/src/transform/template_compiler/transformer.dart @@ -1,4 +1,4 @@ -library angular2.src.transform.template_compiler.transformer; +library angular2.transform.template_compiler.transformer; import 'dart:async'; diff --git a/modules/angular2/src/transform/transformer.dart b/modules/angular2/src/transform/transformer.dart index 986d3f6f5a..0c33253d04 100644 --- a/modules/angular2/src/transform/transformer.dart +++ b/modules/angular2/src/transform/transformer.dart @@ -1,4 +1,4 @@ -library angular2.src.transform; +library angular2.transform; import 'package:barback/barback.dart'; import 'package:dart_style/dart_style.dart'; 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 b4436f0947..fe3dbae805 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 @@ -1,4 +1,4 @@ -library examples.src.hello_world.index_common_dart; +library examples.hello_world.index_common_dart; import 'hello.dart'; import 'package:angular2/angular2.dart' 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 325570824c..191dc82d0b 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 @@ -1,4 +1,4 @@ -library examples.src.hello_world.index_common_dart; +library examples.hello_world.index_common_dart; import 'hello.dart'; import 'package:angular2/angular2.dart' 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 bdf9c7bb54..3dfde0f59c 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 @@ -1,4 +1,4 @@ -library examples.src.hello_world.index_common_dart; +library examples.hello_world.index_common_dart; import 'hello.dart'; import 'package:angular2/angular2.dart' 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 acfaece10e..a2aa4cf5d6 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 @@ -1,4 +1,4 @@ -library examples.src.hello_world.index_common_dart; +library examples.hello_world.index_common_dart; import 'hello.dart'; import 'package:angular2/angular2.dart'