Permalink
Browse files

Adding package private modifier to all Zipper related traits.

  • Loading branch information...
1 parent f566b66 commit d3773a5ee13556887ceff23c5fe2f6c70b1c6fd9 @ncreep committed Dec 13, 2011
@@ -136,7 +136,7 @@ trait Zipper[+A <: Node] extends Group[A]
* - A method such as `++`, is used to "add" nodes to a zipper without replacing existing nodes.
*
**/
- def parent: Option[Zipper[Node]] = context map {_.parent}
+ def parent: Option[Zipper[Node]] = context map {_.parent}
/** The zipper context or None if this is a broken zipper. */
private[antixml] val context: Option[Context]
@@ -11,7 +11,7 @@ import scala.annotation.tailrec
* Note2: the axes are calculated using holes in the zipper, hence for a modified
* zipper some nodes may be multiplied or elided.
*/
-trait ZipperAxes { self: Zipper[Node] =>
+private[antixml] trait ZipperAxes { self: Zipper[Node] =>
/** Returns the direct parent of a node. */
def directParent = {
shiftHoles (g => (PathTransformer(g).shiftUp(_)).andThen(_.toList))
@@ -9,7 +9,7 @@ import scala.annotation.tailrec
/** Contains methods on [[com.codecommit.antixml.Group]] that are overridden in
* the zipper's implementation.
*/
-trait ZipperGroupOverrides[+A <: Node] { self: Zipper[A] =>
+private[antixml] trait ZipperGroupOverrides[+A <: Node] { self: Zipper[A] =>
override protected[this] def newBuilder = Zipper.newBuilder[A]
@@ -7,7 +7,7 @@ import scala.collection.immutable.SortedSet
import CanBuildFromWithZipper._
/** Responsible for zipper hole shifting support. */
-trait ZipperHoleShifting { self: Zipper[Node] =>
+private[antixml] trait ZipperHoleShifting { self: Zipper[Node] =>
/** Shifts the focus of the zipper to another set of holes.
*
@@ -83,7 +83,7 @@ trait ZipperHoleShifting { self: Zipper[Node] =>
}
}
-object ZipperHoleShifting {
+private object ZipperHoleShifting {
/** Lexicographic ordering for path objects. */
private object ZipperPathOrdering extends Ordering[ZipperPath] {
override def compare(x: ZipperPath, y: ZipperPath) =

0 comments on commit d3773a5

Please sign in to comment.