Skip to content

Commit

Permalink
Rename type parameter in 1-generic Tree.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielcweber committed Jan 13, 2025
1 parent d4e138e commit d139ec3
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
8 changes: 4 additions & 4 deletions src/Core/Elements/Tree.cs
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@ public Tree(IReadOnlyDictionary<TRoot, TSubTree> inner)
IEnumerator IEnumerable.GetEnumerator() => ((IEnumerable)_inner).GetEnumerator();
}

public class Tree<TRoot> : Tree<TRoot, Tree<TRoot>>
where TRoot : notnull
public class Tree<TNode> : Tree<TNode, Tree<TNode>>
where TNode : notnull
{
public static new readonly Tree<TRoot> Empty = new (ImmutableDictionary<TRoot, Tree<TRoot>>.Empty);
public static new readonly Tree<TNode> Empty = new (ImmutableDictionary<TNode, Tree<TNode>>.Empty);

public Tree(IReadOnlyDictionary<TRoot, Tree<TRoot>> inner) : base(inner)
public Tree(IReadOnlyDictionary<TNode, Tree<TNode>> inner) : base(inner)
{
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1693,11 +1693,11 @@ public ExRam.Gremlinq.Core.Traversal WithProjection(ExRam.Gremlinq.Core.Projecti
public static ExRam.Gremlinq.Core.Traversal Create<TState>(int length, TState state, System.Buffers.SpanAction<ExRam.Gremlinq.Core.Steps.Step, TState> action) { }
public static ExRam.Gremlinq.Core.Traversal op_Implicit(ExRam.Gremlinq.Core.Steps.Step step) { }
}
public class Tree<TRoot> : ExRam.Gremlinq.Core.Tree<TRoot, ExRam.Gremlinq.Core.Tree<TRoot>>
where TRoot : notnull
public class Tree<TNode> : ExRam.Gremlinq.Core.Tree<TNode, ExRam.Gremlinq.Core.Tree<TNode>>
where TNode : notnull
{
public static readonly ExRam.Gremlinq.Core.Tree<TRoot> Empty;
public Tree(System.Collections.Generic.IReadOnlyDictionary<TRoot, ExRam.Gremlinq.Core.Tree<TRoot>> inner) { }
public static readonly ExRam.Gremlinq.Core.Tree<TNode> Empty;
public Tree(System.Collections.Generic.IReadOnlyDictionary<TNode, ExRam.Gremlinq.Core.Tree<TNode>> inner) { }
}
public class Tree<TRoot, TSubTree> : ExRam.Gremlinq.Core.ITree, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TRoot, TSubTree>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<TRoot, TSubTree>>, System.Collections.Generic.IReadOnlyDictionary<TRoot, TSubTree>, System.Collections.IEnumerable
where TRoot : notnull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1693,11 +1693,11 @@ public ExRam.Gremlinq.Core.Traversal WithProjection(ExRam.Gremlinq.Core.Projecti
public static ExRam.Gremlinq.Core.Traversal Create<TState>(int length, TState state, System.Buffers.SpanAction<ExRam.Gremlinq.Core.Steps.Step, TState> action) { }
public static ExRam.Gremlinq.Core.Traversal op_Implicit(ExRam.Gremlinq.Core.Steps.Step step) { }
}
public class Tree<TRoot> : ExRam.Gremlinq.Core.Tree<TRoot, ExRam.Gremlinq.Core.Tree<TRoot>>
where TRoot : notnull
public class Tree<TNode> : ExRam.Gremlinq.Core.Tree<TNode, ExRam.Gremlinq.Core.Tree<TNode>>
where TNode : notnull
{
public static readonly ExRam.Gremlinq.Core.Tree<TRoot> Empty;
public Tree(System.Collections.Generic.IReadOnlyDictionary<TRoot, ExRam.Gremlinq.Core.Tree<TRoot>> inner) { }
public static readonly ExRam.Gremlinq.Core.Tree<TNode> Empty;
public Tree(System.Collections.Generic.IReadOnlyDictionary<TNode, ExRam.Gremlinq.Core.Tree<TNode>> inner) { }
}
public class Tree<TRoot, TSubTree> : ExRam.Gremlinq.Core.ITree, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TRoot, TSubTree>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<TRoot, TSubTree>>, System.Collections.Generic.IReadOnlyDictionary<TRoot, TSubTree>, System.Collections.IEnumerable
where TRoot : notnull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1693,11 +1693,11 @@ public ExRam.Gremlinq.Core.Traversal WithProjection(ExRam.Gremlinq.Core.Projecti
public static ExRam.Gremlinq.Core.Traversal Create<TState>(int length, TState state, System.Buffers.SpanAction<ExRam.Gremlinq.Core.Steps.Step, TState> action) { }
public static ExRam.Gremlinq.Core.Traversal op_Implicit(ExRam.Gremlinq.Core.Steps.Step step) { }
}
public class Tree<TRoot> : ExRam.Gremlinq.Core.Tree<TRoot, ExRam.Gremlinq.Core.Tree<TRoot>>
where TRoot : notnull
public class Tree<TNode> : ExRam.Gremlinq.Core.Tree<TNode, ExRam.Gremlinq.Core.Tree<TNode>>
where TNode : notnull
{
public static readonly ExRam.Gremlinq.Core.Tree<TRoot> Empty;
public Tree(System.Collections.Generic.IReadOnlyDictionary<TRoot, ExRam.Gremlinq.Core.Tree<TRoot>> inner) { }
public static readonly ExRam.Gremlinq.Core.Tree<TNode> Empty;
public Tree(System.Collections.Generic.IReadOnlyDictionary<TNode, ExRam.Gremlinq.Core.Tree<TNode>> inner) { }
}
public class Tree<TRoot, TSubTree> : ExRam.Gremlinq.Core.ITree, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TRoot, TSubTree>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<TRoot, TSubTree>>, System.Collections.Generic.IReadOnlyDictionary<TRoot, TSubTree>, System.Collections.IEnumerable
where TRoot : notnull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1693,11 +1693,11 @@ public ExRam.Gremlinq.Core.Traversal WithProjection(ExRam.Gremlinq.Core.Projecti
public static ExRam.Gremlinq.Core.Traversal Create<TState>(int length, TState state, System.Buffers.SpanAction<ExRam.Gremlinq.Core.Steps.Step, TState> action) { }
public static ExRam.Gremlinq.Core.Traversal op_Implicit(ExRam.Gremlinq.Core.Steps.Step step) { }
}
public class Tree<TRoot> : ExRam.Gremlinq.Core.Tree<TRoot, ExRam.Gremlinq.Core.Tree<TRoot>>
where TRoot : notnull
public class Tree<TNode> : ExRam.Gremlinq.Core.Tree<TNode, ExRam.Gremlinq.Core.Tree<TNode>>
where TNode : notnull
{
public static readonly ExRam.Gremlinq.Core.Tree<TRoot> Empty;
public Tree(System.Collections.Generic.IReadOnlyDictionary<TRoot, ExRam.Gremlinq.Core.Tree<TRoot>> inner) { }
public static readonly ExRam.Gremlinq.Core.Tree<TNode> Empty;
public Tree(System.Collections.Generic.IReadOnlyDictionary<TNode, ExRam.Gremlinq.Core.Tree<TNode>> inner) { }
}
public class Tree<TRoot, TSubTree> : ExRam.Gremlinq.Core.ITree, System.Collections.Generic.IEnumerable<System.Collections.Generic.KeyValuePair<TRoot, TSubTree>>, System.Collections.Generic.IReadOnlyCollection<System.Collections.Generic.KeyValuePair<TRoot, TSubTree>>, System.Collections.Generic.IReadOnlyDictionary<TRoot, TSubTree>, System.Collections.IEnumerable
where TRoot : notnull
Expand Down

0 comments on commit d139ec3

Please sign in to comment.