-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update generics to be TNode vs TElement
- Loading branch information
1 parent
a9331e6
commit 16e57a9
Showing
7 changed files
with
39 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
namespace Hyperbee.Json.Descriptors; | ||
|
||
public interface IValueAccessor<TElement> | ||
public interface IValueAccessor<TNode> | ||
{ | ||
IEnumerable<(TElement, string)> EnumerateChildren( TElement value, bool includeValues = true ); | ||
TElement GetElementAt( in TElement value, int index ); | ||
bool IsObjectOrArray( in TElement current ); | ||
bool IsArray( in TElement current, out int length ); | ||
bool IsObject( in TElement current ); | ||
bool TryGetChildValue( in TElement current, string childKey, out TElement childValue ); | ||
IEnumerable<(TNode, string)> EnumerateChildren( TNode value, bool includeValues = true ); | ||
TNode GetElementAt( in TNode value, int index ); | ||
bool IsObjectOrArray( in TNode current ); | ||
bool IsArray( in TNode current, out int length ); | ||
bool IsObject( in TNode current ); | ||
bool TryGetChildValue( in TNode current, string childKey, out TNode childValue ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
| ||
namespace Hyperbee.Json.Filters; | ||
|
||
public interface IFilterEvaluator<in TType> | ||
public interface IFilterEvaluator<in TNode> | ||
{ | ||
public object Evaluate( string filter, TType current, TType root ); | ||
public object Evaluate( string filter, TNode current, TNode root ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters