Ejemplo n.º 1
0
            /// <summary>
            /// Called when a FieldStart node is encountered in the document.
            /// </summary>
            public override VisitorAction VisitFieldStart(FieldStart fieldStart)
            {
                // If this node is hidden, then remove it.
                if (this.isHidden(fieldStart))
                {
                    fieldStart.Remove();
                }

                return(VisitorAction.Continue);
            }
Ejemplo n.º 2
0
        public override VisitorAction VisitFieldStart(FieldStart fieldStart)
        {
            // We must keep track of the starts and ends of fields incase of any nested fields.
            if (fieldStart.FieldType.Equals(mTargetFieldType))
            {
                mFieldDepth++;
                fieldStart.Remove();
            }
            else
            {
                // This removes the field start if it's inside a field that is being converted.
                CheckDepthAndRemoveNode(fieldStart);
            }

            return(VisitorAction.Continue);
        }
        public override VisitorAction VisitFieldStart(FieldStart fieldStart)
        {
            // We must keep track of the starts and ends of fields incase of any nested fields.
            if (fieldStart.FieldType.Equals(mTargetFieldType))
            {
                mFieldDepth++;
                fieldStart.Remove();
            }
            else
            {
                // This removes the field start if it's inside a field that is being converted.
                CheckDepthAndRemoveNode(fieldStart);
            }

            return VisitorAction.Continue;
        }
Ejemplo n.º 4
0
            /// <summary>
            /// Called when a FieldStart node is encountered in the document.
            /// </summary>
            public override VisitorAction VisitFieldStart(FieldStart fieldStart)
            {
                // If this node is hidden, then remove it.
                if (isHidden(fieldStart))
                    fieldStart.Remove();

                return VisitorAction.Continue;
            }