bazel syntax: rename SkylarkList to Sequence

This is a breaking change for copybara.

PiperOrigin-RevId: 280090855
diff --git a/src/main/java/com/google/devtools/build/lib/skylarkbuildapi/SkylarkRuleContextApi.java b/src/main/java/com/google/devtools/build/lib/skylarkbuildapi/SkylarkRuleContextApi.java
index 9fac798..0250362 100644
--- a/src/main/java/com/google/devtools/build/lib/skylarkbuildapi/SkylarkRuleContextApi.java
+++ b/src/main/java/com/google/devtools/build/lib/skylarkbuildapi/SkylarkRuleContextApi.java
@@ -26,9 +26,9 @@
 import com.google.devtools.build.lib.syntax.ClassObject;
 import com.google.devtools.build.lib.syntax.EvalException;
 import com.google.devtools.build.lib.syntax.NoneType;
+import com.google.devtools.build.lib.syntax.Sequence;
 import com.google.devtools.build.lib.syntax.SkylarkDict;
 import com.google.devtools.build.lib.syntax.SkylarkIndexable;
-import com.google.devtools.build.lib.syntax.SkylarkList;
 import com.google.devtools.build.lib.syntax.SkylarkNestedSet;
 import com.google.devtools.build.lib.syntax.StarlarkSemantics.FlagIdentifier;
 import com.google.devtools.build.lib.syntax.StarlarkThread;
@@ -344,7 +344,7 @@
             type = String.class,
             doc = "The string to split."),
       })
-  public SkylarkList<String> tokenize(String optionString) throws EvalException;
+  public Sequence<String> tokenize(String optionString) throws EvalException;
 
   @SkylarkCallable(
       name = "expand",
@@ -365,7 +365,7 @@
             name = "files",
             positional = true,
             named = false,
-            type = SkylarkList.class,
+            type = Sequence.class,
             doc = "The list of files."),
         @Param(
             name = "label_resolver",
@@ -376,7 +376,7 @@
       })
   public String expand(
       @Nullable String expression,
-      SkylarkList<?> artifacts, // <FileT>
+      Sequence<?> artifacts, // <FileT>
       Label labelResolver)
       throws EvalException;
 
@@ -464,10 +464,10 @@
             name = "allowed_placeholders",
             positional = true,
             named = false,
-            type = SkylarkList.class,
+            type = Sequence.class,
             doc = "The allowed placeholders."),
       })
-  public boolean checkPlaceholders(String template, SkylarkList<?> allowedPlaceholders) // <String>
+  public boolean checkPlaceholders(String template, Sequence<?> allowedPlaceholders) // <String>
       throws EvalException;
 
   @SkylarkCallable(
@@ -554,7 +554,7 @@
       parameters = {
         @Param(
             name = "outputs",
-            type = SkylarkList.class,
+            type = Sequence.class,
             generic1 = FileApi.class,
             named = true,
             positional = false,
@@ -562,7 +562,7 @@
         @Param(
             name = "inputs",
             allowedTypes = {
-              @ParamType(type = SkylarkList.class),
+              @ParamType(type = Sequence.class),
               @ParamType(type = SkylarkNestedSet.class),
             },
             generic1 = FileApi.class,
@@ -586,7 +586,7 @@
         @Param(
             name = "tools",
             allowedTypes = {
-              @ParamType(type = SkylarkList.class),
+              @ParamType(type = Sequence.class),
               @ParamType(type = SkylarkNestedSet.class),
             },
             generic1 = FileApi.class,
@@ -599,7 +599,7 @@
         @Param(
             name = "arguments",
             allowedTypes = {
-              @ParamType(type = SkylarkList.class),
+              @ParamType(type = Sequence.class),
             },
             defaultValue = "[]",
             named = true,
@@ -620,7 +620,7 @@
             type = Object.class,
             allowedTypes = {
               @ParamType(type = String.class),
-              @ParamType(type = SkylarkList.class, generic1 = String.class),
+              @ParamType(type = Sequence.class, generic1 = String.class),
               @ParamType(type = NoneType.class),
             },
             noneable = true,
@@ -672,7 +672,7 @@
             // experimental,
             // so folks shouldn't be too attached, but consider renaming to be more accurate/opaque.
             name = "input_manifests",
-            type = SkylarkList.class,
+            type = Sequence.class,
             noneable = true,
             defaultValue = "None",
             named = true,
@@ -685,7 +685,7 @@
       useLocation = true,
       useStarlarkThread = true)
   public NoneType action(
-      SkylarkList<?> outputs,
+      Sequence<?> outputs,
       Object inputs,
       Object executableUnchecked,
       Object toolsUnchecked,
@@ -723,7 +723,7 @@
         @Param(name = "input", type = String.class, doc = "String to be expanded."),
         @Param(
             name = "targets",
-            type = SkylarkList.class,
+            type = Sequence.class,
             generic1 = TransitiveInfoCollectionApi.class,
             defaultValue = "[]",
             named = true,
@@ -733,8 +733,7 @@
       useLocation = true,
       useStarlarkThread = true)
   public String expandLocation(
-      String input, SkylarkList<?> targets, Location loc, StarlarkThread thread)
-      throws EvalException;
+      String input, Sequence<?> targets, Location loc, StarlarkThread thread) throws EvalException;
 
   @SkylarkCallable(
       name = "file_action",
@@ -779,7 +778,7 @@
         @Param(
             name = "inputs",
             allowedTypes = {
-              @ParamType(type = SkylarkList.class),
+              @ParamType(type = Sequence.class),
               @ParamType(type = SkylarkNestedSet.class),
             },
             generic1 = FileApi.class,
@@ -845,7 +844,7 @@
       parameters = {
         @Param(
             name = "files",
-            type = SkylarkList.class,
+            type = Sequence.class,
             generic1 = FileApi.class,
             named = true,
             defaultValue = "[]",
@@ -899,7 +898,7 @@
       },
       useLocation = true)
   public RunfilesApi runfiles(
-      SkylarkList<?> files,
+      Sequence<?> files,
       Object transitiveFiles,
       Boolean collectData,
       Boolean collectDefault,
@@ -955,7 +954,7 @@
         @Param(
             name = "tools",
             defaultValue = "[]",
-            type = SkylarkList.class,
+            type = Sequence.class,
             generic1 = TransitiveInfoCollectionApi.class,
             named = true,
             positional = false,
@@ -987,7 +986,7 @@
       Object attributeUnchecked,
       Boolean expandLocations,
       Object makeVariablesUnchecked,
-      SkylarkList<?> tools,
+      Sequence<?> tools,
       SkylarkDict<?, ?> labelDictUnchecked,
       SkylarkDict<?, ?> executionRequirementsUnchecked,
       Location loc,
@@ -1007,7 +1006,7 @@
         @Param(
             name = "tools",
             defaultValue = "[]",
-            type = SkylarkList.class,
+            type = Sequence.class,
             generic1 = TransitiveInfoCollectionApi.class,
             named = true,
             positional = false,
@@ -1015,5 +1014,5 @@
       },
       useLocation = false,
       useStarlarkThread = false)
-  public Tuple<Object> resolveTools(SkylarkList<?> tools) throws EvalException;
+  public Tuple<Object> resolveTools(Sequence<?> tools) throws EvalException;
 }