Search in sources :

Example 1 with AspectCollection

use of com.google.devtools.build.lib.analysis.AspectCollection in project bazel by bazelbuild.

the class ConfiguredTargetFunction method getAspectKeys.

private static Map<AspectDescriptor, SkyKey> getAspectKeys(Dependency dep) {
    HashMap<AspectDescriptor, SkyKey> result = new HashMap<>();
    AspectCollection aspects = dep.getAspects();
    for (AspectDeps aspectDeps : aspects.getVisibleAspects()) {
        buildAspectKey(aspectDeps, result, dep);
    }
    return result;
}
Also used : SkyKey(com.google.devtools.build.skyframe.SkyKey) AspectDeps(com.google.devtools.build.lib.analysis.AspectCollection.AspectDeps) HashMap(java.util.HashMap) LinkedHashMap(java.util.LinkedHashMap) AspectDescriptor(com.google.devtools.build.lib.packages.AspectDescriptor) AspectCollection(com.google.devtools.build.lib.analysis.AspectCollection)

Aggregations

AspectCollection (com.google.devtools.build.lib.analysis.AspectCollection)1 AspectDeps (com.google.devtools.build.lib.analysis.AspectCollection.AspectDeps)1 AspectDescriptor (com.google.devtools.build.lib.packages.AspectDescriptor)1 SkyKey (com.google.devtools.build.skyframe.SkyKey)1 HashMap (java.util.HashMap)1 LinkedHashMap (java.util.LinkedHashMap)1