예제 #1
0
        public override void VisitElement(LangElement element)
        {
            if (element != null)
            {
                element.ContainingElement = this.ContainingElement;

                _parents.AddFirst(element);

                base.VisitElement(element.GetPHPDoc());
                base.VisitElement(element);

                _parents.RemoveFirst();
            }
        }
예제 #2
0
        public override void VisitElement(LangElement element)
        {
            if (element != null)
            {
                element.ContainingElement = _parent;

                var grandparent = _parent;
                _parent = element;

                base.VisitElement(element);
                Update(element.GetPHPDoc());

                _parent = grandparent;
            }
        }