Description redacted.
--
MOS_MIGRATED_REVID=95135804
diff --git a/src/main/java/com/google/devtools/build/lib/packages/AspectDefinition.java b/src/main/java/com/google/devtools/build/lib/packages/AspectDefinition.java
index 683cdd9f5..0c2368b 100644
--- a/src/main/java/com/google/devtools/build/lib/packages/AspectDefinition.java
+++ b/src/main/java/com/google/devtools/build/lib/packages/AspectDefinition.java
@@ -174,17 +174,19 @@
     }
 
     /**
-     * Tells that in order for this aspect to work, the given aspect must be computed for the
-     * direct dependencies in the attribute with the specified name on the associated configured
-     * target.
+     * Declares that this aspect depends on the given aspects in {@code aspectFactories} provided
+     * by direct dependencies through attribute {@code attribute} on the target associated with this
+     * aspect.
      *
      * <p>Note that {@code AspectFactory} instances are expected in the second argument, but we
      * cannot reference that interface here.
      */
     public Builder attributeAspect(
-        String attribute, Class<? extends AspectFactory<?, ?, ?>> aspectFactory) {
-      this.attributeAspects.put(
-          Preconditions.checkNotNull(attribute), Preconditions.checkNotNull(aspectFactory));
+        String attribute, Class<? extends AspectFactory<?, ?, ?>>... aspectFactories) {
+      Preconditions.checkNotNull(attribute);
+      for (Class<? extends AspectFactory<?, ?, ?>> aspectFactory : aspectFactories) {
+        this.attributeAspects.put(attribute, Preconditions.checkNotNull(aspectFactory));
+      }
       return this;
     }