Search in sources :

Example 1 with GenericPackageSource

use of org.wso2.ballerinalang.compiler.packaging.GenericPackageSource in project ballerina by ballerina-lang.

the class PackageLoader method loadPackageEntity.

private PackageEntity loadPackageEntity(PackageID pkgId) {
    updateVersionFromToml(pkgId);
    Resolution resolution = repos.resolve(pkgId);
    if (resolution == Resolution.NOT_FOUND) {
        return null;
    }
    return new GenericPackageSource(pkgId, resolution.sources, resolution.resolvedBy);
}
Also used : GenericPackageSource(org.wso2.ballerinalang.compiler.packaging.GenericPackageSource) Resolution(org.wso2.ballerinalang.compiler.packaging.Resolution)

Aggregations

GenericPackageSource (org.wso2.ballerinalang.compiler.packaging.GenericPackageSource)1 Resolution (org.wso2.ballerinalang.compiler.packaging.Resolution)1