refactor(imports): simplify paths
This commit is contained in:
@ -1,7 +1,7 @@
|
||||
import {looseIdentical, isPrimitive} from '../../src/facade/lang';
|
||||
import {isListLikeIterable, areIterablesEqual} from '../../src/facade/collection';
|
||||
import {looseIdentical, isPrimitive} from '../facade/lang';
|
||||
import {isListLikeIterable, areIterablesEqual} from '../facade/collection';
|
||||
|
||||
export {looseIdentical} from '../../src/facade/lang';
|
||||
export {looseIdentical} from '../facade/lang';
|
||||
export var uninitialized: Object = /*@ts2dart_const*/ new Object();
|
||||
|
||||
export function devModeEqual(a: any, b: any): boolean {
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {isBlank} from '../../src/facade/lang';
|
||||
import {isBlank} from '../facade/lang';
|
||||
|
||||
/**
|
||||
* Describes the current state of the change detector.
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {BaseException} from '../../../src/facade/exceptions';
|
||||
import {isListLikeIterable, iterateListLike} from '../../../src/facade/collection';
|
||||
import {BaseException} from '../../facade/exceptions';
|
||||
import {isListLikeIterable, iterateListLike} from '../../facade/collection';
|
||||
|
||||
import {
|
||||
isBlank,
|
||||
@ -8,7 +8,7 @@ import {
|
||||
getMapKey,
|
||||
looseIdentical,
|
||||
isArray
|
||||
} from '../../../src/facade/lang';
|
||||
} from '../../facade/lang';
|
||||
|
||||
import {ChangeDetectorRef} from '../change_detector_ref';
|
||||
import {IterableDiffer, IterableDifferFactory, TrackByFn} from './iterable_differs';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {MapWrapper, StringMapWrapper} from '../../../src/facade/collection';
|
||||
import {stringify, looseIdentical, isJsObject, isBlank} from '../../../src/facade/lang';
|
||||
import {BaseException} from '../../../src/facade/exceptions';
|
||||
import {MapWrapper, StringMapWrapper} from '../../facade/collection';
|
||||
import {stringify, looseIdentical, isJsObject, isBlank} from '../../facade/lang';
|
||||
import {BaseException} from '../../facade/exceptions';
|
||||
import {ChangeDetectorRef} from '../change_detector_ref';
|
||||
import {KeyValueDiffer, KeyValueDifferFactory} from './keyvalue_differs';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {isBlank, isPresent, getTypeNameForDebugging} from '../../../src/facade/lang';
|
||||
import {BaseException} from '../../../src/facade/exceptions';
|
||||
import {ListWrapper} from '../../../src/facade/collection';
|
||||
import {isBlank, isPresent, getTypeNameForDebugging} from '../../facade/lang';
|
||||
import {BaseException} from '../../facade/exceptions';
|
||||
import {ListWrapper} from '../../facade/collection';
|
||||
import {ChangeDetectorRef} from '../change_detector_ref';
|
||||
import {Provider, SkipSelfMetadata, OptionalMetadata} from '../../di';
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {isBlank, isPresent} from '../../../src/facade/lang';
|
||||
import {BaseException} from '../../../src/facade/exceptions';
|
||||
import {ListWrapper} from '../../../src/facade/collection';
|
||||
import {isBlank, isPresent} from '../../facade/lang';
|
||||
import {BaseException} from '../../facade/exceptions';
|
||||
import {ListWrapper} from '../../facade/collection';
|
||||
import {ChangeDetectorRef} from '../change_detector_ref';
|
||||
import {Provider, SkipSelfMetadata, OptionalMetadata} from '../../di';
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {isPresent} from '../../src/facade/lang';
|
||||
import {Predicate, ListWrapper, MapWrapper} from '../../src/facade/collection';
|
||||
import {isPresent} from '../facade/lang';
|
||||
import {Predicate, ListWrapper, MapWrapper} from '../facade/collection';
|
||||
import {Injector} from '../di';
|
||||
import {RenderDebugInfo} from '../render/api';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {isPresent} from '../../src/facade/lang';
|
||||
import {isPresent} from '../facade/lang';
|
||||
import {Renderer, RootRenderer, RenderComponentType, RenderDebugInfo} from '../render/api';
|
||||
import {
|
||||
DebugNode,
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {Type, stringify, isFunction} from '../../src/facade/lang';
|
||||
import {Type, stringify, isFunction} from '../facade/lang';
|
||||
|
||||
/**
|
||||
* An interface that a function passed into {@link forwardRef} has to implement.
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {unimplemented} from '../../src/facade/exceptions';
|
||||
import {unimplemented} from '../facade/exceptions';
|
||||
|
||||
const _THROW_IF_NOT_FOUND = /*@ts2dart_const*/ new Object();
|
||||
export const THROW_IF_NOT_FOUND = /*@ts2dart_const*/ _THROW_IF_NOT_FOUND;
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {stringify} from '../../src/facade/lang';
|
||||
import {stringify} from '../facade/lang';
|
||||
|
||||
/**
|
||||
* A parameter metadata that specifies a dependency.
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {normalizeBool, Type, isType, isBlank, isFunction, stringify} from '../../src/facade/lang';
|
||||
import {BaseException} from '../../src/facade/exceptions';
|
||||
import {normalizeBool, Type, isType, isBlank, isFunction, stringify} from '../facade/lang';
|
||||
import {BaseException} from '../facade/exceptions';
|
||||
|
||||
/**
|
||||
* Describes how the {@link Injector} should instantiate a given token.
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {ListWrapper} from '../../src/facade/collection';
|
||||
import {stringify, isBlank} from '../../src/facade/lang';
|
||||
import {BaseException, WrappedException} from '../../src/facade/exceptions';
|
||||
import {ListWrapper} from '../facade/collection';
|
||||
import {stringify, isBlank} from '../facade/lang';
|
||||
import {BaseException, WrappedException} from '../facade/exceptions';
|
||||
import {ReflectiveKey} from './reflective_key';
|
||||
import {ReflectiveInjector} from './reflective_injector';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {ListWrapper} from '../../src/facade/collection';
|
||||
import {ListWrapper} from '../facade/collection';
|
||||
import {Provider} from './provider';
|
||||
import {
|
||||
ResolvedReflectiveProvider,
|
||||
@ -13,8 +13,8 @@ import {
|
||||
InstantiationError,
|
||||
OutOfBoundsError
|
||||
} from './reflective_exceptions';
|
||||
import {Type} from '../../src/facade/lang';
|
||||
import {BaseException, unimplemented} from '../../src/facade/exceptions';
|
||||
import {Type} from '../facade/lang';
|
||||
import {BaseException, unimplemented} from '../facade/exceptions';
|
||||
import {ReflectiveKey} from './reflective_key';
|
||||
import {SelfMetadata, SkipSelfMetadata} from './metadata';
|
||||
import {Injector, THROW_IF_NOT_FOUND} from './injector';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {stringify, isBlank} from '../../src/facade/lang';
|
||||
import {BaseException} from '../../src/facade/exceptions';
|
||||
import {stringify, isBlank} from '../facade/lang';
|
||||
import {BaseException} from '../facade/exceptions';
|
||||
import {resolveForwardRef} from './forward_ref';
|
||||
|
||||
/**
|
||||
|
@ -3,8 +3,8 @@ import {
|
||||
isBlank,
|
||||
isPresent,
|
||||
isArray,
|
||||
} from '../../src/facade/lang';
|
||||
import {MapWrapper, ListWrapper} from '../../src/facade/collection';
|
||||
} from '../facade/lang';
|
||||
import {MapWrapper, ListWrapper} from '../facade/collection';
|
||||
import {reflector} from '../reflection/reflection';
|
||||
import {ReflectiveKey} from './reflective_key';
|
||||
import {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {Type, isPresent, isBlank} from '../../src/facade/lang';
|
||||
import {unimplemented} from '../../src/facade/exceptions';
|
||||
import {Type, isPresent, isBlank} from '../facade/lang';
|
||||
import {unimplemented} from '../facade/exceptions';
|
||||
import {ElementRef} from './element_ref';
|
||||
import {ViewRef, ViewRef_} from './view_ref';
|
||||
import {AppElement} from './element';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {Type, isBlank, isString, stringify} from '../../src/facade/lang';
|
||||
import {BaseException} from '../../src/facade/exceptions';
|
||||
import {PromiseWrapper} from '../../src/facade/async';
|
||||
import {Type, isBlank, isString, stringify} from '../facade/lang';
|
||||
import {BaseException} from '../facade/exceptions';
|
||||
import {PromiseWrapper} from '../facade/async';
|
||||
import {reflector} from '../reflection/reflection';
|
||||
import {ComponentFactory} from './component_factory';
|
||||
import {Injectable} from '../di/decorators';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {isPresent, isBlank} from '../../src/facade/lang';
|
||||
import {ListWrapper, StringMapWrapper} from '../../src/facade/collection';
|
||||
import {isPresent, isBlank} from '../facade/lang';
|
||||
import {ListWrapper, StringMapWrapper} from '../facade/collection';
|
||||
import {Injector} from '../di';
|
||||
import {ViewType} from './view_type';
|
||||
import {RenderDebugInfo} from '../render/api';
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {ComponentResolver} from './component_resolver';
|
||||
import {Type, isPresent} from '../../src/facade/lang';
|
||||
import {Type, isPresent} from '../facade/lang';
|
||||
import {ComponentRef} from './component_factory';
|
||||
import {ViewContainerRef} from './view_container_ref';
|
||||
import {ResolvedReflectiveProvider} from '../di/reflective_provider';
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {isPresent} from '../../src/facade/lang';
|
||||
import {ListWrapper} from '../../src/facade/collection';
|
||||
import {BaseException} from '../../src/facade/exceptions';
|
||||
import {isPresent} from '../facade/lang';
|
||||
import {ListWrapper} from '../facade/collection';
|
||||
import {BaseException} from '../facade/exceptions';
|
||||
|
||||
import {AppView} from './view';
|
||||
import {ViewType} from './view_type';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {BaseException, WrappedException} from '../../src/facade/exceptions';
|
||||
import {BaseException, WrappedException} from '../facade/exceptions';
|
||||
|
||||
/**
|
||||
* An error thrown if application changes model breaking the top-down data flow.
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {ListWrapper} from '../../src/facade/collection';
|
||||
import {getSymbolIterator} from '../../src/facade/lang';
|
||||
import {Observable, EventEmitter} from '../../src/facade/async';
|
||||
import {ListWrapper} from '../facade/collection';
|
||||
import {getSymbolIterator} from '../facade/lang';
|
||||
import {Observable, EventEmitter} from '../facade/async';
|
||||
|
||||
|
||||
/**
|
||||
|
@ -1,5 +1,5 @@
|
||||
import { ComponentResolver } from './component_resolver';
|
||||
import { Type, isString, global } from '../../src/facade/lang';
|
||||
import { Type, isString, global } from '../facade/lang';
|
||||
import { ComponentFactory } from './component_factory';
|
||||
|
||||
/**
|
||||
|
@ -1,7 +1,7 @@
|
||||
import {ListWrapper} from '../../src/facade/collection';
|
||||
import {unimplemented} from '../../src/facade/exceptions';
|
||||
import {ListWrapper} from '../facade/collection';
|
||||
import {unimplemented} from '../facade/exceptions';
|
||||
import {Injector} from '../di/injector';
|
||||
import {isPresent} from '../../src/facade/lang';
|
||||
import {isPresent} from '../facade/lang';
|
||||
import {wtfCreateScope, wtfLeave, WtfScopeFn} from '../profile/profile';
|
||||
|
||||
import {AppElement} from './element';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {unimplemented} from '../../src/facade/exceptions';
|
||||
import {unimplemented} from '../facade/exceptions';
|
||||
import {ChangeDetectorRef} from '../change_detection/change_detector_ref';
|
||||
import {AppView} from './view';
|
||||
import {ChangeDetectionStrategy} from '../change_detection/constants';
|
||||
|
@ -1,7 +1,7 @@
|
||||
import {SanitizationService} from '../security';
|
||||
import {isBlank, isPresent, looseIdentical} from '../../src/facade/lang';
|
||||
import {ListWrapper, StringMapWrapper} from '../../src/facade/collection';
|
||||
import {BaseException} from '../../src/facade/exceptions';
|
||||
import {isBlank, isPresent, looseIdentical} from '../facade/lang';
|
||||
import {ListWrapper, StringMapWrapper} from '../facade/collection';
|
||||
import {BaseException} from '../facade/exceptions';
|
||||
import {AppElement} from './element';
|
||||
import {ExpressionChangedAfterItHasBeenCheckedException} from './exceptions';
|
||||
import {devModeEqual} from '../change_detection/change_detection';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {stringify, isString, Type, StringWrapper} from '../../src/facade/lang';
|
||||
import {stringify, isString, Type, StringWrapper} from '../facade/lang';
|
||||
import {DependencyMetadata} from '../di/metadata';
|
||||
import {resolveForwardRef} from '../di/forward_ref';
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {isPresent, Type} from '../../src/facade/lang';
|
||||
import {isPresent, Type} from '../facade/lang';
|
||||
import {InjectableMetadata} from '../di/metadata';
|
||||
import {ViewEncapsulation} from './view';
|
||||
import {ChangeDetectionStrategy} from '../change_detection/constants';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {Type} from '../../src/facade/lang';
|
||||
import {Type} from '../facade/lang';
|
||||
import {AnimationEntryMetadata} from '../animation/metadata';
|
||||
|
||||
/**
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {global} from '../../src/facade/lang';
|
||||
import {global} from '../facade/lang';
|
||||
|
||||
/**
|
||||
* A scope function for the Web Tracing Framework (WTF).
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {Type} from '../../src/facade/lang';
|
||||
import {Type} from '../facade/lang';
|
||||
import {GetterFn, SetterFn, MethodFn} from './types';
|
||||
|
||||
export interface PlatformReflectionCapabilities {
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {Type, isPresent, isFunction, global, stringify, ConcreteType} from '../../src/facade/lang';
|
||||
import {BaseException} from '../../src/facade/exceptions';
|
||||
import {Type, isPresent, isFunction, global, stringify, ConcreteType} from '../facade/lang';
|
||||
import {BaseException} from '../facade/exceptions';
|
||||
import {GetterFn, SetterFn, MethodFn} from './types';
|
||||
import {PlatformReflectionCapabilities} from './platform_reflection_capabilities';
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
import {Type, isPresent, stringify} from '../../src/facade/lang';
|
||||
import {BaseException, WrappedException} from '../../src/facade/exceptions';
|
||||
import {Type, isPresent, stringify} from '../facade/lang';
|
||||
import {BaseException, WrappedException} from '../facade/exceptions';
|
||||
import {
|
||||
ListWrapper,
|
||||
Map,
|
||||
@ -7,7 +7,7 @@ import {
|
||||
Set,
|
||||
SetWrapper,
|
||||
StringMapWrapper
|
||||
} from '../../src/facade/collection';
|
||||
} from '../facade/collection';
|
||||
import {SetterFn, GetterFn, MethodFn} from './types';
|
||||
import {ReflectorReader} from './reflector_reader';
|
||||
import {PlatformReflectionCapabilities} from './platform_reflection_capabilities';
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {unimplemented} from '../../src/facade/exceptions';
|
||||
import {unimplemented} from '../facade/exceptions';
|
||||
import {ViewEncapsulation} from '../metadata/view';
|
||||
import {Injector} from '../di/injector';
|
||||
import {AnimationKeyframe} from '../../src/animation/animation_keyframe';
|
||||
|
@ -1,8 +1,8 @@
|
||||
import {Map, MapWrapper} from '../../src/facade/collection';
|
||||
import {scheduleMicroTask} from '../../src/facade/lang';
|
||||
import {BaseException} from '../../src/facade/exceptions';
|
||||
import {Map, MapWrapper} from '../facade/collection';
|
||||
import {scheduleMicroTask} from '../facade/lang';
|
||||
import {BaseException} from '../facade/exceptions';
|
||||
import {NgZone} from '../zone/ng_zone';
|
||||
import {ObservableWrapper} from '../../src/facade/async';
|
||||
import {ObservableWrapper} from '../facade/async';
|
||||
import {Injectable} from '../di/decorators';
|
||||
|
||||
|
||||
|
@ -1,4 +1,4 @@
|
||||
import {ConcreteType, global, Type, isFunction, stringify} from '../../src/facade/lang';
|
||||
import {ConcreteType, global, Type, isFunction, stringify} from '../facade/lang';
|
||||
|
||||
var _nextClassId = 0;
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
import {EventEmitter} from '../../src/facade/async';
|
||||
import {EventEmitter} from '../facade/async';
|
||||
import {NgZoneImpl, NgZoneError} from './ng_zone_impl';
|
||||
import {BaseException} from '../../src/facade/exceptions';
|
||||
import {BaseException} from '../facade/exceptions';
|
||||
export {NgZoneError} from './ng_zone_impl';
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user