protected override void VisitScalarTypeDefinition(
     ScalarTypeDefinitionNode node,
     object context)
 {
     _visited.Add(nameof(VisitScalarTypeDefinition));
     base.VisitScalarTypeDefinition(node, context);
 }
Ejemplo n.º 2
0
 protected override void VisitScalarTypeDefinition(
     ScalarTypeDefinitionNode node)
 {
     VisitName(node.Name);
     VisitIfNotNull(node.Description, VisitStringValue);
     VisitMany(node.Directives, VisitDirective);
 }
Ejemplo n.º 3
0
 public virtual VisitorAction Leave(
     ScalarTypeDefinitionNode node,
     ISyntaxNode parent,
     IReadOnlyList <object> path,
     IReadOnlyList <ISyntaxNode> ancestors)
 {
     return(GetDefaultAction(node.Kind));
 }
        protected override void VisitScalarTypeDefinition(
            ScalarTypeDefinitionNode node,
            DocumentWriter writer)
        {
            WriteDescription(node.Description, writer);

            writer.Write(Keywords.Scalar);
            writer.WriteSpace();
            writer.WriteName(node.Name);

            WriteDirectives(node.Directives, writer);
        }
Ejemplo n.º 5
0
        protected virtual ScalarTypeDefinitionNode RewriteScalarTypeDefinition(
            ScalarTypeDefinitionNode node,
            TContext context)
        {
            ScalarTypeDefinitionNode current = node;

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

            current = Rewrite(current, current.Name, context,
                              RewriteName, current.WithName);

            current = Rewrite(current, current.Description, context,
                              RewriteStringValue, current.WithDescription);

            return(current);
        }
Ejemplo n.º 6
0
        protected virtual void ResolveChildren(
            ScalarTypeDefinitionNode node,
            IList <SyntaxNodeInfo> children)
        {
            ResolveChildren(
                nameof(node.Description),
                node.Description,
                children);

            ResolveChildren(
                nameof(node.Name),
                node.Name,
                children);

            ResolveChildren(
                nameof(node.Directives),
                node.Directives,
                children);
        }
Ejemplo n.º 7
0
 protected virtual void VisitScalarTypeDefinition(
     ScalarTypeDefinitionNode node)
 {
 }
Ejemplo n.º 8
0
 protected virtual void VisitScalarTypeDefinition(
     ScalarTypeDefinitionNode node,
     TContext context)
 {
 }