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(); } }
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; } }