Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to straight metadata reading to build our metadata indices for add-using and add-reference. #11183

Merged
merged 37 commits into from
May 10, 2016

Conversation

CyrusNajmabadi
Copy link
Member

@CyrusNajmabadi CyrusNajmabadi commented May 9, 2016

No description provided.

@CyrusNajmabadi CyrusNajmabadi added the PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it. label May 9, 2016
@CyrusNajmabadi CyrusNajmabadi removed the PR For Personal Review Only The PR doesn’t require anyone other than the developer to review it. label May 10, 2016
@CyrusNajmabadi CyrusNajmabadi changed the title Metadata reading Switch to straight metadata reading to build our metadata indices for add-using and add-reference. May 10, 2016
@CyrusNajmabadi
Copy link
Member Author

Tagging @tmat and @dotnet/roslyn-ide

@@ -1,6 +1,8 @@
// Copyright (c) Microsoft. All Rights Reserved. Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information.

using System;
using System.Collections.Generic;
using System.Reflection.Metadata;
Copy link
Member

Choose a reason for hiding this comment

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

Needed?

@CyrusNajmabadi
Copy link
Member Author

@tmat I've addressed your comments. Let me know what you think about the compiler side of things.

return info;
}

// We don't include internals from metadata assemblies. It's less likely that
Copy link
Member

Choose a reason for hiding this comment

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

This comment seems misplaced now. There is no mention of symbol accessibility here.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed.

// Add all child members
foreach (var symbol in symbolsWithSameName)
{
lookup(symbol, symbolMap);
Copy link
Member

Choose a reason for hiding this comment

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

lookup doesn't sound like the right name here.

@tmat
Copy link
Member

tmat commented May 10, 2016

@CyrusNajmabadi A couple more comments. Other than that compiler changes LGTM.

@Pilchie
Copy link
Member

Pilchie commented May 10, 2016

👍

@CyrusNajmabadi
Copy link
Member Author

test vsi please

return null;
}

// Check if we have teh 'Color Color' case.
Copy link
Contributor

Choose a reason for hiding this comment

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

spelling

@CyrusNajmabadi CyrusNajmabadi merged commit acfc0f9 into dotnet:master May 10, 2016
@CyrusNajmabadi CyrusNajmabadi deleted the metadataReading branch May 10, 2016 23:31
@CyrusNajmabadi CyrusNajmabadi restored the metadataReading branch May 30, 2016 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants