Skip to content

Commit

Permalink
Update VisitorTransformTests.kt
Browse files Browse the repository at this point in the history
  • Loading branch information
dlurton authored Jul 30, 2020
1 parent 801074b commit 1eccc1c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,11 @@ const val INDEX_META_KEY = "index"

class VisitorTransformTests {

/** The outermost visitor simply establishes the root [ScopeTracker] and recurses into it. */
/**
* This is a VisitorTransform implementation that transforms variable references from names to indexes.
*
* The outermost visitor simply establishes the root [ScopeTracker] and recurses into it.
*/
class VariableResolver : ToyLang.VisitorTransform() {

override fun transformExprLet_body(node: ToyLang.Expr.Let): ToyLang.Expr =
Expand Down

0 comments on commit 1eccc1c

Please sign in to comment.