Skip to content

implement remove 'Shared' from VB module members codefix - #48289

Merged
CyrusNajmabadi merged 7 commits into
dotnet:masterfrom
Youssef1313:codefix-remove-shared-vb-module
Oct 16, 2020
Merged

CyrusNajmabadi merged 7 commits into
dotnet:masterfrom
Youssef1313:codefix-remove-shared-vb-module

Conversation

@Youssef1313

Copy link
Copy Markdown
Member

Fixes #45163

@Youssef1313
Youssef1313 requested a review from a team as a code owner October 3, 2020 21:18
@Youssef1313
Youssef1313 marked this pull request as draft October 3, 2020 21:19
@Youssef1313
Youssef1313 marked this pull request as ready for review October 3, 2020 21:22
@Youssef1313
Youssef1313 force-pushed the codefix-remove-shared-vb-module branch from 9a3b332 to 5b18032 Compare October 3, 2020 21:22
@Youssef1313 Youssef1313 closed this Oct 5, 2020
@Youssef1313 Youssef1313 reopened this Oct 5, 2020
@jinujoseph jinujoseph added Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. labels Oct 8, 2020
Comment on lines +63 to +64
Dim tokenToRemove = diagnostic.Location.FindToken(cancellationToken)
Dim node = diagnostic.Location.FindNode(cancellationToken)

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.

Does this need the same checks as in the RegisterCodeFixesAsync?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

@jasonmalinowski I don't have a 100% understanding of the code flow, but my assumption is that if the check failed in RegisterCodeFixesAsync, then FixAllAsync won't be called with this bad input.

Comment thread src/Features/VisualBasic/Portable/VBFeaturesResources.resx Outdated
@Youssef1313

Copy link
Copy Markdown
Member Author

Is there anything left for this? @CyrusNajmabadi @jasonmalinowski


Protected Overrides Function FixAllAsync(document As Document, diagnostics As ImmutableArray(Of Diagnostic), editor As SyntaxEditor, cancellationToken As CancellationToken) As Task
For Each diagnostic In diagnostics
Dim tokenToRemove = diagnostic.Location.FindToken(cancellationToken)

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.

this valid seems unused.

@CyrusNajmabadi

Copy link
Copy Markdown
Contributor

done with pass.

@jinujoseph jinujoseph closed this Oct 14, 2020
@jinujoseph jinujoseph reopened this Oct 14, 2020
@Youssef1313

Copy link
Copy Markdown
Member Author

There is an unrelated integration test failure. @CyrusNajmabadi Can you re-run the failed job? Thanks.

@CyrusNajmabadi

Copy link
Copy Markdown
Contributor

Done!

@CyrusNajmabadi
CyrusNajmabadi merged commit 8f73c1c into dotnet:master Oct 16, 2020
@ghost ghost added this to the Next milestone Oct 16, 2020
@CyrusNajmabadi

Copy link
Copy Markdown
Contributor

Thanks!

@Youssef1313
Youssef1313 deleted the codefix-remove-shared-vb-module branch October 16, 2020 09:53
@allisonchou allisonchou modified the milestones: Next, 16.9.P2 Nov 24, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-IDE Community The pull request was submitted by a contributor who is not a Microsoft employee. Feature Request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Offer a codefix for BC30433

5 participants