refactor(core): reduce the number of circular deps (#38805)
This commit updates several import statements in the core package to decrease the number of cycles detected by the dependency checker tool. PR Close #38805
This commit is contained in:
parent
d92a0dd72f
commit
95b8a8706a
File diff suppressed because it is too large
Load Diff
|
@ -15,7 +15,10 @@ import {ApplicationInitStatus} from './application_init';
|
|||
import {APP_BOOTSTRAP_LISTENER, PLATFORM_INITIALIZER} from './application_tokens';
|
||||
import {getCompilerFacade} from './compiler/compiler_facade';
|
||||
import {Console} from './console';
|
||||
import {Injectable, InjectionToken, Injector, StaticProvider} from './di';
|
||||
import {Injectable} from './di/injectable';
|
||||
import {InjectionToken} from './di/injection_token';
|
||||
import {Injector} from './di/injector';
|
||||
import {StaticProvider} from './di/interface/provider';
|
||||
import {INJECTOR_SCOPE} from './di/scope';
|
||||
import {ErrorHandler} from './error_handler';
|
||||
import {DEFAULT_LOCALE_ID} from './i18n/localization';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {Injector} from '../di';
|
||||
import {Injector} from '../di/injector';
|
||||
import {CONTAINER_HEADER_OFFSET, LContainer, NATIVE} from '../render3/interfaces/container';
|
||||
import {TElementNode, TNode, TNodeFlags, TNodeType} from '../render3/interfaces/node';
|
||||
import {isComponentHost, isLContainer} from '../render3/interfaces/type_checks';
|
||||
|
@ -15,7 +15,7 @@ import {getComponent, getContext, getInjectionTokens, getInjector, getListeners,
|
|||
import {INTERPOLATION_DELIMITER, renderStringify} from '../render3/util/misc_utils';
|
||||
import {getComponentLViewByIndex, getNativeByTNodeOrNull} from '../render3/util/view_utils';
|
||||
import {assertDomNode} from '../util/assert';
|
||||
import {DebugContext} from '../view/index';
|
||||
import {DebugContext} from '../view/types';
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -7,7 +7,7 @@
|
|||
*/
|
||||
|
||||
import {ERROR_DEBUG_CONTEXT, ERROR_LOGGER, ERROR_ORIGINAL_ERROR, ERROR_TYPE} from './util/errors';
|
||||
import {DebugContext} from './view';
|
||||
import {DebugContext} from './view/types';
|
||||
|
||||
export function getType(error: Error): Function {
|
||||
return (error as any)[ERROR_TYPE];
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {AttributeMarker, ComponentTemplate} from '..';
|
||||
import {Injector, SchemaMetadata} from '../../core';
|
||||
import {Sanitizer} from '../../sanitization/sanitizer';
|
||||
import {KeyValueArray} from '../../util/array_utils';
|
||||
|
@ -14,8 +13,8 @@ import {assertDefined} from '../../util/assert';
|
|||
import {createNamedArrayType} from '../../util/named_array_type';
|
||||
import {initNgDevMode} from '../../util/ng_dev_mode';
|
||||
import {CONTAINER_HEADER_OFFSET, HAS_TRANSPLANTED_VIEWS, LContainer, MOVED_VIEWS, NATIVE} from '../interfaces/container';
|
||||
import {DirectiveDefList, PipeDefList, ViewQueriesFunction} from '../interfaces/definition';
|
||||
import {PropertyAliases, TConstants, TContainerNode, TElementNode, TNode as ITNode, TNodeFlags, TNodeProviderIndexes, TNodeType, TNodeTypeAsString, TViewNode} from '../interfaces/node';
|
||||
import {ComponentTemplate, DirectiveDefList, PipeDefList, ViewQueriesFunction} from '../interfaces/definition';
|
||||
import {AttributeMarker, PropertyAliases, TConstants, TContainerNode, TElementNode, TNode as ITNode, TNodeFlags, TNodeProviderIndexes, TNodeType, TNodeTypeAsString, TViewNode} from '../interfaces/node';
|
||||
import {SelectorFlags} from '../interfaces/projection';
|
||||
import {LQueries, TQueries} from '../interfaces/query';
|
||||
import {RComment, RElement, Renderer3, RendererFactory3, RNode} from '../interfaces/renderer';
|
||||
|
|
|
@ -6,9 +6,8 @@
|
|||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {ComponentDef, DirectiveDef} from '..';
|
||||
|
||||
import {LContainer, TYPE} from './container';
|
||||
import {ComponentDef, DirectiveDef} from './definition';
|
||||
import {TNode, TNodeFlags} from './node';
|
||||
import {RNode} from './renderer';
|
||||
import {FLAGS, LView, LViewFlags} from './view';
|
||||
|
|
|
@ -11,7 +11,7 @@ import {resolveForwardRef} from '../../di/forward_ref';
|
|||
import {NG_INJ_DEF} from '../../di/interface/defs';
|
||||
import {reflectDependencies} from '../../di/jit/util';
|
||||
import {Type} from '../../interface/type';
|
||||
import {Component} from '../../metadata';
|
||||
import {Component} from '../../metadata/directives';
|
||||
import {ModuleWithProviders, NgModule, NgModuleDef, NgModuleTransitiveScopes} from '../../metadata/ng_module';
|
||||
import {deepForEach, flatten} from '../../util/array_utils';
|
||||
import {assertDefined} from '../../util/assert';
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
* found in the LICENSE file at https://angular.io/license
|
||||
*/
|
||||
|
||||
import {detectChanges, markDirty} from '../instructions/all';
|
||||
import {detectChanges, markDirty} from '../instructions/change_detection';
|
||||
import {getRootComponents} from './discovery_utils';
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue