Skip to content

introduce CaseBlock as a block-scoped container for switch statements#2291

Merged
vladima merged 2 commits into
masterfrom
letConstInSwitchStatements
Mar 11, 2015
Merged

introduce CaseBlock as a block-scoped container for switch statements#2291
vladima merged 2 commits into
masterfrom
letConstInSwitchStatements

Conversation

@vladima

@vladima vladima commented Mar 11, 2015

Copy link
Copy Markdown
Contributor

Fixes #2280

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CaseClause Never mind

@DanielRosenwasser

Copy link
Copy Markdown
Member

👍

Comment thread src/compiler/emitter.ts Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: can we have an emitCaseBlock function where you do all the appropriate work for that child node specifically?

vladima added a commit that referenced this pull request Mar 11, 2015
introduce CaseBlock as a block-scoped container for switch statements
@vladima vladima merged commit 76dcfb6 into master Mar 11, 2015
@vladima vladima deleted the letConstInSwitchStatements branch March 11, 2015 01:33
@microsoft microsoft locked and limited conversation to collaborators Jun 18, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Use-before-def is reported incorrectly for switch statement expressions

4 participants