-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b6b69b4
commit deee303
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package vct.col.rewrite | ||
|
||
import vct.col.ast.{Statement, RangedFor} | ||
import vct.col.util.AstBuildHelpers.const | ||
|
||
case object EncodeRangedFor extends RewriterBuilder { | ||
override def key: String = "encodeRangedFor" | ||
override def desc: String = "Encodes ranged for as a regular for loop" | ||
} | ||
|
||
case class EncodeRangedFor[Pre <: Generation]() extends Rewriter[Pre] { | ||
override def dispatch(stat: Statement[Pre]): Statement[Post] = stat match { | ||
// case RangedFor(v, from, to, contract, body) => ??? | ||
case stat => rewriteDefault(stat) | ||
} | ||
} |