2015-09-14 18:59:09 -04:00
|
|
|
export {TemplateCompiler} from './template_compiler';
|
|
|
|
export {
|
2015-09-18 13:33:23 -04:00
|
|
|
CompileDirectiveMetadata,
|
|
|
|
CompileTypeMetadata,
|
|
|
|
CompileTemplateMetadata
|
2015-09-14 18:59:09 -04:00
|
|
|
} from './directive_metadata';
|
|
|
|
export {SourceModule, SourceWithImports} from './source_module';
|
2015-09-18 13:33:23 -04:00
|
|
|
|
|
|
|
import {assertionsEnabled, Type} from 'angular2/src/core/facade/lang';
|
|
|
|
import {bind, Binding} from 'angular2/src/core/di';
|
2015-10-02 10:57:29 -04:00
|
|
|
import {TemplateParser} from 'angular2/src/core/compiler/template_parser';
|
|
|
|
import {HtmlParser} from 'angular2/src/core/compiler/html_parser';
|
|
|
|
import {TemplateNormalizer} from 'angular2/src/core/compiler/template_normalizer';
|
|
|
|
import {RuntimeMetadataResolver} from 'angular2/src/core/compiler/runtime_metadata';
|
|
|
|
import {ChangeDetectionCompiler} from 'angular2/src/core/compiler/change_detector_compiler';
|
|
|
|
import {StyleCompiler} from 'angular2/src/core/compiler/style_compiler';
|
|
|
|
import {CommandCompiler} from 'angular2/src/core/compiler/command_compiler';
|
|
|
|
import {TemplateCompiler} from 'angular2/src/core/compiler/template_compiler';
|
2015-09-18 13:33:23 -04:00
|
|
|
import {ChangeDetectorGenConfig} from 'angular2/src/core/change_detection/change_detection';
|
2015-10-02 10:37:23 -04:00
|
|
|
import {Compiler} from 'angular2/src/core/linker/compiler';
|
2015-10-02 10:57:29 -04:00
|
|
|
import {RuntimeCompiler} from 'angular2/src/core/compiler/runtime_compiler';
|
2015-10-02 12:30:36 -04:00
|
|
|
import {ElementSchemaRegistry} from 'angular2/src/core/compiler/schema/element_schema_registry';
|
2015-10-01 13:07:49 -04:00
|
|
|
import {
|
|
|
|
DomElementSchemaRegistry
|
2015-10-02 12:30:36 -04:00
|
|
|
} from 'angular2/src/core/compiler/schema/dom_element_schema_registry';
|
2015-09-18 13:33:23 -04:00
|
|
|
|
|
|
|
export function compilerBindings(): Array<Type | Binding | any[]> {
|
|
|
|
return [
|
|
|
|
HtmlParser,
|
|
|
|
TemplateParser,
|
|
|
|
TemplateNormalizer,
|
|
|
|
RuntimeMetadataResolver,
|
|
|
|
StyleCompiler,
|
|
|
|
CommandCompiler,
|
|
|
|
ChangeDetectionCompiler,
|
|
|
|
bind(ChangeDetectorGenConfig)
|
|
|
|
.toValue(
|
|
|
|
new ChangeDetectorGenConfig(assertionsEnabled(), assertionsEnabled(), false, true)),
|
|
|
|
TemplateCompiler,
|
2015-10-01 13:07:49 -04:00
|
|
|
RuntimeCompiler,
|
|
|
|
bind(Compiler).toAlias(RuntimeCompiler),
|
|
|
|
DomElementSchemaRegistry,
|
|
|
|
bind(ElementSchemaRegistry).toAlias(DomElementSchemaRegistry)
|
2015-09-18 13:33:23 -04:00
|
|
|
];
|
|
|
|
}
|