Skip to content

Commit d6760c6

Browse files
committed
[base] Documentation improvments
1 parent f783cd4 commit d6760c6

File tree

5 files changed

+8
-2
lines changed

5 files changed

+8
-2
lines changed

Base/src/main/scala-3/typeclass/VersionSpecificEithered.scala

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ private[typeclass] trait VersionSpecificEithered extends LowPrioEithered {
88
given unitAny[B, Z](using ev:Optionally[B, Z]):Eithered[Unit, B, Z] = Eithered(_ => ev.none, ev.some _)
99
given anyUnit[A, Z](using ev:Optionally[A, Z]):Eithered[A, Unit, Z] = Eithered(ev.some _, _ => ev.none)
1010

11+
/**
12+
* @since 0.1.1
13+
*/
1114
def quotedSplicePiece[A]: Eithered[Expr[A], Expr[Iterable[A]], Repeated.SplicePiece[Expr, A]] =
1215
Eithered(new Repeated.SplicePiece.One(_), new Repeated.SplicePiece.Many(_))
1316
}

Base/src/main/scala/UnapplyExpr.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package name.rayrobdod.stringContextParserCombinator
33
import scala.reflect.ClassTag
44

55
/**
6-
* The data needed to create am Unapply
6+
* The data needed to create an Unapply
77
*/
88
private[stringContextParserCombinator]
99
final case class UnapplyExpr[+Expr[_], +Type[_], -A] (

Base/src/main/scala/typeclass/Repeated.scala

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,10 +177,12 @@ object Repeated extends VersionSpecificRepeated with LowPrioRepeated {
177177
idFromSplicesUsingBuilder(() => List.newBuilder)
178178

179179
/**
180+
* Represents either zero items, one item or a sequence of items.
180181
* @version 0.1.1
181182
*/
182183
sealed trait SplicePiece[Expr[+_], +A]
183184
/**
185+
* The [[SplicePiece]] cases
184186
* @version 0.1.1
185187
*/
186188
object SplicePiece {

Base/src/main/scala/typeclass/package.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ package name.rayrobdod.stringContextParserCombinator
1414
* | `orElse` | [[Eithered]] | [[ContraEithered]] | [[BiEithered]] |
1515
* | `repeat` | [[Repeated]] | [[ContraRepeated]] | [[BiRepeated]] |
1616
* | `optionally` | [[Optionally]] | [[ContraOptionally]] | [[BiOptionally]] |
17+
* | `mapToExpr` | [[ToExprMapping]] | N/A | N/A |
1718
*
1819
* Thus, if you are only working with interpolators, then you'll only need to work with the unprefixed typeclasses.
1920
*

CHANGES.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* `quotedConcatenateString` for scala-3 quoted context
1414
* Add `Repeat.SplicePiece`; representing either zero, one, or many items; and typeclass instances using `SplicePiece`
1515
* for scala-2 macro context:
16-
* `Either.forContextSplicePiece` to combine a `Interpolator[c.Expr[A]]` and a `Interpolator[c.Expr[List[A]]]` into a `Interpolator[SplicePiece[c.Expr, A]]`
16+
* `Either.forContext().splicePiece` to combine a `Interpolator[c.Expr[A]]` and a `Interpolator[c.Expr[List[A]]]` into a `Interpolator[SplicePiece[c.Expr, A]]`
1717
* `Repeated.forContextFromSplicesToExprList` to splice the SplicePieces together into a `c.Expr[List[A]]`
1818
* `Repeated.forContextFromSplicesUsingBuilder` to splice the SplicePieces together using a arbitrary Builder
1919
* for scala-3 quoted context:

0 commit comments

Comments
 (0)