TINKERPOP-1901 Use spaces to indent enum values

Previously, the first enum value used spaces, whereas all following
values used tabs. Now, spaces are used consistently.


Project: http://git-wip-us.apache.org/repos/asf/tinkerpop/repo
Commit: http://git-wip-us.apache.org/repos/asf/tinkerpop/commit/4d5768b0
Tree: http://git-wip-us.apache.org/repos/asf/tinkerpop/tree/4d5768b0
Diff: http://git-wip-us.apache.org/repos/asf/tinkerpop/diff/4d5768b0

Branch: refs/heads/master
Commit: 4d5768b0aa53e06e95738f3faf904d3290a91794
Parents: d012171
Author: Florian Hockmann <f...@florian-hockmann.de>
Authored: Mon Mar 12 16:37:30 2018 +0100
Committer: Florian Hockmann <f...@florian-hockmann.de>
Committed: Mon Mar 12 16:37:30 2018 +0100

----------------------------------------------------------------------
 gremlin-dotnet/glv/Enum.template                |  4 ++--
 gremlin-dotnet/glv/generate.groovy              |  2 +-
 .../Gremlin.Net/Process/Traversal/Barrier.cs    |  2 +-
 .../Process/Traversal/Cardinality.cs            |  8 +++----
 .../src/Gremlin.Net/Process/Traversal/Column.cs |  6 ++---
 .../Gremlin.Net/Process/Traversal/Direction.cs  |  8 +++----
 .../Process/Traversal/GraphSONVersion.cs        |  6 ++---
 .../Process/Traversal/GryoVersion.cs            |  2 +-
 .../Gremlin.Net/Process/Traversal/Operator.cs   | 24 ++++++++++----------
 .../src/Gremlin.Net/Process/Traversal/Order.cs  | 16 ++++++-------
 .../src/Gremlin.Net/Process/Traversal/Pick.cs   |  6 ++---
 .../src/Gremlin.Net/Process/Traversal/Pop.cs    |  8 +++----
 .../src/Gremlin.Net/Process/Traversal/Scope.cs  |  6 ++---
 .../src/Gremlin.Net/Process/Traversal/T.cs      | 10 ++++----
 14 files changed, 54 insertions(+), 54 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4d5768b0/gremlin-dotnet/glv/Enum.template
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/glv/Enum.template b/gremlin-dotnet/glv/Enum.template
index 0be23c7..1f11076 100644
--- a/gremlin-dotnet/glv/Enum.template
+++ b/gremlin-dotnet/glv/Enum.template
@@ -32,8 +32,8 @@ namespace Gremlin.Net.Process.Traversal
             : base("<%= enumClass.simpleName %>", enumValue)
         {            
         }
-
-        <%= constants %>
+<% constants.each { constant -> %> 
+        <%= constant %><%}%>
     }
     
 #pragma warning restore 1591

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4d5768b0/gremlin-dotnet/glv/generate.groovy
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/glv/generate.groovy 
b/gremlin-dotnet/glv/generate.groovy
index 6d89b2f..0404307 100644
--- a/gremlin-dotnet/glv/generate.groovy
+++ b/gremlin-dotnet/glv/generate.groovy
@@ -354,7 +354,7 @@ def createEnum = { enumClass ->
                     collect { value ->
                         def csharpName = toCSharpName(enumClass, value.name())
                         return "public static ${enumClass.simpleName} 
${csharpName} => new ${enumClass.simpleName}(\"${value.name()}\");"
-                    }.join("\n\t\t")]
+                    }]
 
     def enumTemplate = engine.createTemplate(new 
File("${projectBaseDir}/glv/Enum.template")).make(b)
     def enumFile = new 
File("${projectBaseDir}/src/Gremlin.Net/Process/Traversal/" + 
enumClass.getSimpleName() + ".cs")

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4d5768b0/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Barrier.cs
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Barrier.cs 
b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Barrier.cs
index 0ae4fa2..df6d349 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Barrier.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Barrier.cs
@@ -32,7 +32,7 @@ namespace Gremlin.Net.Process.Traversal
             : base("Barrier", enumValue)
         {            
         }
