tuned;
authorwenzelm
Tue, 17 Dec 2019 22:22:20 +0100
changeset 71303 48e72c72b4d8
parent 71302 0e3a3e3cf482
child 71304 9687209ce8cb
tuned;
src/Pure/Tools/phabricator.scala
--- a/src/Pure/Tools/phabricator.scala	Tue Dec 17 22:18:37 2019 +0100
+++ b/src/Pure/Tools/phabricator.scala	Tue Dec 17 22:22:20 2019 +0100
@@ -907,6 +907,20 @@
 
   object API
   {
+    /* repository parameters */
+
+    object VCS extends Enumeration
+    {
+      val hg, git, svn = Value
+    }
+
+    def edits(typ: String, value: JSON.T): List[JSON.Object.T] =
+      List(JSON.Object("type" -> typ, "value" -> value))
+
+    def opt_edits(typ: String, value: Option[JSON.T]): List[JSON.Object.T] =
+      value.toList.flatMap(edits(typ, _))
+
+
     /* result with optional error */
 
     sealed case class Result(result: JSON.T, error: Option[String])
@@ -927,19 +941,5 @@
       val error_code = JSON.string(json, "error_code")
       Result(result, error_info orElse error_code)
     }
-
-
-    /* repository operations */
-
-    object VCS extends Enumeration
-    {
-      val hg, git, svn = Value
-    }
-
-    def edits(typ: String, value: JSON.T): List[JSON.Object.T] =
-      List(JSON.Object("type" -> typ, "value" -> value))
-
-    def opt_edits(typ: String, value: Option[JSON.T]): List[JSON.Object.T] =
-      value.toList.flatMap(edits(typ, _))
   }
 }