2015-11-09 17:33:22 -05:00
|
|
|
export {PLATFORM_DIRECTIVES, PLATFORM_PIPES} from 'angular2/src/core/platform_directives_and_pipes';
|
2015-12-03 19:14:34 -05:00
|
|
|
export * from 'angular2/src/compiler/template_ast';
|
|
|
|
export {TEMPLATE_TRANSFORMS} from 'angular2/src/compiler/template_parser';
|
2016-01-06 17:13:44 -05:00
|
|
|
export {CompilerConfig, RenderTypes} from './config';
|
|
|
|
export * from './compile_metadata';
|
|
|
|
export * from './offline_compiler';
|
|
|
|
export * from 'angular2/src/compiler/url_resolver';
|
|
|
|
export * from 'angular2/src/compiler/xhr';
|
|
|
|
|
|
|
|
export {ViewResolver} from './view_resolver';
|
|
|
|
export {DirectiveResolver} from './directive_resolver';
|
|
|
|
export {PipeResolver} from './pipe_resolver';
|
|
|
|
|
2015-11-13 14:21:16 -05:00
|
|
|
import {assertionsEnabled, Type, CONST_EXPR} from 'angular2/src/facade/lang';
|
2015-10-11 01:11:13 -04:00
|
|
|
import {provide, Provider} from 'angular2/src/core/di';
|
2015-11-05 17:07:57 -05:00
|
|
|
import {TemplateParser} from 'angular2/src/compiler/template_parser';
|
|
|
|
import {HtmlParser} from 'angular2/src/compiler/html_parser';
|
2016-01-06 17:13:44 -05:00
|
|
|
import {DirectiveNormalizer} from 'angular2/src/compiler/directive_normalizer';
|
2015-11-05 17:07:57 -05:00
|
|
|
import {RuntimeMetadataResolver} from 'angular2/src/compiler/runtime_metadata';
|
|
|
|
import {StyleCompiler} from 'angular2/src/compiler/style_compiler';
|
2016-01-06 17:13:44 -05:00
|
|
|
import {ViewCompiler} from 'angular2/src/compiler/view_compiler/view_compiler';
|
|
|
|
import {CompilerConfig} from './config';
|
2015-10-02 10:37:23 -04:00
|
|
|
import {Compiler} from 'angular2/src/core/linker/compiler';
|
2015-11-05 17:07:57 -05: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';
|
2015-12-05 05:21:38 -05:00
|
|
|
import {UrlResolver, DEFAULT_PACKAGE_URL_PROVIDER} from 'angular2/src/compiler/url_resolver';
|
2016-01-06 17:13:44 -05:00
|
|
|
import {Parser} from './expression_parser/parser';
|
|
|
|
import {Lexer} from './expression_parser/lexer';
|
|
|
|
import {ViewResolver} from './view_resolver';
|
|
|
|
import {DirectiveResolver} from './directive_resolver';
|
|
|
|
import {PipeResolver} from './pipe_resolver';
|
2015-09-18 13:33:23 -04:00
|
|
|
|
2016-01-06 17:13:44 -05:00
|
|
|
function _createCompilerConfig() {
|
|
|
|
return new CompilerConfig(assertionsEnabled(), false, true);
|
2015-09-18 13:33:23 -04:00
|
|
|
}
|
2015-11-13 14:21:16 -05:00
|
|
|
|
2015-12-03 18:49:09 -05:00
|
|
|
/**
|
|
|
|
* A set of providers that provide `RuntimeCompiler` and its dependencies to use for
|
|
|
|
* template compilation.
|
|
|
|
*/
|
2016-04-12 12:40:37 -04:00
|
|
|
export const COMPILER_PROVIDERS: Array<Type | Provider | any[]> = CONST_EXPR([
|
|
|
|
Lexer,
|
|
|
|
Parser,
|
|
|
|
HtmlParser,
|
|
|
|
TemplateParser,
|
2016-01-06 17:13:44 -05:00
|
|
|
DirectiveNormalizer,
|
2016-04-12 12:40:37 -04:00
|
|
|
RuntimeMetadataResolver,
|
|
|
|
DEFAULT_PACKAGE_URL_PROVIDER,
|
|
|
|
StyleCompiler,
|
|
|
|
ViewCompiler,
|
2016-01-06 17:13:44 -05:00
|
|
|
new Provider(CompilerConfig, {useFactory: _createCompilerConfig, deps: []}),
|
|
|
|
RuntimeCompiler,
|
2016-04-12 12:40:37 -04:00
|
|
|
new Provider(Compiler, {useExisting: RuntimeCompiler}),
|
|
|
|
DomElementSchemaRegistry,
|
|
|
|
new Provider(ElementSchemaRegistry, {useExisting: DomElementSchemaRegistry}),
|
2016-01-06 17:13:44 -05:00
|
|
|
UrlResolver,
|
|
|
|
ViewResolver,
|
|
|
|
DirectiveResolver,
|
|
|
|
PipeResolver
|
2015-11-13 14:21:16 -05:00
|
|
|
]);
|