private constructor()

in src/jsii2schema.ts [21:35]


  private constructor(name?: string, parent?: SchemaContext, definitions?: { [fqn: string]: any }) {
    this.name = name || '';
    if (parent) {
      this.root = false;
      parent.children.push(this);
      this.definitions = parent.definitions;
      this.path = parent.path + '/' + this.name;
      this.definitionStack = parent.definitionStack;
    } else {
      this.root = true;
      this.definitions = definitions || { };
      this.path = this.name || '';
      this.definitionStack = new Array<string>();
    }
  }