Skip to content
This repository was archived by the owner on Jan 23, 2023. It is now read-only.

Address MetadataLoadContext review feedback#33992

Merged
steveharter merged 2 commits into
dotnet:masterfrom
steveharter:MLCFeedback
Dec 13, 2018
Merged

Address MetadataLoadContext review feedback#33992
steveharter merged 2 commits into
dotnet:masterfrom
steveharter:MLCFeedback

Conversation

@steveharter

Copy link
Copy Markdown
Contributor

Address late feedback from @ahsonkhan on PR #33201

@steveharter steveharter added enhancement Product code improvement that does NOT require public API changes/additions area-System.Reflection labels Dec 11, 2018
@steveharter steveharter added this to the 3.0 milestone Dec 11, 2018
@steveharter steveharter self-assigned this Dec 11, 2018
@mmitche mmitche closed this Dec 11, 2018
@mmitche mmitche reopened this Dec 11, 2018
@mmitche

mmitche commented Dec 11, 2018

Copy link
Copy Markdown
Member

@dotnet-bot test this please

@mmitche mmitche closed this Dec 11, 2018
@mmitche mmitche reopened this Dec 11, 2018

@ahsonkhan ahsonkhan left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM. Thanks.

}
if (j == types.Length)
candidates[CurIdx++] = candidates[i];
candidates[curIdx++] = candidates[i];

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I still have some nits around adding brace brackets within nested scopes (even for single line statements). What's your perspective on that?

#33201 (comment)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I am not the original author of this code; but yes I agree and would prefer more whitespace \ extra lines when it makes the code more readable.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@ahsonkhan are you aware of any tools to help with re-formatting? The terse bracing style is pervasive here.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Unfortunately, not :(

@stephentoub, @danmosemsft, any suggestions?

@ahsonkhan ahsonkhan Dec 13, 2018

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Does VS re-factoring work for you? I tried it out at a document level and it worked reasonably well. You may want to undo some of the braces, but that might be less work than adding the braces (depending on how pervasive either formatting is and when you want to opt out of braces).

image

@steveharter

Copy link
Copy Markdown
Contributor Author

test Linux x64 Release Build

@steveharter steveharter merged commit 775347f into dotnet:master Dec 13, 2018
@steveharter steveharter deleted the MLCFeedback branch December 13, 2018 00:30
jlennox pushed a commit to jlennox/corefx that referenced this pull request Dec 16, 2018
picenka21 pushed a commit to picenka21/runtime that referenced this pull request Feb 18, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-System.Reflection enhancement Product code improvement that does NOT require public API changes/additions

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants