bazel syntax: add Starlark.NONE as alias for Runtime.NONE
The latter is going away (see CLs 279609452) but this
step is needed for a three-step compatible transition to avoid
breaking copybara.
@@ -25,12 +25,15 @@ import javax.annotation.Nullable;
* all clients of the Starlark interpreter.
*/
// TODO(adonovan): move these here:
-// None, len, str, iterate, equal, compare, getattr, index,
+// len, str, iterate, equal, compare, getattr, index,
// slice, parse, exec, eval, and so on.
public final class Starlark {
private Starlark() {} // uninstantiable
+ /** The Starlark None value. */
+ public static final Runtime.NoneType NONE = Runtime.NONE;
+
/**
* The universal bindings predeclared in every Starlark file, such as None, True, len, and range.
*/
