Skip to content

Commit

Permalink
fix scopes
Browse files Browse the repository at this point in the history
  • Loading branch information
meevee98 committed Jan 6, 2020
1 parent 5c0a041 commit d4646aa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/main/kotlin/br/com/pnp/semantic/PnpContext.kt
Original file line number Diff line number Diff line change
Expand Up @@ -463,6 +463,10 @@ class PnpContext(val analyser: Analyser) : PnpBaseListener() {
} ?: throw UnknownSemanticException(ctx.start)
}

override fun exitWhileBlock(ctx: PnpParser.WhileBlockContext) {
analyser.endScope()
}

// endregion

// region type validation
Expand Down

0 comments on commit d4646aa

Please sign in to comment.