2015-11-09 14:33:22 -08:00
|
|
|
export {PLATFORM_DIRECTIVES, PLATFORM_PIPES} from 'angular2/src/core/platform_directives_and_pipes';
|
2015-12-03 16:14:34 -08:00
|
|
|
export * from 'angular2/src/compiler/template_ast';
|
|
|
|
export {TEMPLATE_TRANSFORMS} from 'angular2/src/compiler/template_parser';
|
2016-01-06 14:13:44 -08:00
|
|
|
export {CompilerConfig, RenderTypes} from './config';
|
|
|
|
export * from './compile_metadata';
|
|
|
|
export * from './offline_compiler';
|
2016-04-13 17:05:17 -07:00
|
|
|
export {RuntimeCompiler} from './runtime_compiler';
|
2016-01-06 14:13:44 -08:00
|
|
|
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';
|
|
|
|
|
2016-04-25 21:47:33 -07:00
|
|
|
import {assertionsEnabled, Type} from 'angular2/src/facade/lang';
|
2015-11-05 14:07:57 -08:00
|
|
|
import {TemplateParser} from 'angular2/src/compiler/template_parser';
|
|
|
|
import {HtmlParser} from 'angular2/src/compiler/html_parser';
|
2016-01-06 14:13:44 -08:00
|
|
|
import {DirectiveNormalizer} from 'angular2/src/compiler/directive_normalizer';
|
2016-02-18 10:53:21 -08:00
|
|
|
import {CompileMetadataResolver} from 'angular2/src/compiler/metadata_resolver';
|
2015-11-05 14:07:57 -08:00
|
|
|
import {StyleCompiler} from 'angular2/src/compiler/style_compiler';
|
2016-01-06 14:13:44 -08:00
|
|
|
import {ViewCompiler} from 'angular2/src/compiler/view_compiler/view_compiler';
|
|
|
|
import {CompilerConfig} from './config';
|
2016-04-13 17:05:17 -07:00
|
|
|
import {ComponentResolver} from 'angular2/src/core/linker/component_resolver';
|
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';
|
2015-12-05 02:21:38 -08:00
|
|
|
import {UrlResolver, DEFAULT_PACKAGE_URL_PROVIDER} from 'angular2/src/compiler/url_resolver';
|
2016-01-06 14:13:44 -08: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 10:33:23 -07:00
|
|
|
|
2016-01-06 14:13:44 -08:00
|
|
|
function _createCompilerConfig() {
|
|
|
|
return new CompilerConfig(assertionsEnabled(), false, true);
|
2015-09-18 10:33:23 -07:00
|
|
|
}
|
2015-11-13 11:21:16 -08:00
|
|
|
|
2015-12-03 15:49:09 -08:00
|
|
|
/**
|
|
|
|
* A set of providers that provide `RuntimeCompiler` and its dependencies to use for
|
|
|
|
* template compilation.
|
|
|
|
*/
|
2016-04-28 23:28:13 -07: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,
|
|
|
|
/*@ts2dart_Provider*/ {provide: CompilerConfig, useFactory: _createCompilerConfig, deps: []},
|
|
|
|
RuntimeCompiler,
|
|
|
|
/*@ts2dart_Provider*/ {provide: ComponentResolver, useExisting: RuntimeCompiler},
|
|
|
|
DomElementSchemaRegistry,
|
|
|
|
/*@ts2dart_Provider*/ {provide: ElementSchemaRegistry, useExisting: DomElementSchemaRegistry},
|
|
|
|
UrlResolver,
|
|
|
|
ViewResolver,
|
|
|
|
DirectiveResolver,
|
|
|
|
PipeResolver
|
|
|
|
];
|