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

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

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

            return(current);
        }
Exemplo n.º 4
0
        protected override void VisitSchemaExtension(
            SchemaExtensionNode node,
            TContext context)
        {
            VisitMany(
                node.Directives,
                context,
                VisitDirective);

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

            ResolveChildren(
                nameof(node.OperationTypes),
                node.OperationTypes,
                children);
        }
Exemplo n.º 6
0
 protected virtual void VisitSchemaExtension(
     SchemaExtensionNode node)
 {
 }
 protected override void VisitSchemaExtension(SchemaExtensionNode node)
 {
     _visited.Add(nameof(VisitSchemaExtension));
     base.VisitSchemaExtension(node);
 }
Exemplo n.º 8
0
 protected virtual void VisitSchemaExtension(
     SchemaExtensionNode node,
     TContext context)
 {
 }