packages/jsii-reflect/lib/dependency.ts (11 lines of code) (raw):

import { TypeSystem } from './type-system'; export class Dependency { public constructor( public readonly system: TypeSystem, private readonly name: string, public readonly version: string, ) {} public get assembly() { return this.system.findAssembly(this.name); } }