/// <summary> /// Initializes a new instance of the <see cref="ElementNode"/> class. /// </summary> /// <param name="element">The element.</param> /// <param name="owner">The owner.</param> /// <exception cref="System.ArgumentNullException">element</exception> internal ElementNode(CodeElement element, FileItemManager owner) { _owner = owner; if (element == null) { throw new ArgumentNullException("element"); } Element = element; if (!element.NoWatchedChildren()) { _elements = element.Children(); } refreshOffset(); //initialize offset }