protected override void VisitSchemaDefinition(
     SchemaDefinitionNode node,
     object context)
 {
     _visited.Add(nameof(VisitSchemaDefinition));
     base.VisitSchemaDefinition(node, context);
 }
Esempio n. 2
0
 public virtual VisitorAction Leave(
     SchemaDefinitionNode node,
     ISyntaxNode parent,
     IReadOnlyList <object> path,
     IReadOnlyList <ISyntaxNode> ancestors)
 {
     return(GetDefaultAction(node.Kind));
 }
Esempio n. 3
0
        protected virtual SchemaDefinitionNode RewriteSchemaDefinition(
            SchemaDefinitionNode node,
            TContext context)
        {
            SchemaDefinitionNode current = node;

            current = RewriteDirectives(current, current.Directives,
                                        context, current.WithDirectives);

            current = RewriteMany(current, current.OperationTypes, context,
                                  RewriteOperationTypeDefinition, current.WithOperationTypes);

            return(current);
        }
Esempio n. 4
0
        protected override void VisitSchemaDefinition(
            SchemaDefinitionNode node,
            TContext context)
        {
            VisitMany(
                node.Directives,
                context,
                VisitDirective);

            VisitMany(
                node.OperationTypes,
                context,
                VisitOperationTypeDefinition);
        }
Esempio n. 5
0
        protected virtual void ResolveChildren(
            SchemaDefinitionNode node,
            IList <SyntaxNodeInfo> children)
        {
            ResolveChildren(
                nameof(node.Directives),
                node.Directives,
                children);

            ResolveChildren(
                nameof(node.OperationTypes),
                node.OperationTypes,
                children);
        }
        protected override void VisitSchemaDefinition(
            SchemaDefinitionNode node,
            DocumentWriter writer)
        {
            WriteDescription(node.Description, writer);

            writer.Write(Keywords.Schema);
            WriteDirectives(node.Directives, writer);

            WriteLeftBrace(writer);

            writer.Indent();
            writer.WriteMany(
                node.OperationTypes,
                VisitOperationTypeDefinition,
                WriteLineOrSpace);
            writer.Unindent();

            WriteRightBrace(writer);
        }
Esempio n. 7
0
 protected virtual void VisitSchemaDefinition(
     SchemaDefinitionNode node)
 {
 }
 protected override void VisitSchemaDefinition(SchemaDefinitionNode node)
 {
     _visited.Add(nameof(VisitSchemaDefinition));
     base.VisitSchemaDefinition(node);
 }
Esempio n. 9
0
 protected virtual void VisitSchemaDefinition(
     SchemaDefinitionNode node,
     TContext context)
 {
 }