@@ -609,7 +609,7 @@ export class Injector implements InjectorInterface {
609
609
const destinationVar = compiler . reserveConst ( { token : fromProvider . provide } ) ;
610
610
611
611
if ( options . type . kind === ReflectionKind . class ) {
612
- const found = findModuleForConfig ( getClassType ( options . type ) , resolveDependenciesFrom ) ;
612
+ const found = findModuleForConfig ( options . type . classType , resolveDependenciesFrom ) ;
613
613
if ( found ) {
614
614
return compiler . reserveVariable ( 'fullConfig' , getPathValue ( found . module . getConfig ( ) , found . path ) ) ;
615
615
}
@@ -629,14 +629,14 @@ export class Injector implements InjectorInterface {
629
629
return compiler . reserveVariable ( 'tagRegistry' , this . buildContext . tagRegistry ) ;
630
630
}
631
631
632
- if ( options . type . kind === ReflectionKind . class && resolveDependenciesFrom [ 0 ] instanceof getClassType ( options . type ) ) {
632
+ if ( options . type . kind === ReflectionKind . class && resolveDependenciesFrom [ 0 ] instanceof options . type . classType ) {
633
633
return compiler . reserveConst ( resolveDependenciesFrom [ 0 ] , 'module' ) ;
634
634
}
635
635
636
636
if ( options . type . kind === ReflectionKind . class && isPrototypeOfBase ( options . type . classType , Tag ) ) {
637
637
const tokenVar = compiler . reserveVariable ( 'token' , options . type . classType ) ;
638
638
const resolvedVar = compiler . reserveVariable ( 'tagResolved' ) ;
639
- const entries = this . buildContext . tagRegistry . resolve ( getClassType ( options . type ) ) ;
639
+ const entries = this . buildContext . tagRegistry . resolve ( options . type . classType ) ;
640
640
const args : string [ ] = [ ] ;
641
641
for ( const entry of entries ) {
642
642
args . push ( `${ compiler . reserveConst ( entry . module ) } .injector.resolver(${ compiler . reserveConst ( getContainerToken ( entry . tagProvider . provider . provide ) ) } , scope, ${ destinationVar } )` ) ;
@@ -655,7 +655,7 @@ export class Injector implements InjectorInterface {
655
655
const pickArguments = getPickArguments ( options . type ) ;
656
656
if ( pickArguments ) {
657
657
if ( pickArguments [ 0 ] . kind === ReflectionKind . class ) {
658
- const found = findModuleForConfig ( getClassType ( pickArguments [ 0 ] ) , resolveDependenciesFrom ) ;
658
+ const found = findModuleForConfig ( pickArguments [ 0 ] . classType , resolveDependenciesFrom ) ;
659
659
if ( found ) {
660
660
const fullConfig = compiler . reserveVariable ( 'fullConfig' , getPathValue ( found . module . getConfig ( ) , found . path ) ) ;
661
661
let index = pickArguments [ 1 ] ;
@@ -778,24 +778,24 @@ export class Injector implements InjectorInterface {
778
778
// }
779
779
780
780
if ( type . kind === ReflectionKind . class ) {
781
- const found = findModuleForConfig ( getClassType ( type ) , resolveDependenciesFrom ) ;
781
+ const found = findModuleForConfig ( type . l , resolveDependenciesFrom ) ;
782
782
if ( found ) return ( ) => getPathValue ( found . module . getConfig ( ) , found . path ) ;
783
783
}
784
784
785
785
if ( type . kind === ReflectionKind . class && type . classType === TagRegistry ) return ( ) => this . buildContext . tagRegistry ;
786
786
787
- if ( type . kind === ReflectionKind . class && resolveDependenciesFrom [ 0 ] instanceof getClassType ( type ) ) {
787
+ if ( type . kind === ReflectionKind . class && resolveDependenciesFrom [ 0 ] instanceof type . classType ) {
788
788
return ( ) => resolveDependenciesFrom [ 0 ] ;
789
789
}
790
790
791
791
if ( type . kind === ReflectionKind . class && isPrototypeOfBase ( type . classType , Tag ) ) {
792
- const entries = this . buildContext . tagRegistry . resolve ( getClassType ( type ) ) ;
792
+ const entries = this . buildContext . tagRegistry . resolve ( type . classType ) ;
793
793
const args : any [ ] = [ ] ;
794
794
for ( const entry of entries ) {
795
795
args . push ( entry . module . injector ! . resolver ! ( entry . tagProvider . provider . provide , scope ) ) ;
796
796
}
797
797
798
- return new ( getClassType ( type ) ) ( args ) ;
798
+ return new ( type . classType ) ( args ) ;
799
799
}
800
800
801
801
if ( type . kind === ReflectionKind . function && type . typeName === 'PartialFactory' ) {
@@ -809,7 +809,7 @@ export class Injector implements InjectorInterface {
809
809
const pickArguments = getPickArguments ( type ) ;
810
810
if ( pickArguments ) {
811
811
if ( pickArguments [ 0 ] . kind === ReflectionKind . class ) {
812
- const found = findModuleForConfig ( getClassType ( pickArguments [ 0 ] ) , resolveDependenciesFrom ) ;
812
+ const found = findModuleForConfig ( pickArguments [ 0 ] . classType , resolveDependenciesFrom ) ;
813
813
if ( found ) {
814
814
const fullConfig = getPathValue ( found . module . getConfig ( ) , found . path ) ;
815
815
let index = pickArguments [ 1 ] ;
@@ -1027,7 +1027,7 @@ export function partialFactory(
1027
1027
}
1028
1028
1029
1029
if ( type . kind === ReflectionKind . class ) {
1030
- const classType = getClassType ( type ) ;
1030
+ const classType = type . classType ;
1031
1031
const reflectionClass = ReflectionClass . from ( classType ) ;
1032
1032
1033
1033
const args : { name : string ; resolve : ( scope ?: Scope ) => ReturnType < Resolver < any > > } [ ] = [ ] ;
0 commit comments