MCPcopy
hub / github.com/nestjs/nest / reflectImports

Method reflectImports

packages/core/scanner.ts:228–243  ·  view source on GitHub ↗
(
    module: Type<unknown>,
    token: string,
    context: string,
  )

Source from the content-addressed store, hash-verified

226 }
227
228 public async reflectImports(
229 module: Type<unknown>,
230 token: string,
231 context: string,
232 ) {
233 const modules = [
234 ...this.reflectMetadata(MODULE_METADATA.IMPORTS, module),
235 ...this.container.getDynamicMetadataByToken(
236 token,
237 MODULE_METADATA.IMPORTS as 'imports',
238 )!,
239 ];
240 for (const related of modules) {
241 await this.insertImport(related, token, context);
242 }
243 }
244
245 public reflectProviders(module: Type<any>, token: string) {
246 const providers = [

Callers 1

Calls 3

reflectMetadataMethod · 0.95
insertImportMethod · 0.95

Tested by

no test coverage detected