protected override void VisitOperationTypeDefinition(
     OperationTypeDefinitionNode node,
     object context)
 {
     _visited.Add(nameof(VisitOperationTypeDefinition));
     base.VisitOperationTypeDefinition(node, context);
 }
Esempio n. 2
0
 public virtual VisitorAction Leave(
     OperationTypeDefinitionNode node,
     ISyntaxNode parent,
     IReadOnlyList <object> path,
     IReadOnlyList <ISyntaxNode> ancestors)
 {
     return(GetDefaultAction(node.Kind));
 }
Esempio n. 3
0
 protected virtual void ResolveChildren(
     OperationTypeDefinitionNode node,
     IList <SyntaxNodeInfo> children)
 {
     ResolveChildren(
         nameof(node.Type),
         node.Type,
         children);
 }
        protected override void VisitOperationTypeDefinition(
            OperationTypeDefinitionNode node,
            DocumentWriter writer)
        {
            WriteIndentation(writer);

            writer.Write(node.Operation.ToString().ToLowerInvariant());
            writer.Write(": ");
            writer.WriteNamedType(node.Type);
        }
Esempio n. 5
0
        RewriteOperationTypeDefinition(
            OperationTypeDefinitionNode node,
            TContext context)
        {
            OperationTypeDefinitionNode current = node;

            current = Rewrite(current, current.Type, context,
                              RewriteNamedType, current.WithType);

            return(current);
        }
Esempio n. 6
0
 protected override void VisitOperationTypeDefinition(
     OperationTypeDefinitionNode node,
     TContext context)
 {
     VisitNamedType(node.Type, context);
 }
Esempio n. 7
0
 protected virtual void VisitOperationTypeDefinition(
     OperationTypeDefinitionNode node)
 {
 }
Esempio n. 8
0
 protected override void VisitOperationTypeDefinition(
     OperationTypeDefinitionNode node)
 {
     VisitNamedType(node.Type);
 }
Esempio n. 9
0
 protected virtual void VisitOperationTypeDefinition(
     OperationTypeDefinitionNode node,
     TContext context)
 {
 }