-
+ 
         public static Barrier NormSack => new Barrier("normSack");
     }
     

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4d5768b0/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Cardinality.cs
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Cardinality.cs 
b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Cardinality.cs
index f158153..d2cbcf2 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Cardinality.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Cardinality.cs
@@ -32,10 +32,10 @@ namespace Gremlin.Net.Process.Traversal
             : base("Cardinality", enumValue)
         {            
         }
-
-        public static Cardinality List => new Cardinality("list");
-               public static Cardinality Set => new Cardinality("set");
-               public static Cardinality Single => new Cardinality("single");
+ 
+        public static Cardinality List => new Cardinality("list"); 
+        public static Cardinality Set => new Cardinality("set"); 
+        public static Cardinality Single => new Cardinality("single");
     }
     
 #pragma warning restore 1591

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4d5768b0/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Column.cs
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Column.cs 
b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Column.cs
index 9fa2039..9e0451e 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Column.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Column.cs
@@ -32,9 +32,9 @@ namespace Gremlin.Net.Process.Traversal
             : base("Column", enumValue)
         {            
         }
-
-        public static Column Keys => new Column("keys");
-               public static Column Values => new Column("values");
+ 
+        public static Column Keys => new Column("keys"); 
+        public static Column Values => new Column("values");
     }
     
 #pragma warning restore 1591

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4d5768b0/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Direction.cs
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Direction.cs 
b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Direction.cs
index 9566d51..5a93f0a 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Direction.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Direction.cs
@@ -32,10 +32,10 @@ namespace Gremlin.Net.Process.Traversal
             : base("Direction", enumValue)
         {            
         }
-
-        public static Direction Both => new Direction("BOTH");
-               public static Direction In => new Direction("IN");
-               public static Direction Out => new Direction("OUT");
+ 
+        public static Direction Both => new Direction("BOTH"); 
+        public static Direction In => new Direction("IN"); 
+        public static Direction Out => new Direction("OUT");
     }
     
 #pragma warning restore 1591

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4d5768b0/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphSONVersion.cs
----------------------------------------------------------------------
diff --git 
a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphSONVersion.cs 
b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphSONVersion.cs
index ad73ad1..0c92607 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphSONVersion.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GraphSONVersion.cs
@@ -32,9 +32,9 @@ namespace Gremlin.Net.Process.Traversal
             : base("GraphSONVersion", enumValue)
         {            
         }
-
-        public static GraphSONVersion V1_0 => new GraphSONVersion("V1_0");
-               public static GraphSONVersion V2_0 => new 
GraphSONVersion("V2_0");
+ 
+        public static GraphSONVersion V1_0 => new GraphSONVersion("V1_0"); 
+        public static GraphSONVersion V2_0 => new GraphSONVersion("V2_0");
     }
     
 #pragma warning restore 1591

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4d5768b0/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GryoVersion.cs
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GryoVersion.cs 
b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GryoVersion.cs
index 45387e2..fcc746e 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GryoVersion.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/GryoVersion.cs
@@ -32,7 +32,7 @@ namespace Gremlin.Net.Process.Traversal
             : base("GryoVersion", enumValue)
         {            
         }
-
+ 
         public static GryoVersion V1_0 => new GryoVersion("V1_0");
     }
     

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4d5768b0/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Operator.cs
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Operator.cs 
b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Operator.cs
index 4116197..8f0c9b3 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Operator.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Operator.cs
@@ -32,18 +32,18 @@ namespace Gremlin.Net.Process.Traversal
             : base("Operator", enumValue)
         {            
         }
