77 */
88
99import { ResourceLoader } from '@angular/compiler' ;
10- import { ApplicationInitStatus , Compiler , COMPILER_OPTIONS , Component , Directive , Injector , InjectorType , LOCALE_ID , ModuleWithComponentFactories , ModuleWithProviders , NgModule , NgModuleFactory , NgZone , Pipe , PlatformRef , Provider , provideZoneChangeDetection , resolveForwardRef , StaticProvider , Type , ɵcompileComponent as compileComponent , ɵcompileDirective as compileDirective , ɵcompileNgModuleDefs as compileNgModuleDefs , ɵcompilePipe as compilePipe , ɵDEFAULT_LOCALE_ID as DEFAULT_LOCALE_ID , ɵDirectiveDef as DirectiveDef , ɵgetInjectableDef as getInjectableDef , ɵInternalEnvironmentProviders as InternalEnvironmentProviders , ɵisEnvironmentProviders as isEnvironmentProviders , ɵNG_COMP_DEF as NG_COMP_DEF , ɵNG_DIR_DEF as NG_DIR_DEF , ɵNG_INJ_DEF as NG_INJ_DEF , ɵNG_MOD_DEF as NG_MOD_DEF , ɵNG_PIPE_DEF as NG_PIPE_DEF , ɵNgModuleFactory as R3NgModuleFactory , ɵNgModuleTransitiveScopes as NgModuleTransitiveScopes , ɵNgModuleType as NgModuleType , ɵpatchComponentDefWithScope as patchComponentDefWithScope , ɵRender3ComponentFactory as ComponentFactory , ɵRender3NgModuleRef as NgModuleRef , ɵsetLocaleId as setLocaleId , ɵtransitiveScopesFor as transitiveScopesFor , ɵɵInjectableDeclaration as InjectableDeclaration } from '@angular/core' ;
10+ import { ApplicationInitStatus , Compiler , COMPILER_OPTIONS , Component , Directive , Injector , InjectorType , LOCALE_ID , ModuleWithComponentFactories , ModuleWithProviders , NgModule , NgModuleFactory , NgZone , Pipe , PlatformRef , Provider , provideZoneChangeDetection , resolveForwardRef , StaticProvider , Type , ɵclearResolutionOfComponentResourcesQueue , ɵcompileComponent as compileComponent , ɵcompileDirective as compileDirective , ɵcompileNgModuleDefs as compileNgModuleDefs , ɵcompilePipe as compilePipe , ɵDEFAULT_LOCALE_ID as DEFAULT_LOCALE_ID , ɵdepsTracker as depsTracker , ɵDirectiveDef as DirectiveDef , ɵgenerateStandaloneInDeclarationsError , ɵgetAsyncClassMetadata as getAsyncClassMetadata , ɵgetInjectableDef as getInjectableDef , ɵInternalEnvironmentProviders as InternalEnvironmentProviders , ɵisComponentDefPendingResolution , ɵisEnvironmentProviders as isEnvironmentProviders , ɵNG_COMP_DEF as NG_COMP_DEF , ɵNG_DIR_DEF as NG_DIR_DEF , ɵNG_INJ_DEF as NG_INJ_DEF , ɵNG_MOD_DEF as NG_MOD_DEF , ɵNG_PIPE_DEF as NG_PIPE_DEF , ɵNgModuleFactory as R3NgModuleFactory , ɵNgModuleTransitiveScopes as NgModuleTransitiveScopes , ɵNgModuleType as NgModuleType , ɵpatchComponentDefWithScope as patchComponentDefWithScope , ɵRender3ComponentFactory as ComponentFactory , ɵRender3NgModuleRef as NgModuleRef , ɵresolveComponentResources , ɵrestoreComponentResolutionQueue , ɵsetLocaleId as setLocaleId , ɵtransitiveScopesFor as transitiveScopesFor , ɵUSE_RUNTIME_DEPS_TRACKER_FOR_JIT as USE_RUNTIME_DEPS_TRACKER_FOR_JIT , ɵɵInjectableDeclaration as InjectableDeclaration } from '@angular/core' ;
1111
12- import { clearResolutionOfComponentResourcesQueue , isComponentDefPendingResolution , resolveComponentResources , restoreComponentResolutionQueue } from '../../src/metadata/resource_loading' ;
1312import { ComponentDef , ComponentType } from '../../src/render3' ;
14- import { depsTracker , USE_RUNTIME_DEPS_TRACKER_FOR_JIT } from '../../src/render3/deps_tracker/deps_tracker' ;
15- import { generateStandaloneInDeclarationsError } from '../../src/render3/jit/module' ;
16- import { getAsyncClassMetadata } from '../../src/render3/metadata' ;
1713
1814import { MetadataOverride } from './metadata_override' ;
1915import { ComponentResolver , DirectiveResolver , NgModuleResolver , PipeResolver , Resolver } from './resolvers' ;
@@ -35,7 +31,7 @@ function assertNoStandaloneComponents(
3531 if ( ! getAsyncClassMetadata ( type ) ) {
3632 const component = resolver . resolve ( type ) ;
3733 if ( component && component . standalone ) {
38- throw new Error ( generateStandaloneInDeclarationsError ( type , location ) ) ;
34+ throw new Error ( ɵgenerateStandaloneInDeclarationsError ( type , location ) ) ;
3935 }
4036 }
4137 } ) ;
@@ -236,7 +232,7 @@ export class TestBedCompiler {
236232 const metadata = this . resolvers . component . resolve ( type ) ! as Component ;
237233 return ! ! metadata . styleUrls && metadata . styleUrls . length > 0 ;
238234 } ;
239- const overrideStyleUrls = ! ! def && ! isComponentDefPendingResolution ( type ) && hasStyleUrls ( ) ;
235+ const overrideStyleUrls = ! ! def && ! ɵisComponentDefPendingResolution ( type ) && hasStyleUrls ( ) ;
240236
241237 // In Ivy, compiling a component does not require knowing the module providing the
242238 // component's scope, so overrideTemplateUsingTestingModule can be implemented purely via
@@ -298,7 +294,7 @@ export class TestBedCompiler {
298294 }
299295 return Promise . resolve ( resourceLoader . get ( url ) ) ;
300296 } ;
301- await resolveComponentResources ( resolver ) ;
297+ await ɵresolveComponentResources ( resolver ) ;
302298 }
303299 }
304300
@@ -387,7 +383,7 @@ export class TestBedCompiler {
387383 `Please call \`await TestBed.compileComponents()\` before running this test.` ) ;
388384 }
389385
390- needsAsyncResources = needsAsyncResources || isComponentDefPendingResolution ( declaration ) ;
386+ needsAsyncResources = needsAsyncResources || ɵisComponentDefPendingResolution ( declaration ) ;
391387
392388 const metadata = this . resolvers . component . resolve ( declaration ) ;
393389 if ( metadata === null ) {
@@ -580,7 +576,7 @@ export class TestBedCompiler {
580576 // Check whether a give Type has respective NG def (ɵcmp) and compile if def is
581577 // missing. That might happen in case a class without any Angular decorators extends another
582578 // class where Component/Directive/Pipe decorator is defined.
583- if ( isComponentDefPendingResolution ( type ) || ! type . hasOwnProperty ( NG_COMP_DEF ) ) {
579+ if ( ɵisComponentDefPendingResolution ( type ) || ! type . hasOwnProperty ( NG_COMP_DEF ) ) {
584580 this . pendingComponents . add ( type ) ;
585581 }
586582 this . seenComponents . add ( type ) ;
@@ -748,7 +744,7 @@ export class TestBedCompiler {
748744 if ( this . originalComponentResolutionQueue === null ) {
749745 this . originalComponentResolutionQueue = new Map ( ) ;
750746 }
751- clearResolutionOfComponentResourcesQueue ( ) . forEach (
747+ ɵclearResolutionOfComponentResourcesQueue ( ) . forEach (
752748 ( value , key ) => this . originalComponentResolutionQueue ! . set ( key , value ) ) ;
753749 }
754750
@@ -759,7 +755,7 @@ export class TestBedCompiler {
759755 */
760756 private restoreComponentResolutionQueue ( ) {
761757 if ( this . originalComponentResolutionQueue !== null ) {
762- restoreComponentResolutionQueue ( this . originalComponentResolutionQueue ) ;
758+ ɵrestoreComponentResolutionQueue ( this . originalComponentResolutionQueue ) ;
763759 this . originalComponentResolutionQueue = null ;
764760 }
765761 }
0 commit comments