@@ -666,7 +666,7 @@ var (
666666type contentNodeIs2 []contentNodeI
667667
668668func (n contentNodeIs2 ) Dims () sitematrix.VectorProvider {
669- panic ("contentNodeIs2. Dims: not supported" )
669+ panic ("Dims() : not supported" )
670670}
671671
672672func (n contentNodeIs2 ) Path () string {
@@ -793,9 +793,7 @@ func (s *contentNodeShifter) Delete(n contentNodeI, dims sitematrix.Vector) (con
793793 }
794794 return deleted , wasDeleted , isEmpty
795795 case contentNodeIs2 :
796- if len (v ) == 0 {
797- panic ("empty contentNodeIs2" )
798- }
796+ // panic("TODO1 Delete")
799797 // TODO1 implement me.
800798 return nil , false , false
801799
@@ -897,9 +895,6 @@ func (s *contentNodeShifter) Shift(n contentNodeI, dims sitematrix.Vector, exact
897895 }
898896 return nil , false , 0
899897 case contentNodeIs2 :
900- if len (v ) == 0 {
901- panic ("empty contentNodeIs2" )
902- }
903898 for _ , vv := range v {
904899 if vv .Dims ().HasVector (dims ) {
905900 return vv , true , sitematrix .Language
@@ -984,6 +979,15 @@ func (s *contentNodeShifter) ForEeachInDimension(n contentNodeI, dims sitematrix
984979 }
985980 }
986981 }
982+
983+ case contentNodeIs2 :
984+ for _ , v := range vv {
985+ if v .Dims ().HasVector (dims ) {
986+ if f (v ) {
987+ return
988+ }
989+ }
990+ }
987991 default :
988992 if n == nil {
989993 return
@@ -1094,7 +1098,7 @@ func (s *contentNodeShifter) Insert(old, new contentNodeI) (contentNodeI, conten
10941098 }*/
10951099
10961100 rs := append (vv , newp )
1097- return contentNodeIs2 (rs ), vv . first () , false
1101+ return contentNodeIs2 (rs ), vv , false
10981102
10991103 case * resourceSource :
11001104 newp , ok := new .(* resourceSource )
0 commit comments