コード例 #1
0
 protected override void VisitEnumTypeExtension(
     EnumTypeExtensionNode node,
     object context)
 {
     _visited.Add(nameof(VisitEnumTypeExtension));
     base.VisitEnumTypeExtension(node, context);
 }
コード例 #2
0
 protected override void VisitEnumTypeExtension(
     EnumTypeExtensionNode node)
 {
     VisitName(node.Name);
     VisitMany(node.Directives, VisitDirective);
     VisitMany(node.Values, VisitEnumValueDefinition);
 }
コード例 #3
0
 public virtual VisitorAction Leave(
     EnumTypeExtensionNode node,
     ISyntaxNode parent,
     IReadOnlyList <object> path,
     IReadOnlyList <ISyntaxNode> ancestors)
 {
     return(GetDefaultAction(node.Kind));
 }
コード例 #4
0
        protected virtual EnumTypeExtensionNode RewriteEnumTypeExtension(
            EnumTypeExtensionNode node,
            TContext context)
        {
            EnumTypeExtensionNode current = node;

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

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

            current = RewriteMany(current, current.Values, context,
                                  RewriteEnumValueDefinition, current.WithValues);

            return(current);
        }
コード例 #5
0
        protected virtual void ResolveChildren(
            EnumTypeExtensionNode node,
            IList <SyntaxNodeInfo> children)
        {
            ResolveChildren(
                nameof(node.Name),
                node.Name,
                children);

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

            ResolveChildren(
                nameof(node.Values),
                node.Values,
                children);
        }
コード例 #6
0
 protected virtual void VisitEnumTypeExtension(
     EnumTypeExtensionNode node)
 {
 }
コード例 #7
0
 protected override void VisitEnumTypeExtension(
     EnumTypeExtensionNode node)
 {
     _visited.Add(nameof(VisitEnumTypeExtension));
     base.VisitEnumTypeExtension(node);
 }
コード例 #8
0
 protected virtual void VisitEnumTypeExtension(
     EnumTypeExtensionNode node,
     TContext context)
 {
 }