How to use the abap-adt-api.isPackageType function in abap-adt-api

To help you get started, we’ve selected a few abap-adt-api examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github marcellourbani / vscode_abap_remote_fs / client / src / adt / operations / AdtObjectCreator.ts View on Github external
)
      if (!packageResult) return
      devclass = packageResult.name
    }
    if (parentType === PACKAGE) parentName = devclass
    if (!devclass || !parentName) return

    const options: NewObjectOptions | NewPackageOptions = {
      description,
      name: this.fixName(name, objType.typeId, parentName),
      objtype: objType.typeId,
      parentName,
      parentPath: objectPath(parentType, parentName, ""),
      responsible
    }
    if (isPackageType(options.objtype)) {
      const pkgopt = await this.getPackageOptions(options)
      if (!pkgopt) return
      const { swcomp, packagetype, transportLayer } = pkgopt

      const pkoptions = { ...options, swcomp, packagetype, transportLayer }
      return {
        devclass,
        options: pkoptions
      }
    } else return { devclass, options }
  }
  private async findPackage(parent: MySearchResult) {