Skip to content

Commit

Permalink
Renamed parameter in FieldSelectionMapSyntaxVisitor class (#7936)
Browse files Browse the repository at this point in the history
  • Loading branch information
glen-84 authored Jan 21, 2025
1 parent b40f1f4 commit f71192f
Showing 1 changed file with 17 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,68 +46,68 @@ protected ISyntaxVisitorAction Visit<TNode, TParent>(

protected virtual ISyntaxVisitorAction Enter(
IFieldSelectionMapSyntaxNode node,
TContext writer)
TContext context)
{
return node.Kind switch
{
FieldSelectionMapSyntaxKind.Name
=> Enter((NameNode)node, writer),
=> Enter((NameNode)node, context),
FieldSelectionMapSyntaxKind.Path
=> Enter((PathNode)node, writer),
=> Enter((PathNode)node, context),
FieldSelectionMapSyntaxKind.PathSegment
=> Enter((PathSegmentNode)node, writer),
=> Enter((PathSegmentNode)node, context),
FieldSelectionMapSyntaxKind.SelectedListValue
=> Enter((SelectedListValueNode)node, writer),
=> Enter((SelectedListValueNode)node, context),
FieldSelectionMapSyntaxKind.SelectedObjectField
=> Enter((SelectedObjectFieldNode)node, writer),
=> Enter((SelectedObjectFieldNode)node, context),
FieldSelectionMapSyntaxKind.SelectedObjectValue
=> Enter((SelectedObjectValueNode)node, writer),
=> Enter((SelectedObjectValueNode)node, context),
FieldSelectionMapSyntaxKind.SelectedValue
=> Enter((SelectedValueNode)node, writer),
=> Enter((SelectedValueNode)node, context),
FieldSelectionMapSyntaxKind.SelectedValueEntry
=> Enter((SelectedValueEntryNode)node, writer),
=> Enter((SelectedValueEntryNode)node, context),
_ => throw new NotSupportedException(node.GetType().FullName)
};
}

protected virtual ISyntaxVisitorAction Enter(
NameNode node,
TContext writer) =>
TContext context) =>
DefaultAction;

protected virtual ISyntaxVisitorAction Enter(
PathNode node,
TContext writer) =>
TContext context) =>
DefaultAction;

protected virtual ISyntaxVisitorAction Enter(
PathSegmentNode node,
TContext writer) =>
TContext context) =>
DefaultAction;

protected virtual ISyntaxVisitorAction Enter(
SelectedListValueNode node,
TContext writer) =>
TContext context) =>
DefaultAction;

protected virtual ISyntaxVisitorAction Enter(
SelectedObjectFieldNode node,
TContext writer) =>
TContext context) =>
DefaultAction;

protected virtual ISyntaxVisitorAction Enter(
SelectedObjectValueNode node,
TContext writer) =>
TContext context) =>
DefaultAction;

protected virtual ISyntaxVisitorAction Enter(
SelectedValueNode node,
TContext writer) =>
TContext context) =>
DefaultAction;

protected virtual ISyntaxVisitorAction Enter(
SelectedValueEntryNode node,
TContext writer) =>
TContext context) =>
DefaultAction;

protected virtual ISyntaxVisitorAction Leave(
Expand Down

0 comments on commit f71192f

Please sign in to comment.