protected override void VisitScalarTypeDefinition(
     ScalarTypeDefinitionNode node,
     object context)
 {
     _visited.Add(nameof(VisitScalarTypeDefinition));
     base.VisitScalarTypeDefinition(node, context);
 }
Example #2
0
 protected override void VisitScalarTypeDefinition(
     ScalarTypeDefinitionNode node)
 {
     VisitName(node.Name);
     VisitIfNotNull(node.Description, VisitStringValue);
     VisitMany(node.Directives, VisitDirective);
 }
 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);
        }
        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);
        }
Example #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);
        }
Example #7
0
 protected virtual void VisitScalarTypeDefinition(
     ScalarTypeDefinitionNode node)
 {
 }
Example #8
0
 protected virtual void VisitScalarTypeDefinition(
     ScalarTypeDefinitionNode node,
     TContext context)
 {
 }