2016-04-28 20:50:03 -04:00
|
|
|
import {ComponentResolver, Type} from '@angular/core';
|
2016-05-31 18:22:59 -04:00
|
|
|
import {assertionsEnabled} from './facade/lang';
|
2016-04-28 20:50:03 -04:00
|
|
|
|
|
|
|
export * from './template_ast';
|
|
|
|
export {TEMPLATE_TRANSFORMS} from './template_parser';
|
2016-01-06 17:13:44 -05:00
|
|
|
export {CompilerConfig, RenderTypes} from './config';
|
|
|
|
export * from './compile_metadata';
|
|
|
|
export * from './offline_compiler';
|
2016-04-13 20:05:17 -04:00
|
|
|
export {RuntimeCompiler} from './runtime_compiler';
|
2016-04-28 20:50:03 -04:00
|
|
|
export * from './url_resolver';
|
|
|
|
export * from './xhr';
|
2016-01-06 17:13:44 -05:00
|
|
|
|
|
|
|
export {ViewResolver} from './view_resolver';
|
|
|
|
export {DirectiveResolver} from './directive_resolver';
|
|
|
|
export {PipeResolver} from './pipe_resolver';
|
|
|
|
|
2016-04-28 20:50:03 -04:00
|
|
|
import {TemplateParser} from './template_parser';
|
|
|
|
import {HtmlParser} from './html_parser';
|
|
|
|
import {DirectiveNormalizer} from './directive_normalizer';
|
|
|
|
import {CompileMetadataResolver} from './metadata_resolver';
|
|
|
|
import {StyleCompiler} from './style_compiler';
|
|
|
|
import {ViewCompiler} from './view_compiler/view_compiler';
|
2016-01-06 17:13:44 -05:00
|
|
|
import {CompilerConfig} from './config';
|
2016-04-28 20:50:03 -04:00
|
|
|
import {RuntimeCompiler} from './runtime_compiler';
|
|
|
|
import {ElementSchemaRegistry} from './schema/element_schema_registry';
|
|
|
|
import {DomElementSchemaRegistry} from './schema/dom_element_schema_registry';
|
|
|
|
import {UrlResolver, DEFAULT_PACKAGE_URL_PROVIDER} from './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-29 02:28:13 -04:00
|
|
|
export const COMPILER_PROVIDERS: Array<any | Type | {[k: string]: any} | any[]> =
|
|
|
|
/*@ts2dart_const*/[
|
|
|
|
Lexer,
|
|
|
|
Parser,
|
|
|
|
HtmlParser,
|
|
|
|
TemplateParser,
|
|
|
|
DirectiveNormalizer,
|
|
|
|
CompileMetadataResolver,
|
|
|
|
DEFAULT_PACKAGE_URL_PROVIDER,
|
|
|
|
StyleCompiler,
|
|
|
|
ViewCompiler,
|
2016-06-01 20:31:35 -04:00
|
|
|
/*@ts2dart_Provider*/ {provide: CompilerConfig, useFactory: _createCompilerConfig, deps: []},
|
2016-04-29 02:28:13 -04:00
|
|
|
RuntimeCompiler,
|
|
|
|
/*@ts2dart_Provider*/ {provide: ComponentResolver, useExisting: RuntimeCompiler},
|
|
|
|
DomElementSchemaRegistry,
|
|
|
|
/*@ts2dart_Provider*/ {provide: ElementSchemaRegistry, useExisting: DomElementSchemaRegistry},
|
|
|
|
UrlResolver,
|
|
|
|
ViewResolver,
|
|
|
|
DirectiveResolver,
|
|
|
|
PipeResolver
|
|
|
|
];
|