2015-10-06 19:39:44 -07:00
|
|
|
import {RuntimeCompiler_} from "./runtime_compiler";
|
2015-09-14 15:59:09 -07:00
|
|
|
export {TemplateCompiler} from './template_compiler';
|
|
|
|
export {
|
2015-09-18 10:33:23 -07:00
|
|
|
CompileDirectiveMetadata,
|
|
|
|
CompileTypeMetadata,
|
|
|
|
CompileTemplateMetadata
|
2015-09-14 15:59:09 -07:00
|
|
|
} from './directive_metadata';
|
|
|
|
export {SourceModule, SourceWithImports} from './source_module';
|
2015-11-05 14:07:57 -08:00
|
|
|
export {AMBIENT_DIRECTIVES, AMBIENT_PIPES} from 'angular2/src/core/ambient';
|
2015-09-18 10:33:23 -07:00
|
|
|
|
2015-11-06 17:34:07 -08:00
|
|
|
import {assertionsEnabled, Type} from 'angular2/src/facade/lang';
|
2015-10-10 22:11:13 -07:00
|
|
|
import {provide, Provider} from 'angular2/src/core/di';
|
2015-11-05 14:07:57 -08:00
|
|
|
import {TemplateParser} from 'angular2/src/compiler/template_parser';
|
|
|
|
import {HtmlParser} from 'angular2/src/compiler/html_parser';
|
|
|
|
import {TemplateNormalizer} from 'angular2/src/compiler/template_normalizer';
|
|
|
|
import {RuntimeMetadataResolver} from 'angular2/src/compiler/runtime_metadata';
|
|
|
|
import {ChangeDetectionCompiler} from 'angular2/src/compiler/change_detector_compiler';
|
|
|
|
import {StyleCompiler} from 'angular2/src/compiler/style_compiler';
|
|
|
|
import {CommandCompiler} from 'angular2/src/compiler/command_compiler';
|
|
|
|
import {TemplateCompiler} from 'angular2/src/compiler/template_compiler';
|
2015-09-18 10:33:23 -07:00
|
|
|
import {ChangeDetectorGenConfig} from 'angular2/src/core/change_detection/change_detection';
|
2015-10-02 07:37:23 -07:00
|
|
|
import {Compiler} from 'angular2/src/core/linker/compiler';
|
2015-11-05 14:07:57 -08:00
|
|
|
import {RuntimeCompiler} from 'angular2/src/compiler/runtime_compiler';
|
|
|
|
import {ElementSchemaRegistry} from 'angular2/src/compiler/schema/element_schema_registry';
|
|
|
|
import {DomElementSchemaRegistry} from 'angular2/src/compiler/schema/dom_element_schema_registry';
|
|
|
|
import {UrlResolver} from 'angular2/src/compiler/url_resolver';
|
|
|
|
import {AppRootUrl} from 'angular2/src/compiler/app_root_url';
|
|
|
|
import {AnchorBasedAppRootUrl} from 'angular2/src/compiler/anchor_based_app_root_url';
|
2015-10-02 11:10:08 -07:00
|
|
|
import {Parser, Lexer} from 'angular2/src/core/change_detection/change_detection';
|
2015-09-18 10:33:23 -07:00
|
|
|
|
2015-10-10 22:11:13 -07:00
|
|
|
export function compilerProviders(): Array<Type | Provider | any[]> {
|
2015-09-18 10:33:23 -07:00
|
|
|
return [
|
2015-10-02 11:10:08 -07:00
|
|
|
Lexer,
|
|
|
|
Parser,
|
2015-09-18 10:33:23 -07:00
|
|
|
HtmlParser,
|
|
|
|
TemplateParser,
|
|
|
|
TemplateNormalizer,
|
|
|
|
RuntimeMetadataResolver,
|
|
|
|
StyleCompiler,
|
|
|
|
CommandCompiler,
|
|
|
|
ChangeDetectionCompiler,
|
2015-10-10 22:11:13 -07:00
|
|
|
provide(ChangeDetectorGenConfig,
|
2015-10-28 10:06:53 -07:00
|
|
|
{useValue: new ChangeDetectorGenConfig(assertionsEnabled(), false, true)}),
|
2015-09-18 10:33:23 -07:00
|
|
|
TemplateCompiler,
|
2015-10-12 11:30:34 -07:00
|
|
|
provide(RuntimeCompiler, {useClass: RuntimeCompiler_}),
|
|
|
|
provide(Compiler, {useExisting: RuntimeCompiler}),
|
2015-10-01 10:07:49 -07:00
|
|
|
DomElementSchemaRegistry,
|
2015-10-12 11:30:34 -07:00
|
|
|
provide(ElementSchemaRegistry, {useExisting: DomElementSchemaRegistry}),
|
2015-10-02 11:10:08 -07:00
|
|
|
AnchorBasedAppRootUrl,
|
2015-10-12 11:30:34 -07:00
|
|
|
provide(AppRootUrl, {useExisting: AnchorBasedAppRootUrl}),
|
2015-10-02 11:10:08 -07:00
|
|
|
UrlResolver
|
2015-09-18 10:33:23 -07:00
|
|
|
];
|
|
|
|
}
|