refactor(ivy): prefix all generated instructions (#29692)
- Updates all instructions to be prefixed with the Greek delta symbol PR Close #29692
This commit is contained in:
@ -6,44 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
// clang-format off
|
||||
import {
|
||||
ApplicationInitStatus,
|
||||
COMPILER_OPTIONS,
|
||||
Compiler,
|
||||
Component,
|
||||
Directive,
|
||||
ErrorHandler,
|
||||
ModuleWithComponentFactories,
|
||||
NgModule,
|
||||
NgModuleFactory,
|
||||
NgZone,
|
||||
Injector,
|
||||
Pipe,
|
||||
PlatformRef,
|
||||
Provider,
|
||||
Type,
|
||||
ɵcompileComponent as compileComponent,
|
||||
ɵcompileDirective as compileDirective,
|
||||
ɵcompileNgModuleDefs as compileNgModuleDefs,
|
||||
ɵcompilePipe as compilePipe,
|
||||
ɵgetInjectableDef as getInjectableDef,
|
||||
ɵNG_COMPONENT_DEF as NG_COMPONENT_DEF,
|
||||
ɵNG_DIRECTIVE_DEF as NG_DIRECTIVE_DEF,
|
||||
ɵNG_INJECTOR_DEF as NG_INJECTOR_DEF,
|
||||
ɵNG_MODULE_DEF as NG_MODULE_DEF,
|
||||
ɵNG_PIPE_DEF as NG_PIPE_DEF,
|
||||
ɵRender3ComponentFactory as ComponentFactory,
|
||||
ɵRender3NgModuleRef as NgModuleRef,
|
||||
ɵInjectableDef as InjectableDef,
|
||||
ɵNgModuleFactory as R3NgModuleFactory,
|
||||
ɵNgModuleTransitiveScopes as NgModuleTransitiveScopes,
|
||||
ɵNgModuleType as NgModuleType,
|
||||
ɵDirectiveDef as DirectiveDef,
|
||||
ɵpatchComponentDefWithScope as patchComponentDefWithScope,
|
||||
ɵtransitiveScopesFor as transitiveScopesFor,
|
||||
} from '@angular/core';
|
||||
// clang-format on
|
||||
import {ApplicationInitStatus, COMPILER_OPTIONS, Compiler, Component, Directive, ErrorHandler, ModuleWithComponentFactories, NgModule, NgModuleFactory, NgZone, Injector, Pipe, PlatformRef, Provider, Type, ɵcompileComponent as compileComponent, ɵcompileDirective as compileDirective, ɵcompileNgModuleDefs as compileNgModuleDefs, ɵcompilePipe as compilePipe, ɵgetInjectableDef as getInjectableDef, ɵNG_COMPONENT_DEF as NG_COMPONENT_DEF, ɵNG_DIRECTIVE_DEF as NG_DIRECTIVE_DEF, ɵNG_INJECTOR_DEF as NG_INJECTOR_DEF, ɵNG_MODULE_DEF as NG_MODULE_DEF, ɵNG_PIPE_DEF as NG_PIPE_DEF, ɵRender3ComponentFactory as ComponentFactory, ɵRender3NgModuleRef as NgModuleRef, ΔInjectableDef as InjectableDef, ɵNgModuleFactory as R3NgModuleFactory, ɵNgModuleTransitiveScopes as NgModuleTransitiveScopes, ɵNgModuleType as NgModuleType, ɵDirectiveDef as DirectiveDef, ɵpatchComponentDefWithScope as patchComponentDefWithScope, ɵtransitiveScopesFor as transitiveScopesFor,} from '@angular/core';
|
||||
import {ResourceLoader} from '@angular/compiler';
|
||||
|
||||
import {clearResolutionOfComponentResourcesQueue, restoreComponentResolutionQueue, resolveComponentResources, isComponentDefPendingResolution} from '../../src/metadata/resource_loading';
|
||||
@ -709,4 +672,4 @@ class R3TestCompiler implements Compiler {
|
||||
const meta = this.testBed._getModuleResolver().resolve(moduleType);
|
||||
return meta && meta.id || undefined;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -6,7 +6,7 @@
|
||||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {ApplicationInitStatus, CompilerOptions, Component, Directive, InjectFlags, InjectionToken, Injector, NgModule, NgModuleFactory, NgModuleRef, NgZone, Optional, Pipe, PlatformRef, Provider, SchemaMetadata, SkipSelf, StaticProvider, Type, ɵAPP_ROOT as APP_ROOT, ɵDepFlags as DepFlags, ɵInjectableDef as InjectableDef, ɵNodeFlags as NodeFlags, ɵclearOverrides as clearOverrides, ɵgetInjectableDef as getInjectableDef, ɵivyEnabled as ivyEnabled, ɵoverrideComponentView as overrideComponentView, ɵoverrideProvider as overrideProvider, ɵstringify as stringify} from '@angular/core';
|
||||
import {ApplicationInitStatus, CompilerOptions, Component, Directive, InjectFlags, InjectionToken, Injector, NgModule, NgModuleFactory, NgModuleRef, NgZone, Optional, Pipe, PlatformRef, Provider, SchemaMetadata, SkipSelf, StaticProvider, Type, ɵAPP_ROOT as APP_ROOT, ɵDepFlags as DepFlags, ɵNodeFlags as NodeFlags, ɵclearOverrides as clearOverrides, ɵgetInjectableDef as getInjectableDef, ɵivyEnabled as ivyEnabled, ɵoverrideComponentView as overrideComponentView, ɵoverrideProvider as overrideProvider, ɵstringify as stringify, ΔInjectableDef} from '@angular/core';
|
||||
|
||||
import {AsyncTestCompleter} from './async_test_completer';
|
||||
import {ComponentFixture} from './component_fixture';
|
||||
@ -559,7 +559,7 @@ export class TestBedViewEngine implements Injector, TestBed {
|
||||
deps?: any[],
|
||||
},
|
||||
deprecated = false): void {
|
||||
let def: InjectableDef<any>|null = null;
|
||||
let def: ΔInjectableDef<any>|null = null;
|
||||
if (typeof token !== 'string' && (def = getInjectableDef(token)) && def.providedIn === 'root') {
|
||||
if (provider.useFactory) {
|
||||
this._rootProviderOverrides.push(
|
||||
|
Reference in New Issue
Block a user