Starlark -> Skylark: final push for comment changes (1 of 2)
This is the final result of IntelliJ find/replace refactoring
scoped over the Blaze project, not including symbols.
Split into two parts because of the total number of files
is an unwieldy 358.
PiperOrigin-RevId: 306447566
diff --git a/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java b/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java
index 8a8bd83..db6fdcc 100644
--- a/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java
+++ b/src/main/java/com/google/devtools/build/lib/analysis/RuleContext.java
@@ -1080,8 +1080,8 @@
}
/**
- * Returns all the declared providers (native and Skylark) for the specified constructor under the
- * specified attribute of this target in the BUILD file.
+ * Returns all the declared providers (native and Starlark) for the specified constructor under
+ * the specified attribute of this target in the BUILD file.
*/
public <T extends Info> List<T> getPrerequisites(
String attributeName, TransitionMode mode, final NativeProvider<T> skylarkKey) {
@@ -1089,8 +1089,8 @@
}
/**
- * Returns all the declared providers (native and Skylark) for the specified constructor under the
- * specified attribute of this target in the BUILD file.
+ * Returns all the declared providers (native and Starlark) for the specified constructor under
+ * the specified attribute of this target in the BUILD file.
*/
public <T extends Info> List<T> getPrerequisites(
String attributeName, TransitionMode mode, final BuiltinProvider<T> skylarkKey) {
@@ -1098,7 +1098,7 @@
}
/**
- * Returns the declared provider (native and Skylark) for the specified constructor under the
+ * Returns the declared provider (native and Starlark) for the specified constructor under the
* specified attribute of this target in the BUILD file. May return null if there is no
* TransitiveInfoCollection under the specified attribute.
*/
@@ -1110,7 +1110,7 @@
}
/**
- * Returns the declared provider (native and Skylark) for the specified constructor under the
+ * Returns the declared provider (native and Starlark) for the specified constructor under the
* specified attribute of this target in the BUILD file. May return null if there is no
* TransitiveInfoCollection under the specified attribute.
*/
@@ -1465,15 +1465,13 @@
function.getImplicitOutputs(
getAnalysisEnvironment().getEventHandler(), RawAttributeMapper.of(rule));
} catch (EvalException e) {
- // It's ok as long as we don't use this method from Skylark.
+ // It's ok as long as we don't use this method from Starlark.
throw new IllegalStateException(e);
}
return getImplicitOutputArtifact(Iterables.getOnlyElement(result), contentBasedPath);
}
- /**
- * Only use from Skylark. Returns the implicit output artifact for a given output path.
- */
+ /** Only use from Starlark. Returns the implicit output artifact for a given output path. */
public Artifact getImplicitOutputArtifact(String path) {
return getImplicitOutputArtifact(path, /*contentBasedPath=*/ false);
}