public ForwardAxis(DoubleLinkAxis axis, bool isdesorself) { this.isDss = isdesorself; this.isAttribute = Asttree.IsAttribute(axis); this.topNode = axis; this.rootNode = axis; while (this.rootNode.Input != null) { this.rootNode = (DoubleLinkAxis)this.rootNode.Input; } this.isSelfAxis = Asttree.IsSelf(this.topNode); }
public ForwardAxis(DoubleLinkAxis axis, bool isdesorself) { _isDss = isdesorself; _isAttribute = Asttree.IsAttribute(axis); _topNode = axis; _rootNode = axis; while (_rootNode.Input != null) { _rootNode = (DoubleLinkAxis)(_rootNode.Input); } // better to calculate it out, since it's used so often, and if the top is self then the whole tree is self _isSelfAxis = Asttree.IsSelf(_topNode); }