Skip to content
This repository has been archived by the owner on May 15, 2019. It is now read-only.

Zipper breakdown #77

Open
wants to merge 28 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
f6af1ad
Introducing hidden elements into Zipper.
ncreep Dec 8, 2011
199d35c
Adding a class for path transformation.
ncreep Dec 9, 2011
27b1ff5
Fixing a spelling mistake.
ncreep Dec 9, 2011
7fae426
Extracting node fetching into a separate object.
ncreep Dec 9, 2011
06dafa0
Adding Zipper shifting function.
ncreep Dec 9, 2011
de358f3
Test for PathFetcher
ncreep Dec 9, 2011
6cfdd6d
Prettified tests for and fixed docs on PathTransformer.
ncreep Dec 9, 2011
fb39958
Decoupling Zipper shifting function from PathTrasonfrmer.
ncreep Dec 10, 2011
b7cbf39
Shifting preserves all times associated with holes.
ncreep Dec 10, 2011
5c43fad
Adding tests for Zipper hole shifting.
ncreep Dec 10, 2011
9021a46
Whitespace fix.
ncreep Dec 10, 2011
326e187
Removing irrelevant type definition.
ncreep Dec 10, 2011
f45e46e
Adding a test to zipper.
ncreep Dec 10, 2011
5ec69c4
Zipper shifting ignores empty paths.
ncreep Dec 11, 2011
0229415
Adding Zipper axes support.
ncreep Dec 11, 2011
8baba3c
Merge branch 'master' of git://github.com/djspiewak/anti-xml into axes
ncreep Dec 13, 2011
ee2ed5a
Moving zipper related classes into a separate folder.
ncreep Dec 13, 2011
e20bf45
Taking out Group methods overridden in Zipper into a separate trait.
ncreep Dec 13, 2011
f566b66
Pulling Zipper hole shifting and axes into separate traits.
ncreep Dec 13, 2011
d3773a5
Adding package private modifier to all Zipper related traits.
ncreep Dec 13, 2011
bddf6e9
Pulled Zipper unselection support into a separate trait.
ncreep Dec 13, 2011
2b38bcd
Extracting zipper to hole map conversion methods into a trait.
ncreep Dec 13, 2011
9338efb
Removing the `parent` method on Zipper, doesn't seem to be used
ncreep Dec 13, 2011
31ab20a
Refactored all the zipper stuff into its own package
djspiewak Jan 8, 2012
2c45ad9
Was over-zealous in my refactoring; ZipperSpecs should remain at root
djspiewak Jan 8, 2012
b6313c3
Whitespace fix.
ncreep Jan 15, 2012
191fd38
Adding descendant Zipper axes.
ncreep Jan 15, 2012
e84221b
Adding unselectAll to Zipper.
ncreep Jan 15, 2012
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/main/scala/com/codecommit/antixml/Group.scala
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ package com.codecommit
package antixml

import util._
import zipper._

import scala.annotation.unchecked.uncheckedVariance
import scala.annotation.tailrec
Expand Down
10 changes: 6 additions & 4 deletions src/main/scala/com/codecommit/antixml/Selectable.scala
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,13 @@
package com.codecommit
package antixml

import com.codecommit.antixml.util.VectorCase
import zipper._

import scala.collection.generic.{CanBuildFrom, HasNewBuilder}
import scala.collection.immutable.{Vector, VectorBuilder}
import scala.collection.immutable.VectorBuilder

import CanBuildFromWithZipper.ElemsWithContext
import CanBuildFromWithZipper.ElemsWithContextVisible
import com.codecommit.antixml.util.VectorCase

trait Selectable[+A <: Node] {
import PathCreator.{allChildren, directChildren, fromNodes, allMaximalChildren, PathFunction, PathVal}
Expand Down Expand Up @@ -195,7 +197,7 @@ trait Selectable[+A <: Node] {
val grp = toGroup
val bld = cbfwz(Some(toZipper), grp)
for( PathVal(value, path) <- pf(grp) ) {
bld += ElemsWithContext[B](path, 0, VectorCase(value))
bld += ElemsWithContextVisible[B](path, 0, VectorCase(value))
}
bld.result()
}
Expand Down
Loading