File tree Expand file tree Collapse file tree
packages/compiler-cli/src/ngtsc/reflection/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -105,14 +105,15 @@ export class TypeScriptReflectionHost implements ReflectionHost {
105105 if ( ! ts . isSourceFile ( node ) ) {
106106 throw new Error ( `getExportsOfModule() called on non-SourceFile in TS code` ) ;
107107 }
108- const map = new Map < string , Declaration > ( ) ;
109108
110109 // Reflect the module to a Symbol, and use getExportsOfModule() to get a list of exported
111110 // Symbols.
112111 const symbol = this . checker . getSymbolAtLocation ( node ) ;
113112 if ( symbol === undefined ) {
114113 return null ;
115114 }
115+
116+ const map = new Map < string , Declaration > ( ) ;
116117 this . checker . getExportsOfModule ( symbol ) . forEach ( exportSymbol => {
117118 // Map each exported Symbol to a Declaration and add it to the map.
118119 const decl = this . getDeclarationOfSymbol ( exportSymbol , null ) ;
You can’t perform that action at this time.
0 commit comments