Skip to content

Show 'else' within Ifs within Elses - #734

Merged
rchande merged 2 commits into
dotnet:masterfrom
rchande:ElseKeywordRecommending
Feb 26, 2015
Merged

Show 'else' within Ifs within Elses#734
rchande merged 2 commits into
dotnet:masterfrom
rchande:ElseKeywordRecommending

Conversation

@rchande

@rchande rchande commented Feb 20, 2015

Copy link
Copy Markdown
Contributor

When recommending "Else" we walk all the way up the tree to determine
if the position is nested inside an Else block. This means we don't
recommend "Else" inside an If block nested within an Else block. When
walking up the tree, we should stop at the If/ElseIf block.

Fixes #719.

When recommending "Else" we walk all the way up the tree to determine
if the position is nested inside an Else block. This means we don't
recommend "Else" inside an If block nested within an Else block. When
walking up the tree, we should stop at the If/ElseIf block.
@rchande

rchande commented Feb 20, 2015

Copy link
Copy Markdown
Contributor Author

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.

<WorkItem(...)>

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.

If the TargetToken is the ThenKeyword, then can bad things happen if you fall through to the code below? Doesn't look like the code below is set up to deal with the ThenKeyword.

rchande added a commit that referenced this pull request Feb 26, 2015
Show 'else' within Ifs within Elses

Fixes #719
@rchande
rchande merged commit b2d4953 into dotnet:master Feb 26, 2015
dibarbet pushed a commit that referenced this pull request Aug 18, 2026
Add support for .editorconfig documents
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Else keyword not recommended

5 participants