-
-        public static Operator AddAll => new Operator("addAll");
-               public static Operator And => new Operator("and");
-               public static Operator Assign => new Operator("assign");
-               public static Operator Div => new Operator("div");
-               public static Operator Max => new Operator("max");
-               public static Operator Min => new Operator("min");
-               public static Operator Minus => new Operator("minus");
-               public static Operator Mult => new Operator("mult");
-               public static Operator Or => new Operator("or");
-               public static Operator Sum => new Operator("sum");
-               public static Operator SumLong => new Operator("sumLong");
+ 
+        public static Operator AddAll => new Operator("addAll"); 
+        public static Operator And => new Operator("and"); 
+        public static Operator Assign => new Operator("assign"); 
+        public static Operator Div => new Operator("div"); 
+        public static Operator Max => new Operator("max"); 
+        public static Operator Min => new Operator("min"); 
+        public static Operator Minus => new Operator("minus"); 
+        public static Operator Mult => new Operator("mult"); 
+        public static Operator Or => new Operator("or"); 
+        public static Operator Sum => new Operator("sum"); 
+        public static Operator SumLong => new Operator("sumLong");
     }
     
 #pragma warning restore 1591

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4d5768b0/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Order.cs
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Order.cs 
b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Order.cs
index d20906a..44ccb9b 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Order.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Order.cs
@@ -32,14 +32,14 @@ namespace Gremlin.Net.Process.Traversal
             : base("Order", enumValue)
         {            
         }
-
-        public static Order Decr => new Order("decr");
-               public static Order Incr => new Order("incr");
-               public static Order KeyDecr => new Order("keyDecr");
-               public static Order KeyIncr => new Order("keyIncr");
-               public static Order Shuffle => new Order("shuffle");
-               public static Order ValueDecr => new Order("valueDecr");
-               public static Order ValueIncr => new Order("valueIncr");
+ 
+        public static Order Decr => new Order("decr"); 
+        public static Order Incr => new Order("incr"); 
+        public static Order KeyDecr => new Order("keyDecr"); 
+        public static Order KeyIncr => new Order("keyIncr"); 
+        public static Order Shuffle => new Order("shuffle"); 
+        public static Order ValueDecr => new Order("valueDecr"); 
+        public static Order ValueIncr => new Order("valueIncr");
     }
     
 #pragma warning restore 1591

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4d5768b0/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pick.cs
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pick.cs 
b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pick.cs
index a47d4a6..d4132ea 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pick.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pick.cs
@@ -32,9 +32,9 @@ namespace Gremlin.Net.Process.Traversal
             : base("Pick", enumValue)
         {            
         }
-
-        public static Pick Any => new Pick("any");
-               public static Pick None => new Pick("none");
+ 
+        public static Pick Any => new Pick("any"); 
+        public static Pick None => new Pick("none");
     }
     
 #pragma warning restore 1591

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4d5768b0/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pop.cs
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pop.cs 
b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pop.cs
index 9e97a09..8a157c5 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pop.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Pop.cs
@@ -32,10 +32,10 @@ namespace Gremlin.Net.Process.Traversal
             : base("Pop", enumValue)
         {            
         }
-
-        public static Pop All => new Pop("all");
-               public static Pop First => new Pop("first");
-               public static Pop Last => new Pop("last");
+ 
+        public static Pop All => new Pop("all"); 
+        public static Pop First => new Pop("first"); 
+        public static Pop Last => new Pop("last");
     }
     
 #pragma warning restore 1591

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4d5768b0/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Scope.cs
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Scope.cs 
b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Scope.cs
index 65a6e67..ee67c39 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Scope.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/Scope.cs
@@ -32,9 +32,9 @@ namespace Gremlin.Net.Process.Traversal
             : base("Scope", enumValue)
         {            
         }
-
-        public static Scope Global => new Scope("global");
-               public static Scope Local => new Scope("local");
+ 
+        public static Scope Global => new Scope("global"); 
+        public static Scope Local => new Scope("local");
     }
     
 #pragma warning restore 1591

http://git-wip-us.apache.org/repos/asf/tinkerpop/blob/4d5768b0/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/T.cs
----------------------------------------------------------------------
diff --git a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/T.cs 
b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/T.cs
index c0e5927..bae1314 100644
--- a/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/T.cs
+++ b/gremlin-dotnet/src/Gremlin.Net/Process/Traversal/T.cs
@@ -32,11 +32,11 @@ namespace Gremlin.Net.Process.Traversal
             : base("T", enumValue)
         {            
         }
-
-        public static T Id => new T("id");
-               public static T Key => new T("key");
-               public static T Label => new T("label");
-               public static T Value => new T("value");
+ 
+        public static T Id => new T("id"); 
+        public static T Key => new T("key"); 
+        public static T Label => new T("label"); 
+        public static T Value => new T("value");
     }
     
 #pragma warning restore 1591

Reply via email to