Add a step that reads `DirectiveMetadata` object off annotated classes into `.ng_meta.dart` files. These will be used by the `TemplateCompiler` step as inputs to the Angular 2 render compiler. Update one test to avoid unsupported functionality, format others.
13 lines
538 B
Dart
13 lines
538 B
Dart
library angular2.transform.common.names;
|
|
|
|
const SETUP_METHOD_NAME = 'initReflector';
|
|
const REFLECTOR_VAR_NAME = 'reflector';
|
|
const TRANSFORM_DYNAMIC_MODE = 'transform_dynamic';
|
|
const DEPS_EXTENSION = '.ng_deps.dart';
|
|
const META_EXTENSION = '.ng_meta.dart';
|
|
const REFLECTION_CAPABILITIES_NAME = 'ReflectionCapabilities';
|
|
const REGISTER_TYPE_METHOD_NAME = 'registerType';
|
|
const REGISTER_GETTERS_METHOD_NAME = 'registerGetters';
|
|
const REGISTER_SETTERS_METHOD_NAME = 'registerSetters';
|
|
const REGISTER_METHODS_METHOD_NAME = 'registerMethods';
|