Skip to content

Commit 742c656

Browse files
committed
make ThenV private
1 parent adef2e3 commit 742c656

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/scala/ir/dsl/WhileDSL.scala

+1-3
Original file line numberDiff line numberDiff line change
@@ -173,16 +173,14 @@ case class If(cond: Expr) {
173173
def Then(body: (NonCallStatement | EventuallyStatement | EventuallyJump)*): ThenV = ThenV(cond, List(stmts(body: _*)))
174174
}
175175

176-
case class ThenV(cond: Expr, body: List[EventuallyBlock]) {
176+
private case class ThenV(cond: Expr, body: List[EventuallyBlock]) {
177177
def Else(els: Iterable[EventuallyBlock]): List[EventuallyBlock] = mkIf(cond, body, els.toList)
178178
def Else(els: EventuallyBlock*): List[EventuallyBlock] = mkIf(cond, body, els.toList)
179179
@targetName("elseStatements")
180180
def Else(els: (NonCallStatement | EventuallyStatement | EventuallyJump)*): List[EventuallyBlock] =
181181
mkIf(cond, body, List(stmts(els: _*)))
182182
}
183183

184-
case class ElseV(cond: Expr, thenBody: List[EventuallyBlock], body: List[EventuallyBlock])
185-
186184
/**
187185
* Implicit conversions so that we are more flexible with what can be passed to these constructs,
188186
* e.g. to automatically construct a block list for a single statement.

0 commit comments

Comments
 (0)