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
This commit is contained in:
Tim Blasi 2015-03-20 15:37:09 -07:00 committed by Misko Hevery
parent 02aa8e7945
commit 8baedca972
36 changed files with 37 additions and 37 deletions

View File

@ -1,4 +1,4 @@
library angular2.src.transform.bind_generator.generator;
library angular2.transform.bind_generator.generator;
import 'dart:async';

View File

@ -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';

View File

@ -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';

View File

@ -1,4 +1,4 @@
library angular2.src.transform.common.asset_reader;
library angular2.transform.common.asset_reader;
import 'dart:async';
import 'dart:convert';

View File

@ -1,4 +1,4 @@
library angular2.src.transform.common.formatter;
library angular2.transform.common.formatter;
import 'package:dart_style/dart_style.dart';

View File

@ -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';

View File

@ -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';

View File

@ -1,4 +1,4 @@
library angular2.src.transform.common.ng_data;
library angular2.transform.common.ng_data;
import 'dart:convert';

View File

@ -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';

View File

@ -1,4 +1,4 @@
library angular2.src.transform.common.parser;
library angular2.transform.common.parser;
import 'dart:async';

View File

@ -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';

View File

@ -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';

View File

@ -1,4 +1,4 @@
library angular2.src.transform.directive_linker.linker;
library angular2.transform.directive_linker.linker;
import 'dart:async';

View File

@ -1,4 +1,4 @@
library angular2.src.transform.directive_linker.transformer;
library angular2.transform.directive_linker.transformer;
import 'dart:async';

View File

@ -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';

View File

@ -1,4 +1,4 @@
library angular2.src.transform.directive_processor.transformer;
library angular2.transform.directive_processor.transformer;
import 'dart:async';

View File

@ -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';

View File

@ -1,4 +1,4 @@
library angular2.src.transform;
library angular2.transform;
import 'dart:collection' show Queue;
import 'package:analyzer/src/generated/ast.dart';

View File

@ -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 = '''

View File

@ -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';

View File

@ -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';

View File

@ -1,4 +1,4 @@
library angular2.src.transform;
library angular2.transform;
import 'package:barback/barback.dart';
import 'package:analyzer/src/generated/element.dart';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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';

View File

@ -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;

View File

@ -1,4 +1,4 @@
library angular2.src.transform.template_compiler.generator;
library angular2.transform.template_compiler.generator;
import 'dart:async';

View File

@ -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';

View File

@ -1,4 +1,4 @@
library angular2.src.transform.template_compiler.transformer;
library angular2.transform.template_compiler.transformer;
import 'dart:async';

View File

@ -1,4 +1,4 @@
library angular2.src.transform;
library angular2.transform;
import 'package:barback/barback.dart';
import 'package:dart_style/dart_style.dart';

View File

@ -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'

View File

@ -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'

View File

@ -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'

View File

@ -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'