style(dart/transform): Rename .ngDeps.dart => .ng_deps.dart

Update to conform with file naming conventions.

Closes #975
This commit is contained in:
Tim Blasi
2015-03-16 13:32:29 -07:00
committed by Misko Hevery
parent 91398c3425
commit d10df7de44
26 changed files with 32 additions and 30 deletions

View File

@ -10,7 +10,7 @@ import 'package:barback/barback.dart';
import 'generator.dart';
/// Transformer responsible for reading .ngDeps.dart files and generating
/// Transformer responsible for reading .ng_deps.dart files and generating
/// setters from the "annotations" information in the generated
/// `registerType` calls.
///

View File

@ -2,6 +2,6 @@ library angular2.src.transform.common.names;
const SETUP_METHOD_NAME = 'setupReflection';
const REFLECTOR_VAR_NAME = 'reflector';
const DEPS_EXTENSION = '.ngDeps.dart';
const DEPS_EXTENSION = '.ng_deps.dart';
const REGISTER_TYPE_METHOD_NAME = 'registerType';
const REGISTER_SETTERS_METHOD_NAME = 'registerSetters';

View File

@ -37,8 +37,8 @@ class Parser {
return ngDeps;
}
/// Parses the `.ngDeps.dart` file represented by [id] into an [NgDeps]
/// object. All `.ngDeps.dart` files imported by [id] are then parsed. The
/// Parses the `.ng_deps.dart` file represented by [id] into an [NgDeps]
/// object. All `.ng_deps.dart` files imported by [id] are then parsed. The
/// results are added to [allDeps].
Future<List<NgDeps>> _recurse(AssetId id,
[List<NgDeps> allDeps, Set<AssetId> seen]) async {

View File

@ -10,7 +10,7 @@ import 'package:barback/barback.dart';
import 'linker.dart';
/// Transformer responsible for processing .ngDeps.dart files created by
/// Transformer responsible for processing .ng_deps.dart files created by
/// [DirectiveProcessor] and ensuring that the generated calls to
/// `setupReflection` call the necessary `setupReflection` method in all
/// dependencies.

View File

@ -31,7 +31,7 @@ String createNgDeps(String code, String path, {bool forceGenerate: false}) {
}
/// Visitor responsible for processing [CompilationUnit] and creating an
/// associated .ngDeps.dart file.
/// associated .ng_deps.dart file.
class CreateNgDepsVisitor extends Object
with SimpleAstVisitor<Object>, VisitorMixin {
final PrintWriter writer;

View File

@ -11,10 +11,10 @@ import 'package:barback/barback.dart';
import 'rewriter.dart';
/// Transformer responsible for processing all .dart assets and creating
/// .ngDeps.dart files which register @Injectable annotated classes with the
/// .ng_deps.dart files which register @Injectable annotated classes with the
/// reflector.
///
/// This will also create .ngDeps.dart files for classes annotated
/// This will also create .ng_deps.dart files for classes annotated
/// with @Component, @Template, @Decorator, etc.
///
/// This transformer is the first phase in a two-phase transform. It should

View File

@ -14,9 +14,9 @@ import 'remove_reflection_capabilities.dart';
/// The goal of this is to break the app's dependency on dart:mirrors.
///
/// This transformer assumes that [DirectiveProcessor] and [DirectiveLinker]
/// have already been run and that a .ngDeps.dart file has been generated for
/// have already been run and that a .ng_deps.dart file has been generated for
/// [options.entryPoint]. The instantiation of [ReflectionCapabilities] is
/// replaced by calling `setupReflection` in that .ngDeps.dart file.
/// replaced by calling `setupReflection` in that .ng_deps.dart file.
class ReflectionRemover extends Transformer {
final TransformerOptions options;