2016-06-23 12:47:54 -04:00
|
|
|
/**
|
|
|
|
* @license
|
|
|
|
* Copyright Google Inc. All Rights Reserved.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by an MIT-style license that can be
|
|
|
|
* found in the LICENSE file at https://angular.io/license
|
|
|
|
*/
|
|
|
|
|
2016-06-24 11:46:43 -04:00
|
|
|
import {Compiler, ComponentResolver, Type} from '@angular/core';
|
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
|
|
|
|
2015-12-03 18:49:09 -05:00
|
|
|
/**
|
|
|
|
* A set of providers that provide `RuntimeCompiler` and its dependencies to use for
|
|
|
|
* template compilation.
|
|
|
|
*/
|
2016-06-08 19:38:52 -04:00
|
|
|
export const COMPILER_PROVIDERS: Array<any|Type|{[k: string]: any}|any[]> =
|
2016-04-29 02:28:13 -04:00
|
|
|
/*@ts2dart_const*/[
|
2016-06-08 19:38:52 -04:00
|
|
|
Lexer, Parser, HtmlParser, TemplateParser, DirectiveNormalizer, CompileMetadataResolver,
|
|
|
|
DEFAULT_PACKAGE_URL_PROVIDER, StyleCompiler, ViewCompiler,
|
2016-06-13 13:06:40 -04:00
|
|
|
/*@ts2dart_Provider*/ {provide: CompilerConfig, useValue: new CompilerConfig()},
|
2016-04-29 02:28:13 -04:00
|
|
|
RuntimeCompiler,
|
|
|
|
/*@ts2dart_Provider*/ {provide: ComponentResolver, useExisting: RuntimeCompiler},
|
2016-06-24 11:46:43 -04:00
|
|
|
/*@ts2dart_Provider*/ {provide: Compiler, useExisting: RuntimeCompiler},
|
2016-04-29 02:28:13 -04:00
|
|
|
DomElementSchemaRegistry,
|
|
|
|
/*@ts2dart_Provider*/ {provide: ElementSchemaRegistry, useExisting: DomElementSchemaRegistry},
|
2016-06-08 19:38:52 -04:00
|
|
|
UrlResolver, ViewResolver, DirectiveResolver, PipeResolver
|
2016-04-29 02:28:13 -04:00
|
|
|
];
|