Пример #1
0
        public override INode VisitObjectField(ObjectField node)
        {
            var updatedNode = EnterObjectField(node);

            if (updatedNode == null)
            {
                return(null);
            }
            var name  = Visit(updatedNode.Name);
            var value = Visit(updatedNode.Value);

            updatedNode = updatedNode.Update(name, value);
            updatedNode = LeaveObjectField(updatedNode);
            return(updatedNode);
        }
Пример #2
0
 public override string VisitObjectField(ObjectField node)
 => $"{Visit(node.Name)}: {Visit(node.Value)}";
Пример #3
0
 public override INode VisitObjectField(ObjectField node)
 {
     Visit(node.Name);
     Visit(node.Value);
     return(DefaultVisit(node));
 }
Пример #4
0
 public virtual TResult VisitObjectField(ObjectField node)
 {
     return(DefaultVisit(node));
 }
Пример #5
0
 public virtual ObjectField LeaveObjectField(ObjectField objectField)
 {
     return(Leave(objectField));
 }
Пример #6
0
 public virtual ObjectField EnterObjectField(ObjectField objectField)
 {
     return(Enter(objectField));
 }