feat(compiler): integrate compiler with view engine - main integration tests work (#14284)
Part of #14013 PR Close #14284
This commit is contained in:

committed by
Miško Hevery

parent
dfe29934b6
commit
baa654a234
@ -9,10 +9,11 @@
|
||||
import {ANALYZE_FOR_ENTRY_COMPONENTS, ChangeDetectionStrategy, ChangeDetectorRef, ComponentFactory, ComponentFactoryResolver, ComponentRef, ElementRef, Injector, LOCALE_ID, NgModuleFactory, QueryList, RenderComponentType, Renderer, SecurityContext, SimpleChange, TRANSLATIONS_FORMAT, TemplateRef, ViewContainerRef, ViewEncapsulation} from '@angular/core';
|
||||
|
||||
import {CompileIdentifierMetadata, CompileTokenMetadata} from './compile_metadata';
|
||||
import {AnimationGroupPlayer, AnimationKeyframe, AnimationSequencePlayer, AnimationStyles, AnimationTransition, AppView, ChangeDetectorStatus, CodegenComponentFactoryResolver, ComponentRef_, DebugAppView, DebugContext, NgModuleInjector, NoOpAnimationPlayer, StaticNodeDebugInfo, TemplateRef_, ValueUnwrapper, ViewContainer, ViewType, balanceAnimationKeyframes, clearStyles, collectAndResolveStyles, devModeEqual, prepareFinalAnimationStyles, reflector, registerModuleFactory, renderStyles, view_utils} from './private_import_core';
|
||||
import {AnimationGroupPlayer, AnimationKeyframe, AnimationSequencePlayer, AnimationStyles, AnimationTransition, AppView, ChangeDetectorStatus, CodegenComponentFactoryResolver, ComponentRef_, DebugAppView, DebugContext, NgModuleInjector, NoOpAnimationPlayer, StaticNodeDebugInfo, TemplateRef_, ValueUnwrapper, ViewContainer, ViewType, balanceAnimationKeyframes, clearStyles, collectAndResolveStyles, devModeEqual, prepareFinalAnimationStyles, reflector, registerModuleFactory, renderStyles, viewEngine, view_utils} from './private_import_core';
|
||||
|
||||
const APP_VIEW_MODULE_URL = assetUrl('core', 'linker/view');
|
||||
const VIEW_UTILS_MODULE_URL = assetUrl('core', 'linker/view_utils');
|
||||
const VIEW_ENGINE_MODULE_URL = assetUrl('core', 'view/index');
|
||||
const CD_MODULE_URL = assetUrl('core', 'change_detection/change_detection');
|
||||
|
||||
const ANIMATION_STYLE_UTIL_ASSET_URL = assetUrl('core', 'animation/animation_style_util');
|
||||
@ -363,6 +364,47 @@ export class Identifiers {
|
||||
};
|
||||
static noop:
|
||||
IdentifierSpec = {name: 'noop', moduleUrl: VIEW_UTILS_MODULE_URL, runtime: view_utils.noop};
|
||||
|
||||
static viewDef: IdentifierSpec = {
|
||||
name: 'viewDef',
|
||||
moduleUrl: VIEW_ENGINE_MODULE_URL,
|
||||
runtime: viewEngine.viewDef
|
||||
};
|
||||
static elementDef: IdentifierSpec = {
|
||||
name: 'elementDef',
|
||||
moduleUrl: VIEW_ENGINE_MODULE_URL,
|
||||
runtime: viewEngine.elementDef
|
||||
};
|
||||
static anchorDef: IdentifierSpec = {
|
||||
name: 'anchorDef',
|
||||
moduleUrl: VIEW_ENGINE_MODULE_URL,
|
||||
runtime: viewEngine.anchorDef
|
||||
};
|
||||
static textDef: IdentifierSpec = {
|
||||
name: 'textDef',
|
||||
moduleUrl: VIEW_ENGINE_MODULE_URL,
|
||||
runtime: viewEngine.textDef
|
||||
};
|
||||
static directiveDef: IdentifierSpec = {
|
||||
name: 'directiveDef',
|
||||
moduleUrl: VIEW_ENGINE_MODULE_URL,
|
||||
runtime: viewEngine.directiveDef
|
||||
};
|
||||
static providerDef: IdentifierSpec = {
|
||||
name: 'providerDef',
|
||||
moduleUrl: VIEW_ENGINE_MODULE_URL,
|
||||
runtime: viewEngine.providerDef
|
||||
};
|
||||
static queryDef: IdentifierSpec = {
|
||||
name: 'queryDef',
|
||||
moduleUrl: VIEW_ENGINE_MODULE_URL,
|
||||
runtime: viewEngine.queryDef
|
||||
};
|
||||
static nodeValue: IdentifierSpec = {
|
||||
name: 'nodeValue',
|
||||
moduleUrl: VIEW_ENGINE_MODULE_URL,
|
||||
runtime: viewEngine.nodeValue
|
||||
};
|
||||
}
|
||||
|
||||
export function assetUrl(pkg: string, path: string = null, type: string = 'src'): string {
|
||||
|
Reference in New Issue
Block a user